[gst-devel] Frame Dropping

Ryan Ayers rayers.public at dividia.net
Thu Jul 12 16:46:25 CEST 2007


I am developing an AVI-MJPEG HTTP streamer program.  I've got everything working with the below pipeline:

filesrc location=test.avi ! avidemux ! queue ! ffdec_msmpeg4v2 ! jpegenc ! multipartmux ! multifdsink

I am trying to add the feature to slow down or speed up playback.  Here is what I have in mind:

1) Slow down playback/streaming
  Decrease the clock speed since seek(0.5, gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH, gst.SEEK_TYPE_NONE, 0, gst.SEEK_TYPE_NONE, 0) does not seem to work.

2) Speed up playback, say 2.0 or 4.0 times normal
  Implement a frame dropping plugin and increase the clock speed.  So, the net effect would be to maintain a steady framerate, say 5fps, but we are only sending every other frame.

Does anybody have any guidance or information on how to achieve those goals with the above pipeline?  Are there any plugins that do what I've described or anything that is similar that I could modify or create?

Ryan




More information about the gstreamer-devel mailing list