mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.32k stars 2.9k forks source link

mpv cannot display the video bitrate in the OSC if there is only one keyframe in the file. #11876

Open ghost opened 1 year ago

ghost commented 1 year ago

Important Information

N-R-K commented 1 year ago

The current behavior seems to be intentional:

https://github.com/mpv-player/mpv/blob/f76c441ba2ec60d34f91341fb2643bcbccecf433/demux/demux.c#L2745-L2746

And also in the docs:

https://github.com/mpv-player/mpv/blob/f76c441ba2ec60d34f91341fb2643bcbccecf433/DOCS/man/input.rst?plain=1#L3164-L3171

ghost commented 1 year ago

I was sure it was intentional at the time. You don't end up relying on keyframes for bitrate calculations by accident. It's still bad.