Unable to auto play audio CDs with VLC

Archived topics about LMDE 1 and LMDE 2
Locked
drzoo2

Unable to auto play audio CDs with VLC

Post by drzoo2 »

Getting the following error.
Your input can't be opened:
VLC is unable to open the MRL 'cdda://sr0/'. Check the log for details.
This is happening on my Desktop and Laptop both running LMDE.

I have tried creating a symbolic link in /dev/

Code: Select all

ln -s /dev/sr0 /dev/cdrom
This seems to be an issue with the way gnome mounts audio CDs. Opening VLC and selecting audio CD (/dev/cdrom or /dev/sr0) will play the CD fine.

edit: How to recreate.
Make VLC default for audio CDs in Nautilus. Insert AudioCD
or
Right click mounted AudioCD. Select Play in VLC
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

Open Menu>Settings>Removable Drives and Media> Multimedia Tab. Find device for it using the "Folder" box at the end of the Line.
drzoo2

Re: Unable to auto play audio CDs with VLC

Post by drzoo2 »

bobcollard wrote:Open Menu>Settings>Removable Drives and Media> Multimedia Tab. Find device for it using the "Folder" box at the end of the Line.
Either I'm a total noob, or I'm having a moment because I don't follow you. I haven't seen "Removable drives and Media" since Hardy. Do you mean this?



z
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

Well, mine looks a little different (see screenshot) but you should be able to work with that, what do you get when you click on Custom? You could use the same command that mine has.
Screenshot-Removable Drives and Media.png
drzoo2

Re: Unable to auto play audio CDs with VLC

Post by drzoo2 »

The problem isn't getting VLC to open when media is inserted. It's getting past this error. The audio CD isn't mounted in a folder but is handled by gnome. For some reason, VLC can't open this and spits the following error. Not sure what log it is referring to.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

Okay, Open VLC>Tools>Preferences>Input and Codecs and change Optical Drive to:
Screenshot.png
Restart VLC.
drzoo2

Re: Unable to auto play audio CDs with VLC

Post by drzoo2 »

Robert, your not understanding me. Please read my first post. I understand how get vlc to open a drive. This issue is gvfs and passing this mount to non aware gvfs programs.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

drzoo2 wrote:Robert, your not understanding me. Please read my first post. I understand how get vlc to open a drive. This issue is gvfs and passing this mount to non aware gvfs programs.
Sorry, don't use virtual file system. Wouldn't know where to begin, and you did not mention that in the first Post. I answered according to what you did write, VLC and AudioCD Player.
CiaW

Re: Unable to auto play audio CDs with VLC

Post by CiaW »

I took at look at this thread, and since I don't often play CD's on my pc I thought I'd grab one and try it and I'm getting the same error. It does open VLC, but it has that error and when I hit the play it comes up with the same error. I right clicked on the CD that showed up on the desktop, and on the 'open with' tab it shows: Select an application to open / and other files of type "unknown". The desktop icon does show 'Audio Disc'.

So it has something to do with the associations (mime types?). Of course I'm also not sure where gvfs may figure into it, either. Maybe a bug report is in order? I'm going to log into my lmde 32bit install from Sept and see what happens (as soon as this song is over!).

Edit: I logged into the 32bit lmde, and when I inserted the CD it offered the option to copy the cd and wanted to know the medium to copy it to. The desktop icon shows 'Audio Disc' under a shape of a CD. If I right click on it and select 'open with > VLC' it gives the same error: "Your input can't be opened: VLC is unable to open the MRL 'cdda://sr0/'. Check the log for details." (same error as before). I just tried an external usb dvd drive, since my internal LG drive can be a little flaky with DVD's, and it gave me an error that there were no audio files on the disk, then that went away and it's offering the option to 'Copy CD/DVD'. So basically, same issue on both installs.
Last edited by CiaW on Sat Jan 01, 2011 8:04 pm, edited 1 time in total.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

Here's a link to resolving the broken VLC program:
http://linuxbsdos.com/forum/thread-61.html
drzoo2

Re: Unable to auto play audio CDs with VLC

Post by drzoo2 »

Robert, My first post wasn't as clear as it should have been. My apologies. If your using gnome, your using the gnome virtual file system. Look for the folder .gvfs in your home directory. This is a lot like mounting a network share in gnome and trying to browse it in vlc or other non-gnome programs.

If found this..
http://arstechnica.com/civis/viewtopic. ... &t=1110093

Only thing is I don't see the CD as mounted in this folder.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

drzoo2 wrote:Robert, My first post wasn't as clear as it should have been. My apologies. If your using gnome, your using the gnome virtual file system. Look for the folder .gvfs in your home directory. This is a lot like mounting a network share in gnome and trying to browse it in vlc or other non-gnome programs.

If found this..
http://arstechnica.com/civis/viewtopic. ... &t=1110093

Only thing is I don't see the CD as mounted in this folder.
It's blank.
Screenshot.png
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

My VLC works fine with the fixes provided here. We are talking about VLC in LMDE x86_64? I just added the XFCE desktop, but it is still basically Gnome, nothing in Gnome has been removed.
bobcollard

Re: Unable to auto play audio CDs with VLC

Post by bobcollard »

You may be pleased to note the recent upgrade, today:
The following packages will be upgraded:

ghostscript ghostscript-cups ghostscript-x gs-common gvfs gvfs-backends

gvfs-bin libgs8 totem totem-common totem-mozilla totem-plugins
tonyr63

Re: Unable to auto play audio CDs with VLC

Post by tonyr63 »

Hi Robert

You have reported the "good news" of the upgrades however does this address the problem reported on this thread?

I have the same issue on two separate installations of Ubuntu 10.04 and I was hoping that i might get some pointers why this is widely reported but no definitive resolution?
User avatar
clem
Level 12
Level 12
Posts: 4308
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: Unable to auto play audio CDs with VLC

Post by clem »

It might not be the fix everybody wants, but as far as I can see there's two issues here:

- The default application for playing/ripping audio CDs should be banshee (it's set as rhythmbox and because it can't find it, VLC gets the call)
- VLC fails to play the right device

This will be fixed in the stable release. If you want to fix it in your installation, edit /etc/gnome/defaults.list, and replace all occurences of rhythmbox.desktop with banshee-audiocd.desktop.

Inserting an Audio CD should then launch Banshee in CDDA mode and play it automatically. No need to restart your Gnome session.
Image
Locked

Return to “LMDE Archive”