[gst-devel] Change Framerate of recorded stream

Sandeep Prakash 123sandy at gmail.com
Wed Aug 25 07:46:22 CEST 2010



Wes Miller wrote:
> 
> I have an mjpeg stream saved into a matroska container file that I want to
> play (to a videosink or a filesink) with a reduced framerate.  The
> original stream is 25 fps.  I want to change it to, say, 5 fps. 
> Essentially,
> 
>      filesrc ! matroskademux ! image/jpeg,framerate=(fraction)5/1 !
> jpegdec ! ...
> 
> This pipeline doesn't  start, reports general stream error...not linked.
> 
> What is the correct form to do this?  I can do it with a have-data
> callback that discards 80% of the frames, but there has to be a smarter
> way.
> 
You can use "videorate" plugin to change the framerate. Directly changing
the caps
on the stream will not work.


Wes Miller wrote:
> 
> Is it also possible to fix the timestamps so that I can get either
> original speed video (at 5 fps) or fast playback, i.e. after converting to
> 5 fps, set the timestamps to play at 25 fps?
> 
Not sure how to achieve this because you (or videorate) would have discarded
the frames already . 
I guess we have to change the buffer duration for this.

Regards,
Sandeep Prakash
http://sandeepprakash.homeip.net
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Change-Framerate-of-recorded-stream-tp2336869p2337676.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list