adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
443 stars 240 forks source link

change audio on mkv video #188

Closed Crover81 closed 9 months ago

Crover81 commented 1 year ago

hi, i should have to change audio track of a mkv, it should be possible with omxplayer, but among the enabled keyboard commands there is no this option, it could be a useful option for other people too

Is it possible to do something? Thanks

Redacted99 commented 1 year ago

Which keys in omxplayer switch streams? Is it j and k?

Crover81 commented 1 year ago

Exactly,

j = Previous Audio stream k = Next Audio stream

Redacted99 commented 1 year ago

I did something similar, I added a pause resume capability using the space key mapped to a omxplayer key command. Adding j and k support would be similar. Copy my code and change the bindings and action. Branch 163 on my fork. Redacted99/pi_video_looper.

Hope this helps