[gst-devel] Help setting frame rate with videorate
Noe Nieto
tzicatl at gmail.com
Tue Sep 30 02:56:21 CEST 2008
Hi All
I am experiencing the same problem in a similar situation. On this case the
MJPEG source is at 25 fps. Here is the example:
gnomevfssrc location=$CAMERA ! typefind ! multipartdemux ! image/jpeg,
framerate=25/1 ! jpegdec ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink
= location=test0.ogg
The first problem here is that past the jpegdec element, the framerate is
ignored and falls back to 0/1.
The second problem is that If I try to force the framerate, say, right
before ffmpegcolorspace, then the pipeline will not construct.
The third problem occurs if I use the videorate element. The video
accumulates frames, but totem only displays a still picture instead of a
video.
Can anyone advice?
Regards.
Noe Nieto.
2007/12/19 Aaron Lindsey <aaron at 8bh.com>
> With the help from Edward and quite a bit of searching on my own I was
> able to solve my problem. The frame rates seemed to be ignored and 1/1
> was always assumed until I used the multipartdemux element. Here is the
> pipeline that finally worked:
>
> gnomevfssrc location=http://url?resolution=320x240\&fps=2<http://url?resolution=320x240%5C&fps=2>!
> multipartdemux ! image/jpeg,framerate=2/1 ! jpegdec ! theoraenc ! oggmux
> ! filesink location=test.ogg
>
> After looking at the docs for multipartdemux, I'm not sure why I got any
> video at all before. I guess jpegdec was figuring out some way to parse
> the multipart stream into jpegs with the side effect that the frame rate
> from the caps filter was ignored....or something. Haven't dug deep enough
> into gstreamer to really know. Can anyone shed some light?
>
> Aaron
>
> > Hi,
> >
> > Add a capsfilter informing the content is jpeg data at Xfps.
> >
> > Ex : gnomevfssrc ! image/jpeg,framerate=2/1 ! jpegdec ....
> >
> > Edward
> >
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> 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/20080929/dbdb2214/attachment.htm>
More information about the gstreamer-devel
mailing list