videorate

videorate — adjusts the framerate of video

Synopsis




            GstVideoRate;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstVideoRate

Properties


  "drop"                 guint64               : Read
  "duplicate"            guint64               : Read
  "in"                   guint64               : Read
  "new-pref"             gdouble               : Read / Write
  "out"                  guint64               : Read
  "silent"               gboolean              : Read / Write

Description

This element converts video from one framerate to another. This operation is performed by dropping and duplicating frames, no fancy algorithm is used to interpolate frames (yet).

By default the element will simply negotiate the same framerate on its source and sink pad and will adjust timestamps/insert/drop frames in case the input stream is not respecting that framerate.

A conversion to another framerate can be forced by using filtered caps on the source pad.

The properties "in", "out", "duplicate" and "drop" can be read to obtain information about respectively received frame, outputed frame, duplicated frames and dropped frames. When the "silent" property is set to FALSE, a GObject property notification will be emited whenever one of the "duplicate" or "drop" values changed. This can potentially cause performance degradation. Also note that property notification will happen in the streaming thread so applications should be prepared for this.

Example pipelines

gst-launch -v filesrc location=videotestsrc.ogg ! oggdemux ! theoradec ! videorate ! video/x-raw-yuv,framerate=15/1 ! xvimagesink

Decode an Ogg/Theora and adjust the framerate to 15 fps. To create the test Ogg/Theora file refer to the documentation of theoraenc.

Last reviewed on 2006-03-02 (0.10.4)

Element Information

plugin videorate
author Wim Taymans <wim@fluendo.com>
class Filter/Effect/Video

Details

GstVideoRate

typedef struct _GstVideoRate GstVideoRate;

Opaque data structure.

Properties

The "drop" property

  "drop"                 guint64               : Read

Number of dropped frames.

Default value: 0


The "duplicate" property

  "duplicate"            guint64               : Read

Number of duplicated frames.

Default value: 0


The "in" property

  "in"                   guint64               : Read

Number of input frames.

Default value: 0


The "new-pref" property

  "new-pref"             gdouble               : Read / Write

Value indicating how much to prefer new frames (unused).

Allowed values: [0,1]

Default value: 1


The "out" property

  "out"                  guint64               : Read

Number of output frames.

Default value: 0


The "silent" property

  "silent"               gboolean              : Read / Write

Don't emit notify for dropped and duplicated frames.

Default value: TRUE