1277f Can't access CDs or DVDs - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Multimedia

Multimedia Having problems running your new shiny and blinking gadget or watching DVDs, listening to CDs etc.?

Reply
 
Thread Tools Display Modes
  #1  
Old November 16th, 2011, 12:30
robspop robspop is offline
Junior Member
 
Join Date: Oct 2011
Posts: 34
Thanks: 3
Thanked 1 Time in 1 Post
Default Can't access CDs or DVDs

I cannot access audio CDs or DVDs and I am not sure why. I'm using 9.0-RC1 amd64. I have added atapicam to loader.conf and the device is detected on boot:
Code:
Nov 16 10:23:41 BSD kernel: cd0 at ata0 bus 0 scbus4 target 0 lun 0
Nov 16 10:23:41 BSD kernel: cd0: <HL-DT-ST DVDRAM GSA-4167B DL11> Removable CD-ROM SCSI-0 device 
Nov 16 10:23:41 BSD kernel: cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
Nov 16 10:23:41 BSD kernel: cd0: cd present [52685 x 2048 byte records]
# camcontrol devlist appears to give expected output:
Code:
# camcontrol devlist
<ST3500418AS CC38>                 at scbus0 target 0 lun 0 (ada0,pass0)
<Hitachi HDS721032CLA362 JPFOA39C>  at scbus3 target 0 lun 0 (ada1,pass1)
<HL-DT-ST DVDRAM GSA-4167B DL11>   at scbus4 target 0 lun 0 (cd0,pass2)
I can successfully mount and read a data cd:
Code:
# mount -t cd9660 /dev/cd0 /mnt
# ls /mnt
.cshrc          HARDWARE.TXT    boot.catalog    media           stand
...
but I cannot seem to access it with an audio CD in the drive (or a DVD either). I've tried direct access:
Code:
# cdda2wav -D /dev/cd0 -t 1
cdrom device (/dev/cd0) is not of type generic SCSI. Setting interface to cooked_ioctl.
307200 bytes buffer memory requested, transfer size 129024 bytes, 4 buffers, 27 sectors
#Cdda2wav version 3.00_freebsd_9.0-current_amd64_amd64, real time sched., soundcard, libparanoia support
Segmentation fault (core dumped)
or, rather desperately:
Code:
# cdda2wav -scanbus
cdda2wav: Inappropriate ioctl for device. CAMIOCOMMAND ioctl failed. Cannot open or use SCSI driver.
I've also tried a range of CD players including VLC, Rhythmbox, xcd, bebocd, etc., but only get a variety of device error messages. It is not a sound problem, I can listen to mp3 files, and I do not think it has anything to do with whether or not there is a cable attaching the drive to the sound card.
Reply With Quote
  #2  
Old November 16th, 2011, 14:47
darcsis darcsis is offline
Junior Member
 
Join Date: Nov 2008
Posts: 53
Thanks: 0
Thanked 8 Times in 6 Posts
Default

Did you recompile your ports after upgrading to 9.0? As I know, cdparanoia is broken on 9.0 due to kernel changes. I assume this has something to do with your problem. You are supposed to rebuild cdrtools if possible and then give it a try.
Reply With Quote
  #3  
Old November 16th, 2011, 15:46
robspop robspop is offline
Junior Member
 
Join Date: Oct 2011
Posts: 34
Thanks: 3
Thanked 1 Time in 1 Post
Default

It was a fresh install of 9.0, not an upgrade: does this still apply?
Reply With Quote
  #4  
Old November 16th, 2011, 16:48
zeissoctopus zeissoctopus is online now
Member
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 113
Thanks: 150
Thanked 21 Times in 14 Posts
Default

Quote:
Originally Posted by darcsis View Post
Did you recompile your ports after upgrading to 9.0? As I know, cdparanoia is broken on 9.0 due to kernel changes. I assume this has something to do with your problem. You are supposed to rebuild cdrtools if possible and then give it a try.
Please update your ports tree , cdparanoia had been patched for 9.0 's new SCSI IO API please refer PR 161760

