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