[gstreamer-bugs] [Bug 570144] [ffdec] decodes unlinked streams

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Mar 5 03:50:50 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=570144

  GStreamer | gst-ffmpeg | Ver: git




------- Comment #5 from LRN  2009-03-05 11:51 UTC -------
Created an attachment (id=130121)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=130121&action=view)
Log of reading ogg file with theora-encoded video

from gstffmpegdec.c, line 700+:

  if (ffmpegdec->direct_rendering) {
    GST_DEBUG_OBJECT (ffmpegdec, "trying to enable direct rendering");
    if (oclass->in_plugin->capabilities & CODEC_CAP_DR1) {
      if (oclass->in_plugin->id == CODEC_ID_H264) {
        GST_DEBUG_OBJECT (ffmpegdec, "disable direct rendering setup for
H264");
        /* does not work, many stuff reads outside of the planes */
        ffmpegdec->current_dr = FALSE;
        ffmpegdec->extra_ref = TRUE;
      } else {
        GST_DEBUG_OBJECT (ffmpegdec, "enabled direct rendering");
        ffmpegdec->current_dr = TRUE;
      }
    } else {
      GST_DEBUG_OBJECT (ffmpegdec, "direct rendering not supported");
    }
  }

This is just the case: i'm reading mp4 with H.264 video and AAC audio. So, this
seems to be a coincidence: to test whether uridecodebin decodes unplugged
streams or not (i had such doubts from the very beginning, since at some point
i thought about decoding streams one-by-one, not simultaneously) i've got a
media file that would expose that for sure - 1 hour long recording of a
concert, encoded in high-profile H.264. I thought that decoding high-profile
H.264 video would burden my CPU significantly and will take much time, so it
would be obvious that video stream is indeed being decoded. But judging by
ffmpegdec source direct-rendering is always disabled for H.264, so this
testcase is inappropriate.

OK, i've tried theora-encoded video file with vorbis audio (ogg container).
Same thing - video is being decoded. Attaching a log file.

Since you've pointed me at buffering issue, i've tried to read the log myself.
It seems to me that theoradec happily goes all the way down to
theora_handle_data_packet(), calls theora_decode_packetin() to decode data and
then suddenly realizes that there's no buffer because pad is not linked.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=570144.




More information about the Gstreamer-bugs mailing list