| View previous topic :: View next topic |
| Author |
Message |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Wed Sep 28, 2005 4:12 pm Post subject: CDAudio error |
|
|
I was trying here to do something on the CDAudio department when I got an error
>>> tr0= c.open(props[ 'titles' ][ 1 ].title())
>>> buf= tr0.read( 5000 )
Traceback (most recent call last):
File "<stdin>", line 1, in ?
pymedia.removable.cd.CDError: cdda read encountered error: Code 5 .
Once again...help needed |
|
| Back to top |
|
 |
jbors Site Admin

Joined: 12 Nov 2004 Posts: 1675
|
Posted: Wed Sep 28, 2005 4:24 pm Post subject: |
|
|
| Access denied ? Are you logged as root or which OS is it in ? |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Wed Sep 28, 2005 4:54 pm Post subject: |
|
|
ok, it was indeed a permission problem
before:
crw-rw---- 1 root audio 14, 3 2005-09-28 19:27 /dev/dsp
after:
crwxr-xr-- 1 root audio 14, 3 2005-09-28 19:27 /dev/dsp
ty once more  |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Wed Sep 28, 2005 6:03 pm Post subject: |
|
|
ok, back to the problema. Even with the permission given the code 5 appeared again.
>>> buf= tr0.read( 50000 )
Traceback (most recent call last):
File "<stdin>", line 1, in ?
pymedia.removable.cd.CDError: cdda read encountered error: Code 5 . |
|
| Back to top |
|
 |
jbors Site Admin

Joined: 12 Nov 2004 Posts: 1675
|
Posted: Wed Sep 28, 2005 9:51 pm Post subject: |
|
|
| Try run it as root. For cdda interface pymedia uses direct disk read. /dev/dsp is for sound only. |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Mon Oct 03, 2005 8:38 pm Post subject: |
|
|
Problem's still there
seth@devil:~$ sudo python cda.py xxx.wav 2 0 1000000
Traceback (most recent call last):
File "cda.py", line 31, in ?
s= readTrack( track, int( sys.argv[ 3 ] ), int( sys.argv[ 4 ] ) )
File "cda.py", line 20, in readTrack
return tr0.read( bytes )
pymedia.removable.cd.CDError: cdda read encountered error: Code 5 . |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Sun Oct 09, 2005 11:21 am Post subject: |
|
|
jbors i really need your help on this, i cant make the cdaudio work.
It keeps givin me that error:
>>> t = tr0.read( 1000000 )
Traceback (most recent call last):
File "<stdin>", line 1, in ?
pymedia.removable.cd.CDError: cdda read encountered error: Code 5 .
 |
|
| Back to top |
|
 |
jbors Site Admin

Joined: 12 Nov 2004 Posts: 1675
|
Posted: Sun Oct 09, 2005 12:50 pm Post subject: |
|
|
I'd like to help but I'm very swamped with some other projects.
Try to play with the code yourself. Would love to get a patch if you can fix it  |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Sun Oct 09, 2005 12:59 pm Post subject: |
|
|
oh ok sure, then u need to tell me what is the meening of those error codes  |
|
| Back to top |
|
 |
jbors Site Admin

Joined: 12 Nov 2004 Posts: 1675
|
Posted: Sun Oct 09, 2005 1:14 pm Post subject: |
|
|
5 means access denied  |
|
| Back to top |
|
 |
Se7h Newbie
Joined: 21 Jul 2005 Posts: 41
|
Posted: Sun Oct 09, 2005 1:49 pm Post subject: |
|
|
I could be here all my life with no luck with it... It was a CD problem, lmao
Everything's fine, except i can't play my output file.
Is the output file straight raw? |
|
| Back to top |
|
 |
jbors Site Admin

Joined: 12 Nov 2004 Posts: 1675
|
Posted: Sun Oct 09, 2005 1:55 pm Post subject: |
|
|
Oh great !
You can use read_cdda_track example from CVS which output into WAV. |
|
| Back to top |
|
 |
|