Wrong framerate during FFMPEG concatenation

白昼怎懂夜的黑 提交于 2020-06-01 04:47:07

问题


I'm concatenating 2 video files 00000 and 00001:

ffmpeg -y -f concat -safe 0 -i file_list.txt -loglevel error -c copy test.mp4

file_list.txt:
file '00000.mp4'
file '00001.mp4'

00000.mp4:
Duration: 00:00:00.42, start: 0.000000, bitrate: 204 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 182 kb/s,
60 fps, 60 tbr, 15360 tbn, 120 tbc (default)

00001.mp4:
Duration: 00:00:01.63, start: 0.000000, bitrate: 58 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 48 kb/s,
60 fps, 60 tbr, 15360 tbn, 120 tbc (default)

The result has a different framerate:

test.mp4:
Duration: 00:00:02.05, start: 0.000000, bitrate: 85 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 76 kb/s,
59.99 fps, 60 tbr, 15360 tbn, 120 tbc (default)

How can I keep the framerate of the files constant?

I checked for a VFR:

ffmpeg -i 00000.mp4 -vf vfrdet -an -f null -
VFR:0.000000 (0/24)

ffmpeg -i 00001.mp4 -vf vfrdet -an -f null -
VFR:0.000000 (0/97)

ffmpeg -i test.mp4 -vf vfrdet -an -f null -
VFR:0.016393 (2/120) min: 256 max: 261 avg: 258

Is it possible to get VFR:0 after the concatenation?

来源:https://stackoverflow.com/questions/61362471/wrong-framerate-during-ffmpeg-concatenation

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