<br>But if the frame rate is 60 then the file duration should be half  , right ?<br><br>Can you dump the file before giving it to avimux and check the number of frames ? <br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 9:41 AM, Sandeep Prakash <span dir="ltr">&lt;<a href="mailto:123sandy@gmail.com">123sandy@gmail.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;"><br>
Hi Prabhulinga,<br>
<br>
&gt;From your ffmpeg command line<br>
<div class="im"><br>
 prabhu@prabhu:avi $ ffmpeg -v 5 -i sample.avi -f null -<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>
</div>we can also observe that the framerate is actually 60 (59.94 to be exact)<br>
and not 30<br>
as you are saying. So somewhere the framerate is getting modified. This<br>
explains the<br>
video duration getting awry.<br>
<br>
Can you attach some logs that will show the caps at each element. Try<br>
setting the<br>
GST_DEBUG=3 env variable.<br>
<br>
Also you can try to disable your frame completion logic and check whats the<br>
outcome.<br>
<br>
Regards<br>
Sandeep Prakash<br>
<a href="http://sandeepprakash.homeip.net" target="_blank">http://sandeepprakash.homeip.net</a><br>
<font color="#888888">--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Duplicates-frames-in-h264-stream-tp2288920p2294998.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Duplicates-frames-in-h264-stream-tp2288920p2294998.html</a><br>

</font><div class="im">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>