[gst-devel] gst_capsfilter_prepare_buf....assertion failed

nikhil almalkar nikhil.almalkar at gmail.com
Mon Apr 13 15:47:23 CEST 2009


It worked...
Thanks anyway.

Regards,

Nikhil.

On Mon, Apr 13, 2009 at 6:45 PM, nikhil almalkar
<nikhil.almalkar at gmail.com>wrote:

> i did..
> caps after filesrc :
>
> g_object_set (G_OBJECT (flt1), "caps", gst_caps_new_simple
> ("video/x-raw-yuv",
>
> "format",GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I','4','2','0'),
>
> "width",G_TYPE_INT,(gint)value2,
>
> "height",G_TYPE_INT,(gint)value1,"framerate", GST_TYPE_FRACTION, 25, 1,
>                                     NULL),NULL);
>
> i think i hv gotten rid of that problem ... but now there is another
> exception
>
> ::gst_ffmpegenc_chain_video: assertion `frame_size == GST_BUFFER_SIZE
> (inbuf)' failed
>
> the pipeline :::
>
>
> pipeline = gst_pipeline_new ("player");
> source = gst_element_factory_make ("filesrc", "source");
> g_object_set (G_OBJECT (source), "location", Inputfile, NULL);
>
>     flt1 = gst_element_factory_make ("capsfilter","flt1");
>    g_object_set (G_OBJECT (flt1), "caps", gst_caps_new_simple
> ("video/x-raw-yuv",
>
> "format",GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I','4','2','0'),
>
> "width",G_TYPE_INT,(gint)value2,
>
> "height",G_TYPE_INT,(gint)value1,"framerate", GST_TYPE_FRACTION, 25, 1,
>                                     NULL),NULL);
>
>
>     encoder = gst_element_factory_make ("ffenc_mpeg2video", "encoder");
>         //g_print("%f  %f", value4,value3 );
>     g_object_set (G_OBJECT (encoder), "bitrate",
> (glong)value4,"buffer-size", (glong)value3, NULL);
>
> /////////////////////////////////
>
> the capsfilter element is linked between the filesrc and the encoder as you
> would've guessed.
>
> there also is a decoder following this.. but first i need to figure this
> out...
> i have specified the buffer size as the standard yuv 4:2:0 cif framesize..
> still the exception is ther. (i.e. 152064)...
>
>
> thank you for your time,
>
> Regards,
> Nikhil.
>
>
> On Mon, Apr 13, 2009 at 5:34 PM, ved kpl <ved.kpl at gmail.com> wrote:
>
>> Did you specify caps after the filesrc element.?
>> Can you tell us, what you pipeline looks like?
>>
>> ~Regards
>> Ved
>>
>> On Mon, Apr 13, 2009 at 12:32 PM, nikhil almalkar
>> <nikhil.almalkar at gmail.com> wrote:
>> > Hi all,
>> >
>> > I'm facing a problem in a pipeline that uses ffenc_mpeg2video and
>> > ffdec_mpeg2video plugins.
>> >
>> > I have used a capsfilter to link a filesrc that reads a raw yuv file to
>> be
>> > encoded. But whenever i run the app it says
>> >
>> > gst_capsfilter_prepare_buf: assertion `out_caps != NULL' failed
>> > basetransform
>> > gstbasetransform.c:1372:gst_base_transform_prepare_output_buffer:<flt1>
>> > pad-alloc failed: error
>> > basetransform
>> > gstbasetransform.c:1925:gst_base_transform_handle_buffer:<flt1> could
>> not
>> > get buffer from pool:
>> >
>> > any and all inputs are appreciated.
>> >
>> > Thanks in advance.
>> >
>> > Regards,
>> > Nikhil.
>> >
>> >
>> ------------------------------------------------------------------------------
>> > This SF.net email is sponsored by:
>> > High Quality Requirements in a Collaborative Environment.
>> > Download a free trial of Rational Requirements Composer Now!
>> > http://p.sf.net/sfu/www-ibm-com
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> High Quality Requirements in a Collaborative Environment.
>> Download a free trial of Rational Requirements Composer Now!
>> http://p.sf.net/sfu/www-ibm-com
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090413/fb0735f0/attachment.htm>


More information about the gstreamer-devel mailing list