Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta in controls bar #886

Open
Solarunit opened this issue Apr 22, 2024 · 5 comments
Open

Meta in controls bar #886

Solarunit opened this issue Apr 22, 2024 · 5 comments

Comments

@Solarunit
Copy link

I think it would be nice to have codec and resolution labels that you can add on the controls bar.
Something like this:

mpv-codec-info

@tomasklaen
Copy link
Owner

Maybe we can have a new control element that displays a template while subscribing to its properties like we do with the title.

@tomasklaen tomasklaen changed the title Codec and resolution labels on the controls bar Meta in controls bar Apr 22, 2024
@Solarunit
Copy link
Author

I see It could be a problem with converting mpv resolution property like 3840x1920 to just 4K or 1920x1080 to 1080 HD to make it look more compact on controls bar.

@tomasklaen
Copy link
Owner

The resolution shorthands could be resolved by providing a custom {resolution} template macro which we format behind the scenes.

This would also need some basic templating features like built in function for formatting stuff, e.g. {human_time(duration)}.

I expect this to take a lot of fiddling and time to implement. Can't promise I ever get to it.

@mrfragger
Copy link

I realize this is for control bar and not titlebar but in the meantime this is what I use for titlebar to display video resolution. Some reason can't upload screenshot but looks like below.

64% 00:20:11 00:31:45 00:11:34 https://www.youtube.com/watch?=blahblah 441 kbps 47 kbps 360p

top_bar_alt_title=${percent-pos}% ${playback-time} ${duration} ${playtime-remaining} ${?demuxer-via-network==yes:${path}}${?demuxer-via-network==no:${media-title}} ${?file-size:${file-size}} ${?video-bitrate:${video-bitrate}} ${?audio-bitrate:${audio-bitrate}} ${?video-params/h:${video-params/h}}p

toggle it on/off with shortcut input.conf
C script-message-to uosc toggle-elements top_bar #! [Playback] > On/off uosc top bar progress %

@Solarunit
Copy link
Author

My idea is inspired by Kodi video info in the right bottom corner. So I want similar labels in controls bar 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants