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

joh joh.vlcdev at gmail.com
Wed Jul 22 18:01:56 CEST 2009


Hi Amout,

Thank you for your answer!

I've just looked at the debug messages, and found what you mentioned. Below
are the part of log.
By the way, can you explain how I can watch the video in normal speed? Does
it mean that ffmpeg duplciates frames to satisfy the frame rate what it
belives?

Regards,
Justin

*
-------------------------------------------------------------------------------------------
*gstffmpegdec.c:714:gst_ffmpegdec_setcaps:<ffdec_mpeg40> forcing 25/1
framerate

gstffmpegdec.c:744:gst_ffmpegdec_setcaps:<ffdec_mpeg40> Using framerate from
codec*
*.
.
ffmpeg gstffmpegdec.c:1130:gst_ffmpegdec_negotiate:<ffdec_mpeg40>
Renegotiating video from 0x0@ -1/-1 fps to 640x480@ -1/0 fps

ffmpeg gstffmpegcodecmap.c:1724:gst_ffmpeg_codectype_to_video_caps:
context:0x9c81c00, codec_id:13, encode:0, codec:(nil)

ffmpeg gstffmpegcodecmap.c:186:gst_ff_vid_caps_new: context:0x9c81c00,
codec_id:13, mimetype:video/x-raw-yuv

gstffmpegcodecmap.c:1602:gst_ffmpeg_pixfmt_to_caps: caps for pix_fmt=0:
video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)100/1,
format=(fourcc)I420
*
-------------------------------------------------------------------------------------------
*


On Wed, Jul 22, 2009 at 1:12 AM, Arnout Vandecappelle <arnout at mind.be>wrote:

> On Monday 20 July 2009 18:11:26 joh wrote:
> > I've investigated source code, but I coudn't find where the 100/1 came
> > from. The truth is that rtspsrc doesn't even care about "a=framerate..."
> > field to create cap, and it seems like not a mandatory attribute.
> >
> > Anybody can tell me what how mp4vdepay or ffdec_mpeg4 sets frame rate?
>
>  I think it's the framerate that is set by the MPEG4 stream itself.  Try
> running with --gst-debug=ffmpeg:5 and look for 'Using framerate from
> codec'.
> If that is there, it means the MPEG4 stream specifies a framerate of
> 100fps.
> I had something similar with Sony's MPEG4 cameras.  It would surprise me
> that
> Axis does things the wrong way, but it is possible I guess...
>
>  Regards,
>  Arnout
>
> --
> Arnout Vandecappelle                               arnout at mind be
> Senior Embedded Software Architect                 +32-16-286540
> Essensium/Mind                                     http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR
> Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090722/8c605fd1/attachment.htm>


More information about the gstreamer-devel mailing list