[gst-devel] [decodebin 0.9] getting informations of a stream
Wim Taymans
wim at fluendo.com
Thu Oct 20 11:40:14 CEST 2005
On Thu, 2005-10-20 at 20:01 +0200, Vincent Torri wrote:
>
> >
> > Hmm.. my bad.. forget to update the test app.. fixed in CVS now.
>
> It's better, now. The duration is good, with an avi. But with an mkv
> and an ogm, test6 hangs :
>
> waiting..
> ERROR (0x8098a78 - 0:00:00.423690000) ffmpeg(16426) (0)::
> get_buffer() failed (-1 0 0 (nil))
>
> ERROR (0x8098a78 - 0:00:00.423934000) ffmpeg(16426)
> gstffmpegdec.c(883):gst_ffmpegdec_frame:<ffdec_mpeg40> ffdec_mpeg4:
> decoding error (len: -1, have_data: 0)
>
> (only these 2 error messages, not more) and nothing. It hangs.
>
> Nevertheless, as I'm obstinate, any idea why my program does not work ? :)
when the new-pad signal is triggered in decodebin the pad is not
completely negotiated so _get_caps() on the pad will return all
*possible* caps on that pad (usually pads from the video/audio
decoders). It is only when some data has been consumed by the decoders
that they figure out the width and height of the video and samplerate of
audio and you get a real fixed and correct caps.
That said, it is possible to make decodebin emit the new-pad signal only
when it is fully negotiated. Some use cases for decodebin would be nice
to figure out what users need at this point..
Wim
>
> Vincent
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
--
Wim Taymans <wim at fluendo.com>
More information about the gstreamer-devel
mailing list