Do not follow this link

~jmaibaum/raspberry-mpv-kiosk

Kiosk Video Player for modern Raspberry Pis based on mpv.io
Add systemd .service file for videokiosk
README: Add a few ffmpeg notes, reformat
udp-listener: Reformat json.dumps() lines

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~jmaibaum/raspberry-mpv-kiosk
read/write
git@git.sr.ht:~jmaibaum/raspberry-mpv-kiosk

You can also use your local clone with git send-email.

#Raspberry Pi MPV Video Kiosk

Loosely inspired by the Pi Video Looper script, but using mpv instead of the deprecated omxplayer, allowing for greater scriptability and remote control.

#Notes

#RPi-FFmpeg

#branch

dev/7.1/rpi_import_2

#Compilation notes

Check again if C{XX,}FLAGS="-march=native -mtune=native" has any effect on CPU usage. In a first test it seemed if it can still reduce usage on H.264/H.265 videos by ~5-10%. Without those flags, usage is around 15-22%.

#MPV commands

mpv --keep-open=always --keep-open-pause=no --force-window --input-ipc-server=/tmp/mpv-socket --playlist=playlist.txt
#Control mp4
#Start playback of a playlist position (if not running already)
echo '{"command":["set_property","playlist-pos",0]}' | socat - /tmp/mpv-socket # play index 0 (unless running already)
echo '{"command":["set_property","playlist-pos",1]}' | socat - /tmp/mpv-socket # play index 1 (unless running already)
#Unconditionally (re-)start playback of a playlist position
echo '{"command":["playlist-play-index",0]}' | socat - /tmp/mpv-socket # play index 0
echo '{"command":["playlist-play-index",1]}' | socat - /tmp/mpv-socket # play index 1
#Replacing (stereo) audio stream with lafvi source filter

sine is being used as an example here.

mpv FILE --af=lavfi="sine[ltc],[aid1][ltc]amix=weights=0 1"
Do not follow this link