After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640819 - totem is unable to play CDs
totem is unable to play CDs
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: cdda backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-28 12:55 UTC by Pacho Ramos
Modified: 2018-09-21 17:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
1.png (27.44 KB, image/png)
2011-01-28 12:55 UTC, Pacho Ramos
Details

Description Pacho Ramos 2011-01-28 12:55:26 UTC
Created attachment 179512 [details]
1.png

These are the steps for reproducing:
1. Insert and AudioCD
2. Look how it is shown in my desktop, then, I click on it.
3. nautilus window is opened offering me to open it with totem
4. totem fails showing:
"The playback of this movie requires a Audio CD source plugin which is not installed."

And the following output in terminal:

$ LC_ALL=C totem cdda://sr0/
** Message: Error: No URI handler implemented for "cdda".
gsturidecodebin.c(1065): gen_source_element (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0

** Message: Missing plugin: gstreamer|0.10|totem|Audio CD source|urisource-cdda (Audio CD source)
** Message: Automatic missing codec installation not supported (helper script missing)

** (totem:12336): WARNING **: chapters: failed to load CMML file cdda://sr0/.cmml: El archivo /.cmml no existe en la unidad /dev/sr0

I am not alone with this and looks like 2.30 was also affected:
http://bugs.gentoo.org/show_bug.cgi?id=350001

Thanks for your help
Comment 1 Bastien Nocera 2011-01-28 15:45:57 UTC
Totem *does not* play audio CDs.

Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 549488 ***
Comment 2 Pacho Ramos 2011-01-28 17:00:59 UTC
And why nautilus offers it for playing CDs?
Comment 3 Bastien Nocera 2011-01-28 17:22:02 UTC
(In reply to comment #2)
> And why nautilus offers it for playing CDs?

Most likely because your distribution has a broken defaults.list. At least Totem doesn't advertise it in its mime-types.
Comment 4 Pacho Ramos 2011-01-28 19:35:11 UTC
I don't have any defaults.list (at least in Gentoo we don't supply it, maybe it's caused by audio/x-wav mimetype being handled by totem and it causing nautilus to be confused?
Comment 5 Bastien Nocera 2011-01-28 19:44:31 UTC
(In reply to comment #4)
> I don't have any defaults.list (at least in Gentoo we don't supply it, maybe
> it's caused by audio/x-wav mimetype being handled by totem and it causing
> nautilus to be confused?

Unless you double-clicked on the wav files listed, it's not that (and it doesn't match your bug report anyway).
Comment 6 Pacho Ramos 2011-01-28 20:10:15 UTC
Then, I don't know from what place is nautilus getting the information to offer totem to play CD.

Anyway, when trying to open each separate wav file totem fails in the same way :-/ and, in terminal:

$ LC_ALL=C totem cdda://sr0/Track%202.wav
** Message: Error: No URI handler implemented for "cdda".
gsturidecodebin.c(1065): gen_source_element (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0

** Message: Missing plugin: gstreamer|0.10|totem|Audio CD source|urisource-cdda (Audio CD source)
** Message: Automatic missing codec installation not supported (helper script missing)

** (totem:30335): WARNING **: chapters: failed to load CMML file cdda://sr0/Track%202.cmml: El archivo /Track 2.cmml no existe en la unidad /dev/sr0
Comment 7 Bastien Nocera 2011-01-28 20:22:30 UTC
That's a different problem here.

What's the output of:
- gst-inspect giosrc
- Is gvfs-fuse installed?
- gvfs-cat cdda://sr0/Track%202.wav | totem fd://0
Comment 8 Pacho Ramos 2011-01-28 20:30:43 UTC
I have /usr/libexec/gvfs-fuse-daemon but not gvfs-fuse command :-/

$ gst-inspect-0.10 giosrc
Factory Details:
  Long name:	GIO source
  Class:	Source/File
  Description:	Read from any GIO-supported location
  Author(s):	René Stadler <mail@renestadler.de>, Sebastian Dröge <sebastian.droege@collabora.co.uk>
  Rank:		secondary (128)

Plugin Details:
  Name:			gio
  Description:		GIO elements
  Filename:		/usr/lib64/gstreamer-0.10/libgstgio.so
  Version:		0.10.31
  License:		LGPL
  Source module:	gst-plugins-base
  Source release date:	2010-11-30
  Binary package:	Gentoo GStreamer Ebuild
  Origin URL:		http://www.gentoo.org

GObject
 +----GstObject
       +----GstElement
             +----GstBaseSrc
                   +----GstGioBaseSrc
                         +----GstGioSrc

Interfaces implementados:
  GstURIHandler

Pad Templates:
  SRC template: 'src'
    Availability: Always
    Capabilities:
      ANY


Element Flags:
  no flags set

Element Implementation:
  Has change_state() function: gst_base_src_change_state
  Has custom save_thyself() function: gst_element_save_thyself
  Has custom restore_thyself() function: gst_element_restore_thyself

Element has no clocking capabilities.
Element has no indexing capabilities.

URI handling capabilities:
  Element can act as source.
  Supported URI protocols:
    file
    davs+sd
    dav+sd
    dns-sd
    davs
    dav
    localtest
    sftp
    ssh
    ftp
    burn
    trash
    computer
    network

Pads:
  SRC: 'src'
    Implementation:
      Has getrangefunc(): gst_base_src_pad_get_range
      Has custom eventfunc(): gst_base_src_event_handler
      Has custom queryfunc(): gst_base_src_query
      Has getcapsfunc(): gst_base_src_getcaps
      Has setcapsfunc(): gst_base_src_setcaps
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
      Has fixatecapsfunc(): gst_base_src_fixate
    Pad Template: 'src'

Element Properties:
  name                : The name of the object
                        flags: legible, escribible
                        String. Default: null Current: "giosrc0"
  blocksize           : Size in bytes to read per buffer (-1 = default)
                        flags: legible, escribible
                        Unsigned Long. Range: 0 - 18446744073709551615 Default: 4096 Current: 4096
  num-buffers         : Number of buffers to output before sending EOS (-1 = unlimited)
                        flags: legible, escribible
                        Integer. Range: -1 - 2147483647 Default: -1 Current: -1
  typefind            : Run typefind before negotiating
                        flags: legible, escribible
                        Boolean. Default: false Current: false
  do-timestamp        : Apply current stream time to buffers
                        flags: legible, escribible
                        Boolean. Default: false Current: false
  location            : URI location to read from
                        flags: legible, escribible
                        String. Default: null Current: null
  file                : GFile to read from
                        flags: legible, escribible
                        Object of type "GFile"


$ gvfs-cat cdda://sr0/Track%202.wav | totem fd://0
gvfs-cat: cdda://sr0/Track%202.wav: error al abrir el archivo: La ubicación especificada no está montada

(totem:31892): GLib-GIO-CRITICAL **: g_file_enumerator_close: assertion `G_IS_FILE_ENUMERATOR (enumerator)' failed

(totem:31892): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (totem:31892): WARNING **: chapters: failed to load CMML file fd://0.cmml: La ubicación especificada no está soportada
** Message: Error: El flujo no contiene datos.
gsttypefindelement.c(562): gst_type_find_element_handle_event (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0:
Can't typefind empty stream

(and totem fails to open as "stream contains no data")

Thanks a lot for your help

(Regarding nautilus offering totem to play CD, do you think should I open a bug to upstream guys?)
Comment 9 Bastien Nocera 2011-01-28 20:50:00 UTC
(In reply to comment #8)
<snip>
> $ gvfs-cat cdda://sr0/Track%202.wav | totem fd://0
> gvfs-cat: cdda://sr0/Track%202.wav: error al abrir el archivo: La ubicación
> especificada no está montada

Either gvfs was compiled with cdda suport, or it's broken. That's the reason why Totem can't play those wav files.

> (totem:31892): GLib-GIO-CRITICAL **: g_file_enumerator_close: assertion
> `G_IS_FILE_ENUMERATOR (enumerator)' failed
> 
> (totem:31892): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
> (object)' failed

That's already fixed.

<snip>
> (Regarding nautilus offering totem to play CD, do you think should I open a bug
> to upstream guys?)

It's most likely a bug somewhere in your distro or your setup because I don't see any such problems.
Comment 10 Pacho Ramos 2011-01-28 21:00:19 UTC
(In reply to comment #9)
> (In reply to comment #8)
> <snip>
> > $ gvfs-cat cdda://sr0/Track%202.wav | totem fd://0
> > gvfs-cat: cdda://sr0/Track%202.wav: error al abrir el archivo: La ubicación
> > especificada no está montada
> 
> Either gvfs was compiled with cdda suport, or it's broken. That's the reason
> why Totem can't play those wav files.

It's compiled with cdda support, shouldn't it?

> 
> > (totem:31892): GLib-GIO-CRITICAL **: g_file_enumerator_close: assertion
> > `G_IS_FILE_ENUMERATOR (enumerator)' failed
> > 
> > (totem:31892): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
> > (object)' failed
> 
> That's already fixed.
>

Great :-)
 
> <snip>
> > (Regarding nautilus offering totem to play CD, do you think should I open a bug
> > to upstream guys?)
> 
> It's most likely a bug somewhere in your distro or your setup because I don't
> see any such problems.

Yes, I have tried on a different account and looks like totem is not offered, then, I will need to look at my home configuration files :-/
Comment 11 Pacho Ramos 2011-01-28 21:04:21 UTC
(In reply to comment #10)
> Yes, I have tried on a different account and looks like totem is not offered,
> then, I will need to look at my home configuration files :-/

This was due old ~/.local/share/applications/mimeapps.list :-D
Comment 12 Pacho Ramos 2011-01-31 12:38:14 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > <snip>
> > > $ gvfs-cat cdda://sr0/Track%202.wav | totem fd://0
> > > gvfs-cat: cdda://sr0/Track%202.wav: error al abrir el archivo: La ubicación
> > > especificada no está montada
> > 
> > Either gvfs was compiled with cdda suport, or it's broken. That's the reason
> > why Totem can't play those wav files.
> 
> It's compiled with cdda support, shouldn't it?
> 

But this is still valid
Comment 13 Bastien Nocera 2011-01-31 12:42:15 UTC
Still NEEDINFO then, if your gvfs can't open files on cdda://.

You'll need to figure out why it doesn't work before Totem can do anything.
Comment 14 Tim-Philipp Müller 2011-01-31 13:02:24 UTC
FWIW, cdparanoiasrc (from gst-plugins-base) and/or cdiocddasrc (gst-plugins-bad) provide cdda:// protocol support in GStreamer. Acceptable URIs (to GStreamer) are: cdda://  , cdda://5 , cdda:///dev/sr0#5
Comment 15 Bastien Nocera 2011-01-31 13:06:24 UTC
(In reply to comment #14)
> FWIW, cdparanoiasrc (from gst-plugins-base) and/or cdiocddasrc
> (gst-plugins-bad) provide cdda:// protocol support in GStreamer. Acceptable
> URIs (to GStreamer) are: cdda://  , cdda://5 , cdda:///dev/sr0#5

Except that the bacon-video-widget will transform the URI we get into a local path (through fuse) and GStreamer told to open a local file path, not cdda://.

So if gvfs-cat doesn't work, then it certainly won't work as expected.
Comment 16 Pacho Ramos 2011-01-31 13:23:21 UTC
Looks like CD is getting unmounted for some reason, this is what I can reproduce now:
1. Click on my CD drive in nautilus window ("System" in english?) to get CD mounted.
2. Window like https://bugzilla.gnome.org/attachment.cgi?id=179512 is opened.
3. Go to the terminal and type: 
gvfs-cat cdda://sr0/Track%202.wav|totem fd://0

It works!

4. Now, instead of above command, type simply: 
gvfs-cat cdda://sr0/Track%202.wav

Lots of cruft is shown obviously but, after that,
gvfs-cat cdda://sr0/Track%202.wav|totem fd://0

fails again to run because AudioCD has been unmounted (!)
Comment 17 Pacho Ramos 2011-01-31 13:27:07 UTC
I now try the following:
1. Insert my CD
2. Wait it to be shown in Desktop.
3. Run gvfs-cat cdda://sr0/Track%202.wav|totem fd://0 -> It works (!)
4. Now click on CD to view https://bugzilla.gnome.org/attachment.cgi?id=179512 window.
5. Run again gvfs-cat cdda://sr0/Track%202.wav|totem fd://0 to check it is still mounted -> It works
6. Go to nautilus window and click on a wav -> It fails :-S
7. Run again gvfs-cat cdda://sr0/Track%202.wav|totem fd://0 to check it is still mounted -> It works (??)

The output I get from gvfs-cat... is the following:

$ gvfs-cat cdda://sr0/Track%202.wav|totem fd://0

** (totem:26268): WARNING **: chapters: failed to load CMML file fd://0.cmml: La ubicación especificada no está soportada

But I still don't know why it's working when run with gvfs-cat but not from nautilus window
Comment 18 Bastien Nocera 2011-01-31 13:33:50 UTC
If it says it's not mounted any more, that means that the gvfs cdda backend crashes (or somebody unmounts it). Best find out about that crash and file a bug against gvfs.
Comment 19 Pacho Ramos 2011-01-31 13:54:09 UTC
I cannot see any traces of gvfs neither in .xsession-errors, dmesg or /var/log/messages. In xsession-errors I see the following when it fails:

** Message: Error: No existe un manejador URI implementado para «cdda».
gsturidecodebin.c(1065): gen_source_element (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0

** Message: Missing plugin: gstreamer|0.10|totem|Fuente: CD de audio|urisource-cdda (Fuente: CD de audio)
** Message: Automatic missing codec installation not supported (helper script missing)

** (totem:30755): WARNING **: chapters: failed to load CMML file cdda://sr0/Track%202.cmml: El archivo /Track 2.cmml no existe en la unidad /dev/sr0

But no message from gvfs
Comment 20 Pacho Ramos 2011-02-02 17:31:18 UTC
Could you reassign this to gvfs people? Maybe they will know better how to investigate this problem. Thanks
Comment 21 Pacho Ramos 2011-06-19 11:56:30 UTC
Any idea about where could be the problem? Thanks
Comment 22 GNOME Infrastructure Team 2018-09-21 17:08:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/161.