Including local media files in VLC web interface
2020-Dec-05, Saturday 09:30 pmI 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
You will want to edit;
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.
/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/vlcdTo 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