ffmpeg concat产生如下报错
[concat @ 0x7fee11822a00] DTS 0 < 2500 out of order
[webm @ 0x7fee11011000] Non-monotonous DTS in output stream 0:0; previous: 2500, current: 0; changing to 2500. This may result in incorrect timestamps in the output file.
解决方案:
视频文件需要有相同的编码,fps, tbn等参数,可以考虑如下命令:
ffmpeg.exe -hwaccel cuvid -hwaccel_output_format cuda -resize 2560x1440 -vcodec h264_cuvid -i $video -vcodec h264_nvenc -b:v 10000k -acodec copy -video_track_timescale 15360 -vf fps=60 $DEST/$video-2k.mp4
参考资料:https://stackoverflow.com/questions/31691943/ffmpeg-concat-produces-dts-out-of-order-errors
|