InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CDAudio error

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software
View previous topic :: View next topic  
Author Message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Wed Sep 28, 2005 4:12 pm    Post subject: CDAudio error Reply with quote

I was trying here to do something on the CDAudio department when I got an error Crying or Very sad

>>> 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
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Sep 28, 2005 4:24 pm    Post subject: Reply with quote

Access denied ? Are you logged as root or which OS is it in ?
Back to top
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Wed Sep 28, 2005 4:54 pm    Post subject: Reply with quote

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 Rolling Eyes
Back to top
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Wed Sep 28, 2005 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Sep 28, 2005 9:51 pm    Post subject: Reply with quote

Try run it as root. For cdda interface pymedia uses direct disk read. /dev/dsp is for sound only.
Back to top
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Mon Oct 03, 2005 8:38 pm    Post subject: Reply with quote

Problem's still there Confused

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
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Sun Oct 09, 2005 11:21 am    Post subject: Reply with quote

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 .

Mad
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 09, 2005 12:50 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Sun Oct 09, 2005 12:59 pm    Post subject: Reply with quote

oh ok sure, then u need to tell me what is the meening of those error codes Wink
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 09, 2005 1:14 pm    Post subject: Reply with quote

5 means access denied Smile
Back to top
View user's profile Send private message
Se7h
Newbie


Joined: 21 Jul 2005
Posts: 41

PostPosted: Sun Oct 09, 2005 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 09, 2005 1:55 pm    Post subject: Reply with quote

Oh great !
You can use read_cdda_track example from CVS which output into WAV.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group