What does the video output stream details from ffmpeg mean?
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Meadow
--
Chapters
00:00 Question
00:23 Accepted answer (Score 6)
01:56 Thank you
--
Full question
https://superuser.com/questions/410765/w...
Accepted answer links:
[quoting the FFmpeg mailing list]: http://ffmpeg-users.933282.n4.nabble.com...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #ffmpeg
#avk47
ACCEPTED ANSWER
Score 6
What you see is the reciprocal of the time stamp bases used in FFmpeg and the en/decoders. I can't explain it better, therefore just quoting the FFmpeg mailing list:
tbn is the time base in AVStream that has come from the container, I think. It is used for all AVStream time stamps.
tbc is the time base in AVCodecContext for the codec used for a particular stream. It is used for all AVCodecContext and related time stamps.
tbr is guessed from the video stream and is the value users want to see when they look for the video frame rate, except sometimes it is twice what one would expect because of field rate versus frame rate.
In the end, you want to take tbr as the value one mostly refers to as "framerate".
Bitrate is not always shown as video streams might contain variable bitrate content – in that case, you couldn't really estimate the bitrate. For constant bitrate streams, bitrate is usually shown. There are some cases where variable bitrates are used and FFmpeg shows the average – at least with h.264 video this sometimes works.
Video: h264, yuv420p, 640x480, 22050 tbr, 22050 tbn, 44100 tbc
seems more like an audio stream, obviously.