ffmpeg concat demuxer freezes my video frames while joining the videos

大憨熊 提交于 2019-12-12 23:16:08

问题


I am trying to concat 6 WebM video file same resolution and same codecs using this command ffmpeg -f concat -i mylist.txt -c copy finalvideo.webm but the resulted video freezes some part ,exactly where the each part concatenated and yes I am using the latest ffmpeg

resulted video audio spectrum you easily see the video audio freezes

https://i.stack.imgur.com/SX6WT.gif

mylist.txt

file '1.webm'
file '2.webm'
file '3.webm'
file '4.webm'
file '5.webm'
file '6.webm'

My log

https://pastebin.com/Rzqr6w3b


回答1:


This is probably caused by the codec's encoding needing to reset at each join point. Remove the requirement that the codec's be copied and either let ffmpeg reencode it with the default settings or specify a specfic codec and settings of your own to reencode the stream.

Default:

ffmpeg -f concat -i mylist.txt finalvideo.webm

Or choose specific codecs:

ffmpeg -f concat -i mylist.txt -c:v libvpx -c:a libvorbis finalvideo.webm


来源:https://stackoverflow.com/questions/56885303/ffmpeg-concat-demuxer-freezes-my-video-frames-while-joining-the-videos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!