halving framerate

Tim Müller tim at centricular.com
Mon Jul 13 05:17:03 PDT 2015


On Mon, 2015-07-13 at 11:56 +0000, Thornton, Keith wrote:

Hi Keith,

> I have a tee which has two branches, one requiring the full 60Hz video
> framerate and one requiring only every second buffer.
> 
> I thought I could achieve this by adding  a pad probe to the first pad
> after the tee in the branch only requiring the half framerate. This
> pad probe returns GST_PAD_PROBE_DROP for every second buffer and
> GST_PAD_PROBE_PASS for the others. This doesn’t seem to work. The
> branch still gets all of the buffers.
> 
> Has anyone any suggestions as to how I could achieve this?

How about 

  videorate skip-to-first=true ! video/x-raw,framerate=30/1 ! ...

You'd need to double-check if this introduces jitter though (changes
timestamps).

Not sure why your probe doesn't work, sounds like a bug either in your
app or (less likely, imho) in GStreamer.

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list