yq_sprite 2021-06-04 11:04 采纳率: 50%
浏览 881

Could not find codec parameters for stream 0

Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size

使用ffmpeg将多个图片合成视频当中,连续合两次是可以成功的(中间有间隔20多秒的时间),第三次合并会出现错误:FFmpegCmd: Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options。有没有大神知道该怎么解决?

命令如下:ffmpeg -f image2 -r 25 -i /storage/emulated/0/Pictures/VR_Video/VR_Sequence/img%d.png -b:v 8000k -s 2000x1000 -vcodec mpeg4 /storage/emulated/0/Pictures/VR_Video/VR_Video360Cache_20210604110134.mp4

错误日志如下:

I/FFmpegCmd:   libavutil      56. 31.100 / 56. 31.100
I/FFmpegCmd:   libavcodec     58. 54.100 / 58. 54.100
I/FFmpegCmd:   libavformat    58. 29.100 / 58. 29.100
I/FFmpegCmd:   libavfilter     7. 57.100 /  7. 57.100
I/FFmpegCmd:   libswscale      5.  5.100 /  5.  5.100
I/FFmpegCmd:   libswresample   3.  5.100 /  3.  5.100
I/FFmpegCmd:   libpostproc    55.  5.100 / 55.  5.100
W/FFmpegCmd: Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options

I/FFmpegCmd: Input #0, image2, from '/storage/emulated/0/Pictures/VR_Video/VR_Sequence/img%d.png':
I/FFmpegCmd:   Duration: 
I/FFmpegCmd: 00:00:15.00
I/FFmpegCmd: , start: 
I/FFmpegCmd: 0.000000
I/FFmpegCmd: , bitrate: 
I/FFmpegCmd: N/A
I/FFmpegCmd:     Stream #0:0
I/FFmpegCmd: : Video: png, none(pc)
I/FFmpegCmd: , 
I/FFmpegCmd: 25 tbr, 
I/FFmpegCmd: 25 tbn, 
I/FFmpegCmd: 25 tbc
I/FFmpegCmd: Output #0, mp4, to '/storage/emulated/0/Pictures/VR_Video/VR_Video360Cache_20210604104509.mp4':
E/FFmpegCmd: Output file #0 does not contain any stream
E/FFmpegCmd: from native msg=Output file #0 does not contain any stream
I/FFmpegHandler: handle onEnd...
I/FFmpegCmd: Exiting normally, received signal 24.
I/FFmpegCmd: FFmpeg result=1
E/FFmpegCmd: onProgress position=100--duration=100--state=3
I/FFmpegCmd: Exiting normally, received signal 24.
I/FFmpegHandler: handle onEnd...

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 这个程序哪里有问题呢,显示0分
      • ¥15 我想问一下像图片中这种效果怎么实现
      • ¥20 关于#vue.js#的问题:el-tag拖放到 el-input框时无法完成填充(语言-javascript)
      • ¥15 python小游戏飞机大战空格发射子弹报错,添加旋转代码后陨石一直变大,不知道哪里出错了
      • ¥50 QT websocket·
      • ¥15 配置LED用PWM波点亮,但是LED与LCD的引脚复用问题导致PWM无法使能
      • ¥15 Python如何进行分数的求和
      • ¥15 prophet 在进行fit时报错
      • ¥60 共享充电宝程序想要一个
      • ¥15 求:支付宝旧版接口文档