AVI-muxer bug?

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Aug 18 07:51:15 PDT 2011


On Thu, 2011-08-18 at 09:38 -0500, Nicholas Butts wrote:

> I've setup a pipeline as follows:
> appsrc->avimuxer->filesink
> 
> I then set the caps of the appsrc with the following code:
>     GstCaps * caps = gst_caps_new_simple("video/mpeg", "width",
> G_TYPE_INT, 1280, "height", G_TYPE_INT, 720, "framerate",
> GST_TYPE_FRACTION, 1, 24, "mpegversion", G_TYPE_INT, 4,
> "systemstream", G_TYPE_BOOLEAN, FALSE);
>     gst_app_src_set_caps(GST_APP_SRC(source), caps);
> 
> Here is the resulting debug message:
> 0:00:00.357576853  1728  0x8b2f008 DEBUG                 appsrc
> gstappsrc.c:1086:gst_app_src_set
> _caps:<app-source> setting caps to video/mpeg, width=(int)1280,
> height=(int)720, framerate=(fraction)1/24, mpegve
> rsion=(int)4, systemstream=(boolean)false
>
> But when I link the appsrc to the avimux I see the following message:
> ment_get_compatible_pad:<muxer> Could not find a compatible unlinked
> always pad to link to app-source:src, now ch

> gst_pad_get_caps_unlocked:<app-source:src> pad getcaps returned ANY

That looks like it might be the problem..

> So it looks like the avimux audio sink is being used to connect to my
> video source. Is there a way to work around this bug?

You could create the request pad(s) you need yourself using
gst_element_request_pad().

Cheers
 -Tim



More information about the gstreamer-devel mailing list