clients:cvlc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
clients:cvlc [2018/05/29 03:26] – Sean Rhone | clients:cvlc [2022/05/19 21:25] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Headless VLC setup using cvlc | ||
+ | * Plays internet radio | ||
+ | * [[# | ||
+ | |||
+ | ====== Prerequisites ====== | ||
+ | |||
+ | * [[Distros: | ||
+ | |||
+ | ====== Dependencies ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo apt install ' | ||
+ | |||
+ | ====== Volume ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | alsamixer | ||
+ | |||
+ | ====== Service ====== | ||
+ | |||
+ | * If [[servers: | ||
+ | * See [[information: | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=VLC Headless Internet Radio Player | ||
+ | After=network-online.target pihole-FTL.service | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | User=pi | ||
+ | Group=pi | ||
+ | Restart=always | ||
+ | RestartSec=5 | ||
+ | |||
+ | #~~~~~~~~~~ | ||
+ | # Big B Radio #KPOP | ||
+ | # | ||
+ | #~~~~~~~~~~ | ||
+ | # Blue Heron Radio | ||
+ | # | ||
+ | #~~~~~~~~~~ | ||
+ | # Gensokyo Radio | ||
+ | # | ||
+ | #~~~~~~~~~~ | ||
+ | # TRAP.FM | ||
+ | ExecStart=/ | ||
+ | #~~~~~~~~~~ | ||
+ | # Dubbase.FM | ||
+ | # | ||
+ | #~~~~~~~~~~ | ||
+ | # DrumandBass.FM | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ProtectSystem=true | ||
+ | PrivateTmp=true | ||
+ | ProtectKernelTunables=true | ||
+ | ProtectKernelModules=true | ||
+ | ProtectControlGroups=true | ||
+ | RestrictNamespaces=true | ||
+ | MemoryDenyWriteExecute=true | ||
+ | RestrictRealtime=true | ||
+ | NoNewPrivileges=true | ||
+ | PrivateUsers=true | ||
+ | LockPersonality=true | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target</ | ||
+ | |||
+ | ====== Remote Actions ====== | ||
+ | |||
+ | ===== Station Change ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ssh ' | ||
+ | |||
+ | ===== Stop ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ssh ' | ||
+ | |||
+ | ===== Start ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ssh ' | ||
+ | |||
+ | ====== Chromecast Notes ====== | ||
+ | |||
+ | * :!: Both Windows Firewall and firewalld from openSUSE TW actively block this; TODO: Figure out firewall rules | ||
+ | * Create speaker Group (not pair) and add all speakers to it | ||
+ | * Install PyChromecast | ||
+ | * Use it to scan for the speaker group URL and port | ||
+ | * https:// | ||
+ | |||
+ | pip3 install PyChromecast | ||
+ | |||
+ | python | ||
+ | |||
+ | import pychromecast | ||
+ | |||
+ | chromecasts = pychromecast.get_chromecasts() | ||
+ | |||
+ | chromecasts | ||
+ | |||
+ | vlc.exe " |