Ticket #13415 (closed Bugs: Fixed)

Opened 23 months ago

Last modified 13 months ago

[armV6] Error when playing Audio CD on USB

Reported by: Patatra Owned by:
Priority: 4 - Normal Milestone: 13.0 "Gotham"
Component: Audio playback (audio/video files) Version: GIT
Severity: Normal Keywords: Auio CD, USB, Raspberry Pi
Cc: gimli, Blocked By:
Blocking: Platform: Other
Revision:

Description

On the Raspberry Pi, we can't play Audio CD with USB drive (usb is the only way to get a cd/dvd drive) Full log here :  http://pastebin.com/pNSDMw0S

10:53:07 T:1100202512 DEBUG: ------ Window Init (DialogBusy.xml) ------
10:53:07 T:1228813408 ERROR: file cdda: Reading 55 sectors of audio data starting at lsn 19515 failed with error code -1
10:53:08 T:1228813408 ERROR: file cdda: Reading 98 sectors of audio data starting at lsn 19528 failed with error code -1
10:53:08 T:1228813408 ERROR: file cdda: Reading 222 sectors of audio data starting at lsn 19528 failed with error code -1
10:53:08 T:1228813408 ERROR: Open - error probing input format,  cdda://local/02.cdda[[BR]] 10:53:08 T:1228813408 ERROR: OpenDemuxStream - Error creating demuxer

Change History

comment:1 Changed 23 months ago by WiSo

There's already a ticket open for windows which shows a similar error for usb drives. I assumed its due to the mmc commands used by libcdio. But a test with a rewritten filecdda with native ioctls (DeviceIoControls) seems not to work according to one tester.

Lets see if there are any other ideas.

comment:2 Changed 23 months ago by Patatra

What kind of test can I do to find the problem source? I can say that the USB drive play Audio CD fine under my Ubuntu 12.04 distro. I think Ubuntu use libcdio to so it shouldn't be the problem. Am I wrong?

comment:3 Changed 23 months ago by WiSo

  • Cc gimli, added

Not necessarily. Depends which tool you used to play it and if that uses libcdio and if yes if just sent the command play or if it reads it sector by sector which is a difference. But I leave that to the rpi/Linux devs.

comment:4 Changed 23 months ago by gimli

Would be intresting to know if it is a copy protected audio cd. That could cause also problems.

comment:5 Changed 23 months ago by Patatra

Here is the cd-info output from Ubuntu. That's a CD playing well on Ubuntu via USB, not on Openelec with the same drive.
 http://pastebin.com/3S733P8L

comment:6 Changed 20 months ago by MrJackson

The word around is that libcdio is the culprit as it doesn't handle USB optical drives correctly (Audio CDs at least). As we don't have any other option with the Pi, would it be possible to drop libcdio for cdda2wav?

comment:7 Changed 17 months ago by bearh

I created a patch to fix the bug. The patch allows xbmc to read audio data from CD with USB drive. There is still problem on RPi with player: I could not play audio with any of them. Ripping on RPi works perfectly. Here goes pull request with my patch:  https://github.com/xbmc/xbmc/pull/2570

comment:8 Changed 17 months ago by WiSo

I've commented the pr. I wonder if the track count matters for windows as well.

comment:9 Changed 17 months ago by bearh

I created another patch. This one allows OMXPlayer to play audio CDs.  https://github.com/xbmc/xbmc/pull/2586

comment:10 Changed 13 months ago by Martijn

  • Status changed from new to closed
  • Resolution set to Fixed
  • Milestone changed from Future / Pending to 13.0

PR was merged

Note: See TracTickets for help on using tickets.