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

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条回答 默认 最新

  • 烟雨穿林声 2023-02-08 17:15
    关注

    ffmpeg -i VTS_09_1.VOB -c:v copy -map 0:1 -map 0:3 -ss 40 fixed_1.VOB

    评论

报告相同问题?