Add systemd .service file for videokiosk
README: Add a few ffmpeg notes, reformat
udp-listener: Reformat json.dumps() lines
Loosely inspired by the Pi Video Looper script, but using mpv instead of the deprecated omxplayer, allowing for greater scriptability and remote control.
dev/7.1/rpi_import_2
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 --keep-open=always --keep-open-pause=no --force-window --input-ipc-server=/tmp/mpv-socket --playlist=playlist.txt
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)
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
sine
is being used as an example here.
mpv FILE --af=lavfi="sine[ltc],[aid1][ltc]amix=weights=0 1"