Forum
[PROBLEM] USB 2.0 DVDRW can't read DVD - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Peripherals (/forum-27.html)
+--- Thread: [PROBLEM] USB 2.0 DVDRW can't read DVD (/thread-773.html)

Pages: 1 2 3


USB 2.0 DVDRW can't read DVD - Levi59 - 10th Apr, 2013 06:40 PM

First of all, please excuse my English which may not always be right.

I come to you to ask for help against an external DVD burner that I recovered and I'd like to use with my Raspberry PI. It works without problem on Seven against it but seems not to be recognized correctly under linux.

General Info:
Xbian Version : 1.0a5
XBMC 12.1 GIT:20130317-0d373cc (Compiled: Mar 18 2013)
Transparency! V5.0.9

I have purchased the licence key for MPEG-2.
Overclock : mode Xbian
Raspberry is powered by an adapter purchased on http://raspberrypi.rsdelivers.com/default.aspx?cl=1
I use a powered USB hub purchased separately also on site. I have an external hard drive 1Tio on it.
SD: This is a Blank 4GB Class 6 SD Flash memory card for sale on the same site as above.
Connection: LAN

Information on the DVD burner:
I plug it on the HUB, it turns on and is able after a mount, with the terminal to see the content of a dvd but it can not read it. He did not respond to the menu "read disk" or eject request. It does not detect either when I change the DVD with the eject button of the drive.

dmesg :
Code:
[111838.223934] usb 1-1.2.1: USB disconnect, device number 6
[111876.605949] usb 1-1.2.1: new high-speed USB device number 9 using dwc_otg
[111876.707435] usb 1-1.2.1: New USB device found, idVendor=13fd, idProduct=0940
[111876.707464] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[111876.707479] usb 1-1.2.1: Product: External
[111876.707492] usb 1-1.2.1: Manufacturer: Generic
[111876.707504] usb 1-1.2.1: SerialNumber: FFFFFFFFFFFFFFFFFFFFFFFF
[111876.715060] scsi2 : usb-storage 1-1.2.1:1.0
[111877.723637] scsi 2:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GA10N    A105 PQ: 0 ANSI: 0
[111877.732373] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda caddy
[111877.733152] sr 2:0:0:0: Attached scsi CD-ROM sr1
[112292.173757] usb 1-1.2.1: USB disconnect, device number 9
[112298.293934] usb 1-1.2.1: new high-speed USB device number 10 using dwc_otg
[112298.395249] usb 1-1.2.1: New USB device found, idVendor=13fd, idProduct=0940
[112298.395279] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[112298.395294] usb 1-1.2.1: Product: External
[112298.395306] usb 1-1.2.1: Manufacturer: Generic
[112298.395318] usb 1-1.2.1: SerialNumber: FFFFFFFFFFFFFFFFFFFFFFFF
[112298.403037] scsi3 : usb-storage 1-1.2.1:1.0
[112299.406003] scsi 3:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GA10N    A105 PQ: 0 ANSI: 0
[112299.417665] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda caddy
[112299.418411] sr 3:0:0:0: Attached scsi CD-ROM sr1
[112955.560186] usb 1-1.2.1: USB disconnect, device number 10
[112964.502474] usb 1-1.2.1: new full-speed USB device number 11 using dwc_otg
[112964.662464] usb 1-1.2.1: new high-speed USB device number 12 using dwc_otg
[112964.764024] usb 1-1.2.1: New USB device found, idVendor=13fd, idProduct=0940
[112964.764060] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[112964.764076] usb 1-1.2.1: Product: External
[112964.764089] usb 1-1.2.1: Manufacturer: Generic
[112964.764102] usb 1-1.2.1: SerialNumber: FFFFFFFFFFFFFFFFFFFFFFFF
[112964.772307] scsi4 : usb-storage 1-1.2.1:1.0
[112965.774437] scsi 4:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GA10N    A105 PQ: 0 ANSI: 0
[112965.786072] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda caddy
[112965.787634] sr 4:0:0:0: Attached scsi CD-ROM sr1
[113364.447452] usb 1-1.2.1: USB disconnect, device number 12
[113370.059792] usb 1-1.2.1: new high-speed USB device number 13 using dwc_otg
[113370.161085] usb 1-1.2.1: New USB device found, idVendor=13fd, idProduct=0940
[113370.161113] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[113370.161128] usb 1-1.2.1: Product: External
[113370.161140] usb 1-1.2.1: Manufacturer: Generic
[113370.161152] usb 1-1.2.1: SerialNumber: FFFFFFFFFFFFFFFFFFFFFFFF
[113370.169396] scsi5 : usb-storage 1-1.2.1:1.0
[113371.171804] scsi 5:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GA10N    A105 PQ: 0 ANSI: 0
[113371.183276] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda caddy
[113371.184054] sr 5:0:0:0: Attached scsi CD-ROM sr1


