GNOME Bugzilla – Bug 340433
[dvdread] fails to play certain DVDs with playbin and Totem
Last modified: 2007-04-28 16:00:24 UTC
Please describe the problem: I just installed gstreamer-plugins-ugly. I have libdvdcss and libdvdnav installed. I have an otherwise-working installation of Totem. I can't play a DVD in Totem. If I try to use the "Play Disc" menu item, it tells me I don't have the right plugins installed. If I do an "Open Location" and try to open "dvd://" I get "Could not read from resource." If I change the Totem backend to Xine, I can play DVDs. I'm running Fedora Core 5, here are the package versions: gstreamer-0.10.4-1 gstreamer-plugins-ugly-0.10.2-1.lvn5 totem-1.4.0-2 libdvdread-0.9.4-4.lvn5 libdvdcss-1.2.9-2.lvn5 libdvdnav-0.1.10-2.lvn5 Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 64682 [details] Debug Log This is the output of: GST_DEBUG=dvdreadsrc:5 gst-launch-0.10 dvdreadsrc title=1 device=/dev/dvd ! fakesink 2>&1 > dbg.log Run as root.
Created attachment 64683 [details] gst-feedback output And just in case you wanted it, here's the output of gst-feedback.
dvdreadsrc.c(324):gst_dvd_read_src_goto_chapter:<dvdreadsrc0> Opened chapter 0 - cell 0-1 dvdreadsrc.c(620):gst_dvd_read_src_read:<dvdreadsrc0> Read 73 sectors dvdreadsrc.c(608):gst_dvd_read_src_read:<dvdreadsrc0> Read failed for 0 blocks at 75 Don't really know what's happening here. cur_output_size (from dsi_pack.dsi_gi.vobu_ea) being 0 doesn't look too right though. Does this happen with any DVD or just with this one?
Because dsi_pack.dsi_gi.vobu_ea isn't the size of the VOBU in blocks, it's the End Address (relative to the start of the VOBU). Hence, an VOBU_EA of 0 indicates a VOBU that ends after the zero-th block - ie, it's only one block long.
Okay, so it seems to actually work fine with a different DVD. So it only seems to fail on this particular one (ISBN 0-9741545-0-4). It might fail on others; I don't have too many DVDs around to test with.
Isn't the totem issue just because totem has DVD support totally disabled for gstreamer-0.10? http://bugzilla.gnome.org/show_bug.cgi?id=330086 From totem/src/backend/bacon-video-widget-gst-0.10.c : switch (type) { case MEDIA_TYPE_CDDA: case MEDIA_TYPE_VCD: res = TRUE; break; case MEDIA_TYPE_DVD: default: res = FALSE; break; }
Also see: http://bugzilla.gnome.org/show_bug.cgi?id=311071 Of course, since dvdreadsrc has been ported as of plugins-ugly-0.10.2, maybe it should be changed.
John: this is a different issue, it's actually a bug in dvdreadsrc with some DVDs, it has nothing to do with totem. DVD stuff is disabled in totem because we really want DVD menus and working subtitles for totem, not just per-title playback (you can manually open a dvd://<title-number> in totem though already).
Yes, I agree. The original submitter's comments about 'I can't play a DVD in Totem. If I try to use the "Play Disc" menu item, it tells me I don't have the right plugins installed. If I do an "Open Location" and try to open "dvd://" I get "Could not read from resource."' are, however, because totem disables DVD support. I agree that there is a different problem in dvdreadsrc revealed by this, but it wasn't what the original poster was talking about at first and I wanted to make sure that he knew that.
(In reply to comment #9) > If I try to use the "Play Disc" menu item, > it tells me I don't have the right plugins installed. Yeah, that's because DVD playback is disabled in totem. > If I do an "Open > Location" and try to open "dvd://" I get "Could not read from resource."' Actually, that was because of the bug, I'm pretty sure. I could play back another DVD just fine in Totem using the Open Location menu item. > I agree that there is a different problem in dvdreadsrc revealed by this, > but it wasn't what the original poster was talking about at first and > I wanted to make sure that he knew that. Yeah, thanks for that. I do understand.
Should be fixed in CVS now: 2006-10-19 Tim-Philipp Müller <tim at centricular dot net> * ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_read): Use dsi_pack.dsi_gi.vobu_ea correctly, add some more debugging information (fixes #340433). please re-open and create a new debug log if you still have problems.