UPDATE 1: Added details on autostarting and a Jivelite addon
Hello community,
this is one of my first posts here.
My goal: I am building a music player box with an integrated amp, turntable, CD player, a Raspberry Pi (+touchscreen) based streaming client and whatever may seem appropriate to me in the future
I got a little stuck with the CD player, as I wanted to use Squeezelite / Jivelite for the streaming client and there are no controls for a CD player and no player software included either.
After some testing of different approaches, my preferred solution is to use VLC as player and control it from Jivelite. As I may not be the only one who wants to add a CD player to Jivelite, I share what I think is necessary to do so:
1. Prepare appropriate Squeezelite / Jivelite configuration
In order to use VLC as player, Squeezelite needs to release the sound card when not active. This can be achieved by calling it with the "-C" option. While this sounds very easy, it actually needs some preparation on the Pi as the currently provided debian package does not yet support this option. So:
- Install Raspbian Lite
- Install minimum X system, e.g. here
- Download, build and install Squeezelite and Jivelite, e.g. here (start with the Squeezelite section). I haven't found a different way to autostart Squeezelite on the Pi than to install the debian package and overwrite the binary with the self-built one. If someone knows better, please let me know
- Now you should be able to configure Squeezelite to start with the "-C 3" option
2. Install VLC, e.g.3. Autostart VLC with the R(emote)C(ontrol) interface and bind to a Unix socket. Unfortunately, VLC seems to require a terminal to run the rc interface. Therefore you will need the screen package to run VLC as a job, e.g. by adding this to crontab on reboot:Code:sudo apt-get install vlc
If you want to get more metadata from VLC than just the title, you will have to build it by yourself an use my commit to the VLC sources.Code:screen -d -m /usr/bin/vlc -I oldrc --rc-unix ~/vlc.socket --extraintf=http:logger --verbose=2 --file-logging --logfile=~/vlc.log >/dev/null
5. Configure Jivelite to control VLC via the socket
Extract my example applet in the Jivelite applets folder. The applet is just a first try with a lot of coding mistakes. So please provide improvements, if you like!
6. Enjoy
So far, any hints or suggestions are highly appreciated!![]()
Results 1 to 4 of 4
Thread: Play audio CDs from Jivelite
-
2017-04-17, 02:18 #1
- Join Date
- Feb 2016
- Posts
- 31
Play audio CDs from Jivelite
Last edited by fvzeppelin; 2017-04-20 at 09:22. Reason: Correction of attachment
-
2017-04-20, 12:01 #2
- Join Date
- Feb 2016
- Posts
- 31
First post updated
-
2017-04-20, 15:21 #3
hi fvzeppelin,
Seems like a really cool project.
Am I understanding correctly, when playing a CD, you are not using the SB/LMS environment at all.
regards
Greg
-
2017-04-20, 22:40 #4
- Join Date
- Feb 2016
- Posts
- 31