Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libav: Fix fps reporting for avi contaners
AVI container were aways reporting 600fps for any encoded video. This turns out to be because of a limitation in libav where the framerate is set from the video stream timebase instead of using the framerate field in the stream structure: https://github.com/FFmpeg/FFmpeg/blob/3141dbb7adf1e2bd5b9ff700312d7732c958b8df/libavformat/avienc.c#L527 Fix this by using 1/framerate as the timebase for video streams in avi containers. Signed-off-by: Naushir Patuck <[email protected]>
- Loading branch information