rebuild cdparanoia to solve 9.0 problem

You can use mplayer with CDDA support to enjoy your audio CD in 9.0
Reply With Quote
  #5  
Old November 16th, 2011, 17:19
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Quote:
Originally Posted by robspop View Post
It was a fresh install of 9.0, not an upgrade: does this still apply?
It's usually worth updating to the latest ports tree. But rebuilding all ports is only necessary when the OS has been upgraded from one major version to another, like 8.x to 9.x.
Reply With Quote
  #6  
Old November 16th, 2011, 20:26
robspop robspop is offline
Junior Member
 
Join Date: Oct 2011
Posts: 34
Thanks: 3
Thanked 1 Time in 1 Post
Default

Ok, thanks; "just in case" I did refresh the ports tree and re-installed cdrtools and cdda2wav and it does seem to have made some difference. I can now play CDs, but still can't listen to them. E.g., xcd runs and gives what looks like correct track information, and cdda2wav can rip the tracks. But, I cannot find a way of simply listening to them. The CD device is wired to the sound card. I do not know for certain which players use the direct cable link and which treat the CD essentially as data but have tried a variety. vlc plays DVDs with no problem but won't play an audio CD. xmms just gives lots of error messages. rhythmbox cannot seem to find the device. What do other people use?
Reply With Quote
  #7  
Old November 16th, 2011, 22:18
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Try cdcontrol(1).
Reply With Quote
  #8  
Old November 16th, 2011, 22:35
robspop robspop is offline
Junior Member
 
Join Date: Oct 2011
Posts: 34
Thanks: 3
Thanked 1 Time in 1 Post
Default

I probably should have said that it was one of the ones I tried and it does the same as the more successful of the others, inasmuch as the disk starts to spin and there are no error messages, the light on the drive indicates activity, but still no sound. I have checked mixer settings and all the levels are adequate. I have tried this both as root and as normal user.
Reply With Quote
  #9  
Old November 16th, 2011, 23:15
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

If the CD spins and cdda2wav works, it implies that the problem is hardware. Maybe the cable from the drive to the audio card or motherboard, or maybe something more subtle like the wrong audio input.

Some people just play CDs digitally, using the output from cdda2wav.
Reply With Quote
  #10  
Old November 16th, 2011, 23:48
robspop robspop is offline
Junior Member
 
Join Date: Oct 2011
Posts: 34
Thanks: 3
Thanked 1 Time in 1 Post
Default

Thanks for the responses and perhaps I will go with that as a solution, at least for now, as I hate to be ultimately defeated by such issues. I take your point about the hardware though playing a DVD in the same drive does produce sound, and booting the machine with a live linux image does allows me to play CDs with sound, so if there is a hardware problem it must be related to how it works with the FreeBSD drivers rather than a general fault. Mostly I cannot tell what is happening except that the disk is spinning, though I have now had some error messages from vlc which I include in case they give anyone a clue:
Code:
...
cdda access error: cannot read sector 269021
cdda access error: Could not set block size
...
cdda error: Could not set block size
cdda error: cannot read sector 269180
es error: cannot peek
es error: cannot peek
es error: cannot peek
es error: cannot peek
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XBMC playing dvds/cds brianc Multimedia 6 December 15th, 2011 01:40
any luck ripping encrypted dvds? LateNiteTV Multimedia 15 July 2nd, 2009 16:35
FreeBSD 7.1-RELEASE -- Problems with ATAPICAM & DMA on 2 SATA DVDs DutchDaemon System Hardware 2 May 6th, 2009 00:24
backup and dvds bluetick Off-Topic 2 April 5th, 2009 23:47
Cannot mount CDs or DVDs Lexx Multimedia 3 March 17th, 2009 00:06


All times are GMT +1. The time now is 16:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0