Menu

#637 Playback Information on OSD

Next_Release
closed-fixed
nobody
5
2016-12-01
2016-05-03
Redbaron
No

It would be very helpfull, informative and practical to add Playback Information like in Bomi. Playback information is used to show in OSD playing file information and many other dunamic information and statistics, Added screenshot in attachment. Bomi is also based on mpv so I think it would be easy to implement.

1 Attachments

Related

Bugs: #835
Feature Requests: #681

Discussion

  • Sergey Kondakov

    Sergey Kondakov - 2016-09-09

    Huh, I just wanted to make new FR about that saying that it also would help diagnose abnormalities easier. Having filter chain and mpv frame drops visible like that ! It uses mpv's "properties", this code of Xt7 mpv GUI gives some insight (too bad mpv doesn't have that property list as one command): https://github.com/kokoko3k/xt7-player-mpv/blob/34613f158201a48548d09cdbd12045abd13394fe/.src/Form/FMain.class#L4773
    I prefer to use TAB key in bomi and Xt7 to toggle it and really would appreciate this ability in smplayer. Or/and smplayer's "player state" similar info dialogue maybe too would be handy.

    https://sourceforge.net/p/smplayer/feature-requests/252/ FR is similar to this but, I presume, is more about "status bar" info.

     
  • Sergey Kondakov

    Sergey Kondakov - 2016-09-17

    I've managed to force smplayer to display that stuff by putting

    --osd-msg3="\n[custom statistics]\n current vo: ${current-vo}\n current ao: ${current-ao}\n frames dropped by decoder: ${drop-frame-count}\n frames dropped by vo: ${vo-drop-frame-count}\n frames delayed by vo: ${vo-delayed-frame-count}\n mistimed frames: ${mistimed-frame-count}\n \n estimated display FPS: ${estimated-display-fps}\n vsync ratio: ${vsync-ratio}\n vsync jitter: ${vsync-jitter}\n last A/V sync difference: ${avsync}\n total A/V sync correction: ${total-avsync-change}\n audio speed correction: ${audio-speed-correction}\n video speed correction: ${video-speed-correction}\n"
    

    in Preferences->Advanced->MPlayer/mpv->Options and then selecting level 3 of OSD.
    Unfortunately smplayer does some weird stuff with " and spaces in that line.

    There is a great LUA script that's similar to what Bomi does and mpv's developers advertise it themselves (https://github.com/mpv-player/mpv/wiki/User-Scripts#lua-scripts).
    https://github.com/Argon-/mpv-stats/
    It works great in mpv but smplayer disables its hotkeys :(
    Smplayer could just package it and add its own hotkeys. Or better yet, add function for custom hotkeys.

     

    Last edit: Sergey Kondakov 2016-09-17
    • Ricardo Villalba

      I think the problem with spaces and quotes is fixed in the development version.

       
  • Ricardo Villalba

    I'm working on it. It will be in the next version.

     
  • Ricardo Villalba

    This feature has been added to version 16.11 (Shift + I).
    It's also possible to set a different string using the option mpv_osd_media_info in smplayer.ini

     
  • Ricardo Villalba

    • status: open --> closed-fixed
     
  • Sergey Kondakov

    Sergey Kondakov - 2016-12-01

    Great work, thanks !
    But what exactly do you mean by "different string" ? Also, information, unfortunately, is quite lacking in comparison to bomi and mpv-stats. And it doesn't seem possible to set it as toggle unto mouse button but that's not ctitial since I usually use it only while testing the validity of video options for my hardware. Similar on how they do in https://github.com/mpv-player/mpv/issues/2685

     

    Last edit: Sergey Kondakov 2016-12-01
    • Ricardo Villalba

      The text you set in mpv_osd_media_info will be displayed when you press Shift + I. You can use mpv properties so you can add all info you need.

      For example:
      mpv_osd_media_info=Filename: ${filename}\\nTime: ${time-pos}

       

      Last edit: Ricardo Villalba 2016-12-01

Log in to post a comment.