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 340433 - [dvdread] fails to play certain DVDs with playbin and Totem
[dvdread] fails to play certain DVDs with playbin and Totem
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
0.10.2
Other All
: Normal normal
: 0.10.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-02 18:54 UTC by Max Kanat-Alexander
Modified: 2007-04-28 16:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Debug Log (11.00 KB, text/plain)
2006-05-02 18:55 UTC, Max Kanat-Alexander
Details
gst-feedback output (26.02 KB, text/plain)
2006-05-02 18:58 UTC, Max Kanat-Alexander
Details

Description Max Kanat-Alexander 2006-05-02 18:54:14 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:
Comment 1 Max Kanat-Alexander 2006-05-02 18:55:41 UTC
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.
Comment 2 Max Kanat-Alexander 2006-05-02 18:58:55 UTC
Created attachment 64683 [details]
gst-feedback output

And just in case you wanted it, here's the output of gst-feedback.
Comment 3 Tim-Philipp Müller 2006-05-04 08:44:44 UTC
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?
Comment 4 Jan Schmidt 2006-05-04 09:11:38 UTC
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.
Comment 5 Max Kanat-Alexander 2006-05-04 17:46:05 UTC
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.
Comment 6 John Thacker 2006-05-05 15:51:55 UTC
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;
  }
Comment 7 John Thacker 2006-05-05 15:54:58 UTC
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.
Comment 8 Tim-Philipp Müller 2006-05-05 16:08:16 UTC
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).
Comment 9 John Thacker 2006-05-05 16:20:14 UTC
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.
Comment 10 Max Kanat-Alexander 2006-05-05 16:32:28 UTC
(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.
Comment 11 Tim-Philipp Müller 2006-10-19 10:20:33 UTC
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.