-
How to choose a transcode framerate when source fps and tbr don’t match
Hi,
I have a video source I need to transcode for delivery over the web. I would normally try to maintain the source frame rate but in this case the rate seems odd and the tbr value is different.
This is how ffmpeg describes the source video.
Stream #0.1(eng): Video: h264, yuv420p, 1920×1080, 8136 kb/s, 22.58 fps, 23.98 tbr, 2997 tbn, 5994 tbcIf I transcode it at -r 22.58 the transcoded video is
Stream #0.0(eng): Video: h264, yuv420p, 768×432, 706 kb/s, 22.58 fps, 22.58 tbr, 1129 tbn, 45.16 tbcand ffmpeg reports “Seems stream 0 codec frame rate differs from container frame rate: 45.16 (1129/25) -> 22.58 (1129/50)”.
If I transcode it at -r 23.98 the transcoded video is
Stream #0.0(eng): Video: h264, yuv420p, 768×432, 705 kb/s, 23.97 fps, 23.98 tbr, 1199 tbn, 47.96 tbcand ffmpeg reports the same “Seems stream 0 codec frame rate differs from container frame rate: 47.96 (1199/25) -> 23.98 (1199/50)”.
Does anyone know how I can configure ffmpeg to maintain the same frame rate and timing as in the original?