ffmpeg concat demuxer在加入视频时冻结了我的视频帧 [英] ffmpeg concat demuxer freezes my video frames while joining the videos

查看:195
本文介绍了ffmpeg concat demuxer在加入视频时冻结了我的视频帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用此命令concat 6 WebM视频文件,以相同的分辨率和相同的编解码器 ffmpeg -f concat -i mylist.txt -c复制finalvideo.webm ,但是导致视频冻结了某些部分,恰好在每个部分都连接了
的地方,是的,我使用的是最新的ffmpeg

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

mylist.txt

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

我的日志

https://pastebin.com/Rzqr6w3b

推荐答案

这可能是由于编解码器的编码需要在每个连接点处重置所致。删除复制编解码器的要求,然后让ffmpeg使用默认设置对其进行重新编码,或者指定特定的编解码器和您自己的设置来对流进行重新编码。

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.

默认值:

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

这篇关于ffmpeg concat demuxer在加入视频时冻结了我的视频帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