AW: halving framerate

Thornton, Keith keith.thornton at zeiss.com
Mon Jul 13 05:39:10 PDT 2015


Thanks Tim as you thought, I had an error in my implementation. It is now working using the pad probe :-)

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Tim Müller
Gesendet: Montag, 13. Juli 2015 14:17
An: Discussion of the development of and with GStreamer
Betreff: Re: halving framerate

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

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list