propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

MPV player : control volume and playlist using GPIO inputs?

Fri May 05, 2017 11:46 am

Hello,
I would like to control MPV player ( https://mpv.io/ ) using rotary encoders.
I "only" need one control for the volume, and one for parsing a playlist from line to line to switch from a stream to an other.

For now I am able to use my keyboard to input this commands, but I realy dont know if MPV can be controled via GPIO.
Since I have no programming skill, I even dont know where/what to search for :oops:

The doc of MPV says that there is an input.conf file, but it looks like the file only define keyboard mapping and not GPIO.

If someone can give me some directions, I would realy appreciate.


PS : I need to use MPV since my streams seem to only play inside this command line player.
It doesnt play in MPD/MPC.
Streams are output from an other PI (using rtl_fm_streamer) with a USB RTL dongle that received FM radio.

PS 2 : in case someone is interested I managed to compile the latest version 0.25 on a PI Zero W : https://drive.google.com/open?id=0Bxgjx ... FRESE9jR0U

Return to “Beginners”