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

A button to switch the different video track #8065

Closed
hooke007 opened this issue Sep 7, 2020 · 6 comments
Closed

A button to switch the different video track #8065

hooke007 opened this issue Sep 7, 2020 · 6 comments

Comments

@hooke007
Copy link
Contributor

hooke007 commented Sep 7, 2020

Expected behavior of the wanted feature

Add a button to switch the different video track in one MKV file which contains two or more video tracks. (on the OSC controller)

Alternative behavior of the wanted feature

Automatically playing the next video track. (It will just play the first video track in one multi-videos track file)

@ghost
Copy link

ghost commented Sep 7, 2020

That's a bit obscure. Currently you can just press the _ key. (Will cycle through no video.)

@hooke007
Copy link
Contributor Author

hooke007 commented Sep 7, 2020

Yep, I know that shortcut key. I wish it could have a more intuitive option.

@Traneptora
Copy link
Member

The OSC is designed to provide relatively common player features to make mpv function a little bit more like a GUI player. Cycling video tracks is a relatively unusual and obscure option so adding it to the OSC would clutter it up a bit more. You can still use _ and if that keyboard shortcut does not satisfy your fancy, you can change it to anything else in input.conf.

@jimmy-1000

This comment has been minimized.

@hooke007 hooke007 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2022
@vt-idiot
Copy link

vt-idiot commented Aug 5, 2023

Expected behavior of the wanted feature

Add a button to switch the different video track in one MKV file which contains two or more video tracks. (on the OSC controller)

Alternative behavior of the wanted feature

Automatically playing the next video track. (It will just play the first video track in one multi-videos track file)

@hooke007 You still looking for this? Found this issue after having the same thought myself.

I'm not clever enough to figure out how to disable the button when there are only embedded images (cover art, MKV attachments, doesn't matter) + 1 video (or to hide those as "video tracks" from the selector) but here you go...

image

The button greys itself out when there is only one video track. It will treat embedded images, regardless of container, as video tracks. I have no idea what that icon is for, but its codepoint wasn't being used for anything else in osc.lua, and it looked like an eyeball to me.


Grabbed current osc.lua from this repo: original-osc.lua.txt

"Monkey see - monkey do"'d a button to change the video track: osc.lua.txt - rename that osc.lua and you're good to go. Change the line endings (LF -> CR LF) if you're on Windows... or just use this: osc.lua.CRLF.txt

Made a diff/patch: nuOSC.patch

@jimmy-1000
Copy link

jimmy-1000 commented Aug 5, 2023

...

Thanks for this script. You need to add --no-osc to mpv.conf.
About the images (videos with cover) the problem is in mpv, not in the lua. I discovered that problem when I used SMplayer (it uses mpv as core). I reported it but the programmers ignore it and closed my issue:
#8561

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

No branches or pull requests

4 participants