[gst-devel] ffdec_mpeg4 gets wrong frame rate from rtspsrc

florian iragne florian.iragne at viewsurf.com
Mon Jul 20 11:48:02 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

joh a écrit :
> Hi~
> 
> My application gets the mpeg4 video stream from a AXIS camera and
> displays it on a x-window. Everything works perfectly. However, I have a
> problem with recording the video to the file. The problem is that
> ffdec_mpeg4 gets or sets (not sure who has set)  wrong frame rate. The
> sdp from rtspsrc said, the frame rate is 30/1 (sdp attribute belonged to
> a media "a=framerate: 30.0"). However, the source pad of ffdec_mpeg4 has
> frame rate of 100/1. So, When I record the stream and plays it, it runs
> approximately three times faster than what it is suppoesed to do.
> 
> I think either one of upstream elements, rtspsrc and rtpmp4vdepay, or
> ffdec_mpeg4 is doing something wrong. Do you guys think it it a bug?
> What's you think about it?

don't know whether it's a bug or not, but you should try to define caps
with a capsfilter element like capsfilter caps="framerate=(fraction)30/1"


Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpkPVIACgkQO8DE9K7b371s/QCgjgAYW97nD29v1auVhIQ+0XwW
ZqUAoLCRsv8tnRYzzgLLMFoXXGt7jBN2
=Shzy
-----END PGP SIGNATURE-----




More information about the gstreamer-devel mailing list