Thank you for the answer. I&#39;ve already add the capsfilter to fix the problem, but my app. should support many different types of sources, so I can&#39;t hard code the frame rate. <br><br>Anyway, the videosink plays well with the decoder caps of framerate=100/1. I think it means videosink does not look at the caps to play the stream, but jpegenc or avimux does look at the framerate for recording.<br>
<br>I&#39;ve investigated source code, but I coudn&#39;t find where the 100/1 came from. The truth is that rtspsrc doesn&#39;t even care about &quot;a=framerate...&quot; field to create cap, and it seems like not a mandatory attribute.<br>
<br>Anybody can tell me what how mp4vdepay or ffdec_mpeg4 sets frame rate?<br><br>Thank you in advance!<br><br>Justin<br><br><br><br>Is there anybody who can judge that this is a bug or not?<br><br>
<br><div class="gmail_quote">On Mon, Jul 20, 2009 at 2:48 AM, florian iragne <span dir="ltr">&lt;<a href="mailto:florian.iragne@viewsurf.com" target="_blank">florian.iragne@viewsurf.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;">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
joh a écrit :<br>
<div><div></div><div>&gt; Hi~<br>
&gt;<br>
&gt; My application gets the mpeg4 video stream from a AXIS camera and<br>
&gt; displays it on a x-window. Everything works perfectly. However, I have a<br>
&gt; problem with recording the video to the file. The problem is that<br>
&gt; ffdec_mpeg4 gets or sets (not sure who has set)  wrong frame rate. The<br>
&gt; sdp from rtspsrc said, the frame rate is 30/1 (sdp attribute belonged to<br>
&gt; a media &quot;a=framerate: 30.0&quot;). However, the source pad of ffdec_mpeg4 has<br>
&gt; frame rate of 100/1. So, When I record the stream and plays it, it runs<br>
&gt; approximately three times faster than what it is suppoesed to do.<br>
&gt;<br>
&gt; I think either one of upstream elements, rtspsrc and rtpmp4vdepay, or<br>
&gt; ffdec_mpeg4 is doing something wrong. Do you guys think it it a bug?<br>
&gt; What&#39;s you think about it?<br>
<br>
</div></div>don&#39;t know whether it&#39;s a bug or not, but you should try to define caps<br>
with a capsfilter element like capsfilter caps=&quot;framerate=(fraction)30/1&quot;<br>
<br>
<br>
Florian<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAkpkPVIACgkQO8DE9K7b371s/QCgjgAYW97nD29v1auVhIQ+0XwW<br>
ZqUAoLCRsv8tnRYzzgLLMFoXXGt7jBN2<br>
=Shzy<br>
-----END PGP SIGNATURE-----<br>
<br>
------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</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>