shaka-project / shaka-streamer

A simple config-file based approach to preparing streaming media, based on FFmpeg and Shaka Packager.
https://shaka-project.github.io/shaka-streamer/
Apache License 2.0
199 stars 62 forks source link

Use `avg_frame_rate` instead of `r_frame_rate` when probing a video #93

Closed mariocynicys closed 3 years ago

mariocynicys commented 3 years ago

Seems that r_frame_rate may involve some calculation when the video has more than one frame rate(mixed frame rates), ffmpeg will try to find the least common multiple of all the different frame rates in the video, which is not the value we want.

To avoid this, we can use avg_frame_rate instead. See this

fixes #90