use export GST_DEBUG=element_name:5 <br><br>What is your goal here ? You want an avi file having video width and height 1280x720 or 800x600 ? with frame rate 30 or 60 ? <br><br>And can you please tell us what is you sender application ? Is it some gstreamer pipeline ? <br>
<br><br><br><br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 10:29 AM, Prabhulinga Swamy B S <span dir="ltr"><<a href="http://prabhulingaswamy.bs">prabhulingaswamy.bs</a>@<a href="http://globaledgesoft.com">globaledgesoft.com</a>></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,<br>
<br>
I am setting the video caps of appsrc as,<br>
<br>
appsrc is-live=true "caps=video/x-h264,width=1280,height=720,framerate=60/1" \<br>
<div class="im"> h264parse ! queue ! avimux ! queue ! filesink location=filename.avi<br>
<br>
</div> To test the video file, I just set it as 60fps. I'm having a count for<br>
number of frames received. I'm sure its 30fps. If i set video caps as 30fps<br>
file take double the time, and if I set it as 60fps, it plays as normal.<br>
<br>
I set the GST_DEBUG=3 as a environment variable. Is it right ? I didn't get<br>
any debug messages of gstreamer.<br>
Or, let me know correct way of setting GST_DEBUG variable.<br>
<div class="im"><br>
<br>
With Regards,<br>
Prabhu B S<br>
<br>
<br>
</div><div class="im">On 07/20/2010 12:44 PM, sudarshan bisht wrote:<br>
><br>
> But if the frame rate is 60 then the file duration should be half ,<br>
> right ?<br>
><br>
> Can you dump the file before giving it to avimux and check the number<br>
> of frames ?<br>
><br>
> On Tue, Jul 20, 2010 at 9:41 AM, Sandeep Prakash <<a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a>>> wrote:<br>
><br>
><br>
> Hi Prabhulinga,<br>
><br>
> >From your ffmpeg command line<br>
><br>
> prabhu@prabhu:avi $ ffmpeg -v 5 -i sample.avi -f null -<br>
> Input #0, avi, from 'sample.avi':<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 'pipe:':<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 -> #0.0<br>
> existing PPS referenced<br>
><br>
> we can also observe that the framerate is actually 60 (59.94 to be<br>
> exact)<br>
> and not 30<br>
> as you are saying. So somewhere the framerate is getting modified.<br>
> 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<br>
> whats the<br>
> outcome.<br>
><br>
> Regards<br>
> Sandeep Prakash<br>
><br>
><br>
</div></div>> --<br>
> Regards,<br>
><br>
> Sudarshan Bisht<br>
<div><div></div><div class="h5">><br>
><br>
><br>
<br>
<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>