mpv-player / mpv

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

Show codec flavor in stats also in passthrough mode #14178

Closed mitzsch closed 4 months ago

mitzsch commented 4 months ago

Expected behavior of the wanted feature

With the newest mpv it shows the codec flavor in the stats, as seen here =>

image

With passthrough enabled it only shows something like this =>

current_state

It would be awesome if instead of [spdif_dts_hd] it would also show the codec with flavor like seen above. => e.g. for TrueHD/Atmos passthrough => TrueHD [TrueHD + Atmos] or _spdiftruehd [TrueHD + Atmos] or libavformat/spdifenc audio pass-through decoder [TrueHD + Atmos]

Thanks!

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

kasper93 commented 4 months ago

codec profile is not accessible, this information is given by the decoder after the actual data is decoded. In passthrough mode we only have codec. I've added missing description, which should fix empty field in stats https://github.com/mpv-player/mpv/pull/14179