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 331568 - allow to use "totem dvd://" to open a DVD
allow to use "totem dvd://" to open a DVD
Status: RESOLVED WONTFIX
Product: totem
Classification: Core
Component: Movie player
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-02-17 17:16 UTC by Sebastien Bacher
Modified: 2012-04-18 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-02-17 17:16:55 UTC
gnome-volume-manager used to call "totem dvd://" on Ubuntu (not sure about upstream) so some people have that action configured to run a DVD

At the moment totem returns a "Location not found." when trying to run it, that would be nice if you would understand it
Comment 1 Bastien Nocera 2006-07-10 20:04:02 UTC
This would also need to work with the "DVD" remote button (see TODO).
Comment 2 Gabriel Ortiz Lour 2006-07-11 02:31:27 UTC
Today the right way to play the DVD it "totem [DVD mount ponit]" right?
Is there a way to get the mount point from totem?
Where in the code it changes the caption of the DVD playing button on the main menu to have the name of the DVD?
Comment 3 Mantas Kriaučiūnas 2007-11-10 12:10:31 UTC
(In reply to comment #2)
> Is there a way to get the mount point from totem?
> Where in the code it changes the caption of the DVD playing button on the main
> menu to have the name of the DVD?

I can't help you, but maybe totem or gstreamer developers can ? It seems totem-xine doesn't have problems with playing DVD's, only totem-gstreamer has
Comment 4 lists 2007-12-09 03:35:25 UTC
As per Bastien's comment http://bugzilla.gnome.org/show_bug.cgi?id=344415#c7 I have created a tracker bug to make it easier to keep track of the various issues preventing proper DVD support in Totem-Gstreamer.

The bug can be found here:
Bug 502609 – [Tracker] GStreamer DVD Support in Totem

I hope nobody minds me taking the liberty to create this.
Comment 5 Bastien Nocera 2008-02-08 00:15:23 UTC
Please refrain from making comments not related in any sort of way to the bug opened.

In src/totem-menu.c, on_movie_menu_select() will list the DVDs.

Totem dvd:// should:
- list the devices using the same code as in on_movie_menu_select() (move it to totem-uri.c)
- for each device, check whether the device is a DVD using totem_cd_detect_type()
- Play the first one
Comment 6 Michael Lester 2008-02-09 18:44:57 UTC
Totem (v2.20.1) on my system (Arch Linux) already recognizes and plays the DVD when I start it with "totem dvd://"
Comment 7 Bastien Nocera 2008-08-29 11:30:17 UTC
(In reply to comment #6)
> Totem (v2.20.1) on my system (Arch Linux) already recognizes and plays the DVD
> when I start it with "totem dvd://"

The xine-lib backend saves the last used device node. If you were to play a DVD backup from the local disk, and exit, and then run "totem dvd://", you'd be playing that DVD image.
Comment 8 Jan Schmidt 2009-05-12 15:58:24 UTC
Is this bug still valid? I have no problems with totem playing dvd:// if the appropriate plugins are installed.
Comment 9 Bastien Nocera 2009-05-12 16:29:24 UTC
(In reply to comment #8)
> Is this bug still valid? I have no problems with totem playing dvd:// if the
> appropriate plugins are installed.

Yes. I guess it works because the default DVD drive is the same one you have on your system. Should be pretty easy to fix, but none of the people interested in this bug seem to be interested in fixing it :)
Comment 10 Robin Stocker 2009-11-09 21:41:12 UTC
Is this still a bug? (I don't know what the problem is, really.)
Comment 11 Bastien Nocera 2009-11-09 22:08:09 UTC
(In reply to comment #10)
> Is this still a bug? (I don't know what the problem is, really.)

"totem dvd:" or "totem dvd://" should load the first available video DVD in the drives. So you'd need to enumerate the drives, and check for each one of them whether they have a video DVD loaded.
Comment 12 m4verick2010 2010-01-07 11:53:43 UTC
Looks like the bug is still there:

if you mount dvd-image as /mnt/dvd mount point (for ex., can be any), and then:
> file->open location->dvd://mnt/dvd
totem completely ignores requested path & tries to open /dev/dvd instead (to see it, launch totem from terminal and watch output)...

There's a demo in resindvdbin plugin (resin-play), if you try:
> resin-play dvd://mnt/dvd
it fails to open, but if you try:
> resin-play /mnt/dvd
it loads & plays ok...

so, there are two bugs2be fixed, either both in totem, or 1st in totem & 2nd in resindvdbin gst plugin (slightly modify input path)...
Comment 13 m4verick2010 2010-01-07 20:03:31 UTC
well, actually, running as:
> totem <filename>.iso
without pre-mounting, works great...

sorry, my mistake)
Comment 14 Bastien Nocera 2010-01-08 12:33:42 UTC
(In reply to comment #12)
> Looks like the bug is still there:
> 
> if you mount dvd-image as /mnt/dvd mount point (for ex., can be any), and then:
> > file->open location->dvd://mnt/dvd
> totem completely ignores requested path & tries to open /dev/dvd instead (to
> see it, launch totem from terminal and watch output)...

Nothing to do with this bug. This bug is about running "totem dvd://" and have it discover the device to open, not about opening specific locations with dvd://.
Comment 15 Olivier Aubert 2012-01-17 10:02:28 UTC
(In reply to comment #12)
> Looks like the bug is still there:
> 
> if you mount dvd-image as /mnt/dvd mount point (for ex., can be any), and then:
> > file->open location->dvd://mnt/dvd
> totem completely ignores requested path & tries to open /dev/dvd instead (to
> see it, launch totem from terminal and watch output)...
> 
> There's a demo in resindvdbin plugin (resin-play), if you try:
> > resin-play dvd://mnt/dvd
> it fails to open, but if you try:
> > resin-play /mnt/dvd
> it loads & plays ok...
> 
> so, there are two bugs2be fixed, either both in totem, or 1st in totem & 2nd in
> resindvdbin gst plugin (slightly modify input path)...

Your dvd://dev/dvd URI is malformed: it should be dvd:///mnt/dvd or dvd:/mnt/dvd (as per http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components ). Bad luck for you, you need either 1 or 3 slashes, and you only tried with 2. resindvd (and totem) work correcly with both correct forms.
Comment 16 Bastien Nocera 2012-04-18 16:55:45 UTC
I don't think there's a UI way to get totem started with the "dvd://" URI, and there are enough ways to set up the URI correctly that this shouldn't matter anymore.