You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

FFmpeg拼接视频时出现帧重复与解码错误问题求助

FFmpeg拼接视频时出现帧重复与解码错误问题求助

各位大佬好,我最近在用FFmpeg做视频拼接,执行的命令是:

ffmpeg -f concat -i input.txt -y ProductionVideo.mp4

对应的input.txt里列出了要拼接的视频文件:

file 'vid1.mp4'
file 'vid2.mp4'
file 'vid3.mp4'

但执行过程中偶尔会弹出提示:"More than 10000 frames duplicated",最后生成的成品视频里,对应的重复帧会持续1到6分钟不等,同时终端还会输出一堆错误日志:

[00007fa5cd001d10] main decoder error: buffer deadlock prevented
[h264 @ 0x7fa5cd298000] get_buffer() failed
[h264 @ 0x7fa5cd298000] thread_get_buffer() failed
[h264 @ 0x7fa5cd298000] decode_slice_header error
[h264 @ 0x7fa5cd298000] no frame!
[h264 @ 0x7fa5cd366f80] get_buffer() failed
[h264 @ 0x7fa5cd366f80] thread_get_buffer() failed
[h264 @ 0x7fa5cd366f80] decode_slice_header error
[h264 @ 0x7fa5cd366f80] no frame!

一开始我怀疑是各个视频的编码器不一致,特意把所有视频重新编码成了相同的编码器,但问题还是没解决。而且单独播放这些原视频的时候完全没有任何问题,有没有懂行的朋友帮忙分析下这是什么情况呀?

备注:内容来源于stack exchange,提问作者ZombieSpale

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 07:14:38