[personal profile] chebe
I have VLC running on a headless system, in the form of the Pimoroni Pirate Radio. You can easily setup the radio station playlist by creating editing /etc/vlcd/default.m3u or /home/pi/.config/vlc/playlist.m3u. But what about adding local files to the Media Library? All the posts assume a graphical interface, so this took a little digging.

You will want to edit;
sudo vim /usr/bin/vlcd

To add on command line options for customisation. If you simply add the paths you want included to the end of the list they'll be included on reboot. But it doesn't get them into the actual Media Library section so instead I just disabled it, and enabled playlist trees for a nice folder structure.

/usr/bin/vlc \
--verbose 1 \
--file-logging \
--logfile /var/run/vlcd/vlcd.log \
--$volpref \
--audio-filter compressor,volnorm \
--norm-buff-size 10 \
--norm-max-level 80.0 \
--norm-max-level -3 \
--compressor-attack 50.0 \
--compressor-release 200.0 \
--compressor-ratio 20.0 \
--compressor-threshold 0.0 \
--compressor-rms-peak 0.0 \
--compressor-knee 1.0 \
--compressor-makeup-gain 0.0 \
--intf dummy \
--extraintf rc:http \
--rc-host 0.0.0.0:9294 --rc-fake-tty \
--http-host 0.0.0.0 --http-port 8080 --http-password ************ \
--no-quiet \
--daemon \
--pidfile /var/run/vlcd/vlcd.pid \
$playlist \
--no-media-library \
--playlist-tree \
/home/pi/music
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org