Highly recommended to ignore this post if you’re questioning the use of this!
Hi,
I got an external Blu-ray/DVD/Audio-CD USB-connecting device at a thrift store. Use case: to rip a CD from time to time, from a Windows machine.
This got me thinking, would it be supported by Raspberry Pi, even better in a Zynthian setup? It would be a nice gadget to be able to spin an ad hoc CD, listen to it whirl, let the warmth of the laser give that nice edge - you know the drill… Kind of like having the already working Internet Radio player in the background.
What’s working: mplayer is installed in Zynthian out of the box.
Here’s an attempt to start audio CD playback:
(venv) root@zynthian:~# mplayer cdda://
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 177
MPlayer 1.5 (C) 2000-2022 MPlayer Team
Can’t open joystick device /dev/input/js0: No such file or directory
Can’t init input joystick
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing cdda://.
Found audio CD with 12 tracks.
rawaudio file format detected.
Track 1
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback…
A: 15.5 (15.4) of 2428.7 (40:28.6) 0.1%
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 27.4 (27.4) of 2428.7 (40:28.6) 10.7%
MPlayer interrupted by signal 2 in module: play_audio
A: 27.5 (27.4) of 2428.7 (40:28.6) 10.7%
So it seems like the device is supported, however ALSA isn’t happy (obvious as Zynthian is already using it).
Stopping the zynthian service didn’t help either.
So while all this is a quick experiment and I am ready to let it go, I am wondering if there’s an easy way to get this working after all.
This could be added to the Internet player which uses VLC. It would need a preset that sent the commandadd cdda:///dev/sr0 then use ‘play’, ‘stop’, ‘eject’, etc. commands.
I just don’t understand why you call this “experiment from the 80s”
Over the past couple of years, I’ve used Exact Audio Copy (EAC) hundreds of times to rip my CD collection, so now I can stream everything at home through the Lyrion Music Server - to my TV, my phone, or a few PiCorePlayers which saved a couple of HiFiBerry DACs from being used in Zynthian builds…
And yes, it already crossed my mind that it could be neat to stream it to Zynthian, as background audio, good for play-along practising, etc
Strangely, when I look at the internet radio plugin today on latest vangelis, it seems the default list of radio stations is not being loaded. Instead the middle section is blank.
I also can’t seem to find the /presets/inet_radio/presets.json file that should be written in the my data directory.
(venv) root@zynthian:/zynthian/zynthian-my-data/presets# ls lv2 mod-ui pianoteq puredata sysex TAL-U-No-LX zynaddsubfx
Is this working for others, and if so, is it still working if you remove the file (assuming you haven’t changed it)? It should be written if missing (code).
UPDATE: I forgot “““ is a multiline comment so it seems the file above is not written anymore.
UPDATE 2: when I re-enable the writing of a missing preset file it fails, workaround: manually create the directory/zynthian/zynthian-my-data/presets/inet_radio
Then the json is created again and the plugin works as expected
@jawn, I explored a bit and did some testing as well.
Now I’m able to stream (with limitations) from my LMS to Zynthian.
For that to happen, I set a Internet Radio preset “http://my_Lyrion_server_address:9000/stream.mp3”
Stop/start streaming toggles the appearance of Zynthian (VLC) in my server’s players list.
For now just .mp3, but maybe this can be improved (flac would be nice). I’ll sneak around a bit more.
I wonder if this brings some hints to your exploration.