That means you are somewhere pushing GstBuffer with NULL data part and some timestamp. <br><br>OK can you tell that the video play duration is fine or its doubled ? <br><br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 1:31 PM, Prabhulinga Swamy B S <span dir="ltr">&lt;<a href="http://prabhulingaswamy.bs">prabhulingaswamy.bs</a>@<a href="http://globaledgesoft.com">globaledgesoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">


  

<div bgcolor="#ffffff" text="#000000">

<br>
Hi,<br>
        I agree with h264parse can complete h264 frames.<br>
<br>
        Before starting gstreamer pipeline, I&#39;ll negotiates the video
resolution. Thats not a problem.<br>
       <br>
        The reason, I&#39;m receiving complete h264 frames before pushing
to h264parse is, another display<br>
        application using ffmpeg is displaying the live stream. Display
application uses the completed<br>
        frames for  displaying.<br>
<br>
        My problem is with dummy frames written into avi file.<br>
<br>
<br>
On 07/15/2010 11:36 AM, sudarshan bisht wrote:
<blockquote type="cite">
  <div> Hi , </div>
  <div> </div>
  <div>  </div>
  <div>  You are setting caps 800x600 in caps but you output shows
1280x720 ?? </div>
  <div><br>
   And why you are waiting to receive a complete frame ?  you can
simply push the data to appsrc , h264parse is there to build a complete
frame .</div>
  <div> </div>
  <div><br>
 </div>
  <div class="gmail_quote">On Thu, Jul 15, 2010 at 11:15 AM,
Prabhulinga Swamy B S <span dir="ltr">&lt;<a href="http://prabhulingaswamy.bs" target="_blank">prabhulingaswamy.bs</a>@<a href="http://globaledgesoft.com" target="_blank">globaledgesoft.com</a>&gt;</span>
wrote:<br>
  <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">hi Sandeep,<br>
     thank you for your reply.<br>
    <br>
    Yes, I&#39;m sure of receiving 30 fps from the network. After<br>
completely receiving<br>
    the frame, I&#39;m incrementing frame count.<br>
    <br>
    What I mean about the duplicate frames is, after every valid frame<br>
in the resulting<br>
    video file, there is a duplicate and empty frame.<br>
    <br>
    The fallowing output can clear your doubt.<br>
    <br>
prabhu@prabhu:avi $ ffmpeg -v 5 -i sample.avi -f null -<br>
    <br>
Input #0, avi, from &#39;sample.avi&#39;:<br>
  Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s<br>
    Stream #0.0, 1/60: Video: h264, yuv420p, 1280x720, 1/120, 59.94<br>
tbr, 60 tbn, 120 tbc<br>
Output #0, null, to &#39;pipe:&#39;:<br>
    Stream #0.0, 1/90000: Video: rawvideo, yuv420p, 1280x720,<br>
1001/60000, q=2-31, 200 kb/s, 90k tbn, 59.94 tbc<br>
Stream mapping:<br>
  Stream #0.0 -&gt; #0.0<br>
  existing PPS referenced<br>
    <br>
[h264 @ 0x806ed70]non-existing PPS referenced<br>
[h264 @ 0x806ed70]decode_slice_header error<br>
[h264 @ 0x806ed70]no frame!<br>
Error while decoding stream #0.0<br>
Error while decoding stream #0.0<br>
    Last message repeated 1 times<br>
[h264 @ 0x806ed70]non-existing PPS referenced<br>
[h264 @ 0x806ed70]decode_slice_header error<br>
[h264 @ 0x806ed70]no frame!<br>
Error while decoding stream #0.0<br>
*** 1 dup!<br>
Error while decoding stream #0.0<br>
*** 1 dup!<br>
        .<br>
        .<br>
        .<br>
Error while decoding stream #0.0<br>
*** 1 dup!<br>
frame=  315 fps=122 q=0.0 Lsize=      -0kB time=5.26 bitrate=<br>
-0.0kbits/s dup=315 drop=0<br>
video:0kB audio:0kB global headers:0kB muxing overhead -inf%<br>
    <br>
I&#39;ve received 315 frames from the network and pushed those many frames
into<br>
gstreamer pipeline. But don&#39;t know why these dummy frames are written<br>
into the file.<br>
    <br>
For ex, if I receive 30MB of video data, the resulting file is also of<br>
same size, but<br>
frames count will be double the original frames.<br>
    <div><br>
    <br>
    <br>
    <br>
On 07/14/2010 09:38 PM, Sandeep Prakash wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt; Prabhulinga Swamy B S wrote:<br>
&gt;<br>
&gt;&gt;         appsrc is-live=true<br>
&gt;&gt; &quot;caps=video/x-h264,width=800,height=600,framerate=30/1&quot; ! \<br>
&gt;&gt;           h264parse ! queue ! avimux ! queue ! filesink<br>
&gt;&gt; location=filename.avi<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Are you sure the h264 stream you are getting from the network has
30 fps?<br>
&gt;<br>
&gt;<br>
&gt; Prabhulinga Swamy B S wrote:<br>
&gt;<br>
&gt;&gt;       But the resulting file is having duplicate frames.<br>
&gt;&gt;       For ex, if i push 200 frames, the resulting file contain
nearly 200<br>
&gt;&gt; frames.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Plz explain in detail on the above statements. What does &quot;nearly&quot;
mean?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Sandeep<br>
&gt;<br>
    <br>
--<br>
    <br>
    </div>
  </blockquote>
  </div>
</blockquote>
<br>
<pre cols="72">-- 

Regards,
Prabhulinga Swamy B S

</pre>
</div>



</div></div><br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Sprint<br>
What will you do first with EVO, the first 4G phone?<br>
Visit <a href="http://sprint.com/first" target="_blank">sprint.com/first</a> -- <a href="http://p.sf.net/sfu/sprint-com-first" target="_blank">http://p.sf.net/sfu/sprint-com-first</a><br>_______________________________________________<br>

gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">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></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>