Code:
xbian@xbian ~ $ lsusb -s 001:010
Bus 001 Device 010: ID 13fd:0940 Initio Corporation
xbian@xbian ~ $ tail -f ~/.xbmc/temp/xbmc.log
10:28:09 T:3042738176   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sr1: IsFileSystem false HasFileSystem  IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical false
xbian@xbian ~ $ sudo mount /dev/sr0 /media/cdrom/
[sudo] password for xbian:
mount: block device /dev/sr0 is write-protected, mounting read-only

If i open DVD as a folder (juste select it in Videos menu), here is what I get in log:
http://pastebin.com/07KnZFWG

If I try to read a VOB file :
http://pastebin.com/uzZr1vms

If i chose eject with "key c"
Code:
10:37:06 T:3042324480   DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
10:37:06 T:3042324480   DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
10:37:06 T:3042324480   DEBUG:   ParentPath = [sources://video/]
10:37:06 T:2791265344  NOTICE: Thread Background Loader start, auto delete: false
10:37:06 T:2791265344   DEBUG: Thread Background Loader 2791265344 terminating
10:37:08 T:2912642112   DEBUG: ### [Qlock] - Delaying 3 secs

I hope this information will help you.


Re: USB 2.0 DVDRW can't read DVD - f1vefour - 11th Apr, 2013 07:28 AM

See this for resolution:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=17877

XBMC doesn't support DVD encryption (but the provided link provides a nice workaround).


RE: USB 2.0 DVDRW can't read DVD - Levi59 - 11th Apr, 2013 09:16 AM

This solution does not solve my problem completely. I have not tested it yet, but what is certain is that it does not alter the recognition of my DVD burner drive.
I want to use my player normally ie to eject my DVD from xbmc, xbmc should also "sees" the disk change and there have fewer problems mounting ...

I also read that xbmc was not compiled with options for decryption. Is it possible to activate it myself?

The most important is to understand that the XBMC device is not a USB but an optical drive.
Quote:xbian@xbian ~ $ tail -f ~/.xbmc/temp/xbmc.log
10:28:09 T:3042738176 DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sr1: IsFileSystem false HasFileSystem IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical false



Re: USB 2.0 DVDRW can't read DVD - f1vefour - 11th Apr, 2013 10:10 AM

I did not see the second part of your issue.

Someone with a USB drive will have to chime in as I have no experience with the hardware.


RE: USB 2.0 DVDRW can't read DVD - Levi59 - 12th Apr, 2013 06:40 AM

Well I tested on an old EeePC with Debian Squeeze (Xbian is based on Wheezy I think) and the drive is recognized correctly (it appears as a DVD player, I can eject the disc without problem, VLC can read it ). So it must come from Xbian.

When I plug the disk drive, it nothing happens (normal), if I put a DVD, the title appears in the videos section (still normal).

If I select the DVD in the interface, I am sent to the root system so the first problem, it is not mounted. Therefore, I can not read or eject.

If I mount the DVD by the terminal, I need to have root privileges to eject the DVD and it does not work for XBMC. Trying to read it again, I was entitled to an image that is very short copyright message at the beginning of the DVD so I can not be very far from the solution ...

Code:
xbian@xbian ~ $ sudo mount -t iso9660 /dev/sr0 /media/cdrom/
[sudo] password for xbian:
mount: block device /dev/sr0 is write-protected, mounting read-only
xbian@xbian ~ $ eject /media/cdrom/
umount: only root can unmount /dev/sr0 from /media/cdrom
eject: unmount of `/media/cdrom' failed
xbian@xbian ~ $ sudo eject /media/cdrom/
xbian@xbian ~ $ ls -l /dev/sr0
brw-rw---T 1 root cdrom 11, 0 Apr 11 22:26 /dev/sr0



Re: USB 2.0 DVDRW can't read DVD - f1vefour - 12th Apr, 2013 08:11 AM

Have you tried any other Linux distribution for the Pi other than Xbian and have the DVD player work?


RE: USB 2.0 DVDRW can't read DVD - Levi59 - 12th Apr, 2013 08:51 AM

i only have one sdcard and i don't want to reinstall all of the system only for testing.
What are my options outside the purchase of another SD card?

Is there a distribution that allows playback of DVDs (encrypted or not) out of the box?


USB 2.0 DVDRW can't read DVD - Koenkk - 12th Apr, 2013 08:57 AM

(12th Apr, 2013 08:51 AM)Levi59 Wrote:  i only have one sdcard and i don't want to reinstall all of the system only for testing.
What are my options outside the purchase of another SD card?

Is there a distribution that allows playback of DVDs (encrypted or not) out of the box?

Playback of DVD's probably not (because all use XBMC)


RE: USB 2.0 DVDRW can't read DVD - RomanHuber - 18th Apr, 2013 04:46 PM

I have the same problem.


My DVDRW worked on Rasbmc, it could read the dvd (orignial) - but it could not play it, because of the known Menu-Issue.

So I installed Xbian and here it does not even mount the disc. I can see it, when i try to set the video-sources, but it only opens the root-menu.


Is there a easy solution? Please answer - because if not, I have to switch the system - the main purpose of my raspberry is - media-center and dvd-player (also for bought dvd)


regards


Re: RE: USB 2.0 DVDRW can't read DVD - rikardo1979 - 18th Apr, 2013 05:07 PM

(18th Apr, 2013 04:46 PM)RomanHuber Wrote:  I have the same problem.


My DVDRW worked on Rasbmc, it could read the dvd (orignial) - but it could not play it, because of the known Menu-Issue.

So I installed Xbian and here it does not even mount the disc. I can see it, when i try to set the video-sources, but it only opens the root-menu.


Is there a easy solution? Please answer - because if not, I have to switch the system - the main purpose of my raspberry is - media-center and dvd-player (also for bought dvd)


regards

please keep in mind that DVD support is just experimental on RPi an was never planed to work.
So please stay calm and in hope that someone someday find a time to make a better support


Re: USB 2.0 DVDRW can't read DVD - f1vefour - 19th Apr, 2013 04:48 AM

If I can get my hands on a USB DVD I will add the necessary support.


RE: USB 2.0 DVDRW can't read DVD - rubin110 - 30th Jul, 2013 03:26 PM

So I've gotten a little farther, bought a crappy $11 USB DVD drive off of Amazon.

The issue I was seeing in the logs pertained to dbus not granting access to org.freedesktop.udisks.filesystem-mount. Edit...

/usr/share/polkit-1/actions/org.freedesktop.udisks.policy

...and switch out the defaults to allow for that particular item. Additionally I added the user xbian to the cdrom group, not sure if that matters anymore since dbus is taking care of this but figured it wouldn't hurt. Restart XBMC.

XBMC should now be able to detect the DVD (if you see the kernel play nice with it in the first place), and try to mount it in some magical dbus way. The "auto play" setting for DVD doesn't seem to work for me. Selected Videos > Files > highlight name of DVD > Press C for menu > Play Disc. This brought me to the DVD menu for whatever disc I had in the drive. That's about as far as I've gotten as trying to play the video spits me back out to the XBMC UI.

Here's my xbmc.log...

http://paste.debian.net/19951/

Thanks!


RE: USB 2.0 DVDRW can't read DVD - mk01 - 31st Jul, 2013 09:06 PM

i have a BR/DVD/RW usb drive, but have no content. I can put a .avi or .mkv on rw media, but I suppose this is not what you wan't to test?

with genuine DVD Video discs you will fail. as Koen wrote, problem is the licensing and encryptions.

this was even problematic in the real PC world, specials players were needed (licensed with the drive, or bought extra).


Re: RE: USB 2.0 DVDRW can't read DVD - f1vefour - 31st Jul, 2013 10:45 PM

(31st Jul, 2013 09:06 PM)mk01 Wrote:  i have a BR/DVD/RW usb drive, but have no content. I can put a .avi or .mkv on rw media, but I suppose this is not what you wan't to test?

with genuine DVD Video discs you will fail. as Koen wrote, problem is the licensing and encryptions.

this was even problematic in the real PC world, specials players were needed (licensed with the drive, or bought extra).

You have to enable a flag when xmbc is compiled. With --enable-dvdcss and don't add the --disable-optical-drive flag.

XBMC now supports dvd play internally with dvdplayer, thing is I suppose the RPi uses omxplayer instead of dvdplayer.

I wonder if it wouldn't be possible to encode a dvdiso on-the-fly and play this.


Re: RE: USB 2.0 DVDRW can't read DVD - rikardo1979 - 31st Jul, 2013 10:56 PM

(31st Jul, 2013 10:45 PM)f1vefour Wrote:  
(31st Jul, 2013 09:06 PM)mk01 Wrote:  i have a BR/DVD/RW usb drive, but have no content. I can put a .avi or .mkv on rw media, but I suppose this is not what you wan't to test?

with genuine DVD Video discs you will fail. as Koen wrote, problem is the licensing and encryptions.

this was even problematic in the real PC world, specials players were needed (licensed with the drive, or bought extra).

You have to enable a flag when xmbc is compiled. With --enable-dvdcss and don't add the --disable-optical-drive flag.

XBMC now supports dvd play internally with dvdplayer, thing is I suppose the RPi uses omxplayer instead of dvdplayer.

I wonder if it wouldn't be possible to encode a dvdiso on-the-fly and play this.

is omxplayer capable of? if not than no...