mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: mpv-iptv
This commit is contained in:
16
packages/mpv-iptv.nix
Normal file
16
packages/mpv-iptv.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
mpv,
|
||||
writers,
|
||||
}:
|
||||
writers.writeDashBin "iptv" ''
|
||||
set -efu
|
||||
${mpv}/bin/mpv \
|
||||
--audio-display=no --audio-channels=stereo \
|
||||
--audio-samplerate=48000 --audio-format=s16 \
|
||||
--ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \
|
||||
--audio-delay=-1 \
|
||||
--playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \
|
||||
--idle=yes \
|
||||
--input-ipc-server=/tmp/mpv.ipc \
|
||||
"$@"
|
||||
''
|
||||
Reference in New Issue
Block a user