<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&#39;t any prob with that. <br><br>There are a few warnings as these two frames are decoded.:::::<br>
<br>gst_base_transform_acceptcaps:&lt;scale&gt; 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:&lt;colorconversion&gt; 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:&lt;colorconversion&gt; 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">&lt;<a href="mailto:nikhil.almalkar@gmail.com">nikhil.almalkar@gmail.com</a>&gt;</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">&lt;<a href="mailto:nikhil.almalkar@gmail.com" target="_blank">nikhil.almalkar@gmail.com</a>&gt;</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), &quot;caps&quot;, gst_caps_new_simple (&quot;video/x-raw-yuv&quot;,<br>

                                                                    &quot;format&quot;,GST_TYPE_FOURCC, GST_MAKE_FOURCC (&#39;I&#39;,&#39;4&#39;,&#39;2&#39;,&#39;0&#39;),<br>
                                                                    &quot;width&quot;,G_TYPE_INT,(gint)value2,<br>                                                                    &quot;height&quot;,G_TYPE_INT,(gint)value1,&quot;framerate&quot;, 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)&#39; failed</span><br>


<br>the pipeline :::<br><br><br>pipeline = gst_pipeline_new (&quot;player&quot;);<br>source = gst_element_factory_make (&quot;filesrc&quot;, &quot;source&quot;);<br>g_object_set (G_OBJECT (source), &quot;location&quot;, Inputfile, NULL);<br>


  <br>    flt1 = gst_element_factory_make (&quot;capsfilter&quot;,&quot;flt1&quot;);    <br>   g_object_set (G_OBJECT (flt1), &quot;caps&quot;, gst_caps_new_simple (&quot;video/x-raw-yuv&quot;,<br>                                                                    &quot;format&quot;,GST_TYPE_FOURCC, GST_MAKE_FOURCC (&#39;I&#39;,&#39;4&#39;,&#39;2&#39;,&#39;0&#39;),<br>


                                                                     &quot;width&quot;,G_TYPE_INT,(gint)value2,<br>                                                                    &quot;height&quot;,G_TYPE_INT,(gint)value1,&quot;framerate&quot;, GST_TYPE_FRACTION, 25, 1, <br>


                                    NULL),NULL);<br>        <br><br>    encoder = gst_element_factory_make (&quot;ffenc_mpeg2video&quot;, &quot;encoder&quot;);<br>        //g_print(&quot;%f  %f&quot;, value4,value3 );<br>


    g_object_set (G_OBJECT (encoder), &quot;bitrate&quot;, (glong)value4,&quot;buffer-size&quot;, (glong)value3, NULL);<br><br>/////////////////////////////////<br><br>the capsfilter element is linked between the filesrc and the encoder as you would&#39;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">&lt;<a href="mailto:ved.kpl@gmail.com" target="_blank">ved.kpl@gmail.com</a>&gt;</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>
&lt;<a href="mailto:nikhil.almalkar@gmail.com" target="_blank">nikhil.almalkar@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m facing a problem in a pipeline that uses ffenc_mpeg2video and<br>
&gt; ffdec_mpeg2video plugins.<br>
&gt;<br>
&gt; I have used a capsfilter to link a filesrc that reads a raw yuv file to be<br>
&gt; encoded. But whenever i run the app it says<br>
&gt;<br>
&gt; gst_capsfilter_prepare_buf: assertion `out_caps != NULL&#39; failed<br>
&gt; basetransform<br>
&gt; gstbasetransform.c:1372:gst_base_transform_prepare_output_buffer:&lt;flt1&gt;<br>
&gt; pad-alloc failed: error<br>
&gt; basetransform<br>
&gt; gstbasetransform.c:1925:gst_base_transform_handle_buffer:&lt;flt1&gt; could not<br>
&gt; get buffer from pool:<br>
&gt;<br>
&gt; any and all inputs are appreciated.<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Nikhil.<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------------<br>
&gt; This SF.net email is sponsored by:<br>
&gt; High Quality Requirements in a Collaborative Environment.<br>
&gt; Download a free trial of Rational Requirements Composer Now!<br>
&gt; <a href="http://p.sf.net/sfu/www-ibm-com" target="_blank">http://p.sf.net/sfu/www-ibm-com</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<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>