aboutsummaryrefslogtreecommitdiff
path: root/MPVTV/tv
blob: 2987359d9dc9ab5e078d17ee19294e54db8316b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e
echo -e 'q quit\n< playlist-prev\n> playlist-next\nm cycle mute\n/ add volume -2\n* add volume 2' > /dev/shm/input.conf
(echo "#EXTM3U" && \
       curl -s https://xxxyyyzzz/channels.json | \
       jq -rj 'map("#EXTINF:0," + .name + "\nhttps://xxyyzz/watch/" + .addr + "\n") | join("")' | \
       tr -d '\r') > /dev/shm/playlist.m3u8

mpv \
        --playlist=/dev/shm/playlist.m3u8 \
        --input-conf=/dev/shm/input.conf \
        --fs \
        --no-osc \
        --no-config \
        --no-input-builtin-bindings \
        --gpu-context=drm \
        --vo=gpu \
        --profile=sw-fast \
        --drm-mode=4096x2160 \
        --hwdec=nvdec \
        --drm-device=/dev/dri/by-path/pci-0000:01:00.0-card \
        --audio-device=alsa/hdmi:CARD=NVidia