stewie wrote:
> I am looking forward to that. it would make my project complete. If you
> need a testbunny, sign me up.
>
> regards,
Hi Stewie,
Thanks for offering to test.
First thanks to Paul from our pcp team, the cdrom kernel drivers needed
for cdda2wav are now available for pcp 3.02. The kernel drivers also
allow users to mount CD/DVDs. I'll put those details in another post.
For now, you'll need to install cdda2wav from a putty session using an
rpi2 or rpi3.
Make sure you have the USB optical drive attached before you start and
that there's enough power to run it. I had to connect mine with a
powered hub.
You'll need to run all these commands as the default tc user from the
putty session.
The commands are in *bold*.
To install the kernel modules and cdda2wav.
Code:
--------------------
tc@piCoreplayer:~$ *pcp-load -r
https://sourceforge.net/projects/picoreplayer/files/repo -w -i pcp-cdda2wav.tcz*
[ INFO ] pcp-cdda2wav.tcz.dep Downloaded.....pcp-cdda2wav.tcz DEP Test Ok
[ INFO ] Downloading: cdrom-4.4.20-piCore_v7+.tcz
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to downloads.sourceforge.net (216.34.181.59:80)
Connecting to superb-dca2.dl.sourceforge.net (209.61.193.20:443)
cdrom-4.4.20-piCore_ 100%
|***********************************************************************| 45056
0:00:00 ETA
[ INFO ] Checking MD5 of: cdrom-4.4.20-piCore_v7+.tcz.....
cdrom-4.4.20-piCore_v7+.tcz OK
[ INFO ] Downloading: pcp-cdda2wav.tcz
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to sourceforge.net (216.34.181.60:443)
Connecting to downloads.sourceforge.net (216.34.181.59:80)
Connecting to superb-dca2.dl.sourceforge.net (209.61.193.20:443)
pcp-cdda2wav.tcz 100%
|***********************************************************************|
656k 0:00:00 ETA
[ INFO ] Checking MD5 of: pcp-cdda2wav.tcz.....pcp-cdda2wav.tcz OK
[ INFO ] All Files Tested Good
--------------------
To test if the drive is working, insert an audio CD and try these two
command. If you don't see similiar messages from them then your drive
is not recognized.
Code:
--------------------
tc@piCoreplayer:~$ *wodim -scanbus*
scsibus0:
0,0,0 0) 'BUFFALO ' 'Optical Drive ' '2.00' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
tc@piCoreplayer:~$ *wodim --devices*
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/sg0' rwrw-- : 'BUFFALO' 'Optical Drive'
-------------------------------------------------------------------------
--------------------
Now, let's try to read the TOC from the audio CD. Note that I'm using
*sr0* instead of *sg0* for the cdda2wav device.
Code:
--------------------
tc@piCoreplayer:~$ *cdda2wav -device /dev/sr0 -verbose-level=toc -N -g -J*
Type: ROM, Vendor 'BUFFALO ' Model 'Optical Drive ' Revision '2.00' MMC+CDDA
536576 bytes buffer memory requested, 4 buffers, 52 sectors
Read TOC CD Text failed (probably not supported).
#icedax version 1.1.11, real time sched., soundcard, libparanoia support
Tracks:10 47:37.47
CDINDEX discid: MiYPrdyfXkNSM4V_y4ge7h0iVSs-
CDDB discid: 0x7f0b290a
CD-Text: not detected
CD-Extra: not detected
Album title: '' from ''
T01: 0 5:03.30 audio linear copydenied stereo title '' from ''
T02: 22755 4:08.20 audio linear copydenied stereo title '' from ''
T03: 41375 4:48.30 audio linear copydenied stereo title '' from ''
T04: 63005 4:20.42 audio linear copydenied stereo title '' from ''
T05: 82547 4:46.45 audio linear copydenied stereo title '' from ''
T06: 104042 4:07.05 audio linear copydenied stereo title '' from ''
T07: 122572 4:52.63 audio linear copydenied stereo title '' from ''
T08: 144535 4:45.57 audio linear copydenied stereo title '' from ''
T09: 165967 5:24.45 audio linear copydenied stereo title '' from ''
T10: 190312 5:20.10 audio linear copydenied stereo title '' from ''
Leadout: 214322
--------------------
To rip a track using the same cdda2wav command as the CDPlayer plugin,
and play it, we first need to make sure nothing is using sound card.
Code:
--------------------
tc@piCoreplayer:~$ *sudo /usr/local/etc/init.d/squeezelite stop*
Stopping Squeezelite player: Squeezelite...
tc@piCoreplayer:~$ *sudo /usr/local/etc/init.d/shairport-sync stop*
Stopping Shairport-sync player: Shairport-sync...
--------------------
Play track to the built in sound card. You can change the -D hw:ALSA to
what you use for squeezelite for a different device. Make sure your
volume is not too loud before running it!
Code:
--------------------
tc@piCoreplayer:~$ *cdda2wav --speed 4 --output-format wav -gui
output-endianess=little --quiet device=/dev/sr0 -track 1 - | aplay -vv -D
hw:ALSA*
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 0 'bcm2835 ALSA' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 16384
period_size : 4096
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
appl_ptr : 0
hw_ptr : 0
############### + | 42%
--------------------
When the track has ended, you can eject the CD using the command line.
Code:
--------------------
tc@piCoreplayer:~$ *eject /dev/sr0*
--------------------
If that all works, then you should be able to use the same device with
bpa's CDPlayer plugin, once it's been updated to support the newer perl
versions.
21523
+-------------------------------------------------------------------+
|Filename: cdpset.jpg |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=21523|
+-------------------------------------------------------------------+
Ralphy
*1*-Touch, *5*-Classics, *2*-Booms, *1*-Reverted UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=105997
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix