<div dir="ltr">Hi all,<br><br>Im using following pipeline ::<br><br>gst_element_link_many (source, flt1, encoder, decoder, ffmpegcolorcon, scale, videosink, NULL);<br><br>source is a filesrc, with blocksize and location specified.. the flt1 specifies the height, width, yuv format, (for input is a raw stream), framerate. Everything seems to be normal to me. <br>
<br>But when i try to run it... it stops after 3 frames saying unexpected end of stream.... ive checked the file and there are 300 odd frames and there isn't any prob with that. <br><br>There are a few warnings as these two frames are decoded.:::::<br>
<br>gst_base_transform_acceptcaps:<scale> transform could not transform video/x-raw-yuv, width=(int)352, height=(int)288, framerate=(fraction)5/1, format=(fourcc)I420, pixel-aspect-ratio=(fraction)1/1 in anything we support (othercaps (NULL))<br>
<br>gst_base_transform_acceptcaps:<colorconversion> transform could not transform video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)512, height=(int)256, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1 in anything we support (othercaps (NULL))<br>
<br>gst_base_transform_acceptcaps:<colorconversion> transform could not transform video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)512, height=(int)256, framerate=(fraction)5/1, pixel-aspect-ratio=(fraction)1/1 in anything we support (othercaps (NULL))<br>
<br>in that order...<br><br>also .. the log says<br>ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (4)<br> ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (4)<br>ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (5)<br>
ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (6)<br> ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (7)<br>ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (8)<br> ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (9)<br>
ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (10)<br> ffmpeg :0:: Warning: AVFrame.pts=? trying to guess (11)<br>and so on to the last frame....<br><br>what do you reccon the problem is?<br><br>Regards<br>Nikhil.<br>
<div class="gmail_quote">On Mon, Apr 13, 2009 at 7:17 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">It worked...<br>Thanks anyway. <br><br>Regards,<br><font color="#888888"><br>Nikhil.</font><div><div></div><div class="h5"><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" target="_blank">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><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></div></div>
</blockquote></div><br></div>