![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
"drop" guint64 : Read "duplicate" guint64 : Read "in" guint64 : Read "new-pref" gdouble : Read / Write "out" guint64 : Read "silent" gboolean : Read / Write
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.
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)