![]() |
![]() |
![]() |
GStreamer Bad Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
fpsdisplaysinkfpsdisplaysink — Shows the current frame-rate and drop-rate of the videosink as overlay or text on stdout |
"sync" gboolean : Read / Write "text-overlay" gboolean : Read / Write "video-sink" GstElement* : Read / Write "fps-update-interval" gint : Read / Write "max-fps" gdouble : Read "min-fps" gdouble : Read "signal-fps-measurements" gboolean : Read / Write "frames-dropped" guint : Read "frames-rendered" guint : Read "last-message" gchar* : Read "silent" gboolean : Read / Write
Can display the current and average framerate as a testoverlay or on stdout.
1 2 3 4 |
gst-launch videotestsrc ! fpsdisplaysink gst-launch videotestsrc ! fpsdisplaysink text-overlay=false gst-launch filesrc location=video.avi ! decodebin2 name=d ! queue ! fpsdisplaysink d. ! queue ! fakesink sync=true gst-launch playbin2 uri=file:///path/to/video.avi video-sink="fpsdisplaysink" audio-sink=fakesink |
plugin |
debugutilsbad |
author |
Zeeshan Ali <zeeshan.ali@nokia.com>, Stefan Kost <stefan.kost@nokia.com> |
class |
Sink/Video |
"sync"
property"sync" gboolean : Read / Write
Sync on the clock (if the internally used sink doesn't have this property it will be ignored.
Default value: TRUE
"text-overlay"
property"text-overlay" gboolean : Read / Write
Whether to use text-overlay.
Default value: TRUE
"video-sink"
property"video-sink" GstElement* : Read / Write
Video sink to use (Must only be called on NULL state).
"fps-update-interval"
property"fps-update-interval" gint : Read / Write
Time between consecutive frames per second measures and update (in ms). Should be set on NULL state.
Allowed values: >= 1
Default value: 500
"max-fps"
property"max-fps" gdouble : Read
Maximum fps rate measured. Reset when going from NULL to READY.-1 means no measurement has yet been done.
Allowed values: >= -1
Default value: -1
"min-fps"
property"min-fps" gdouble : Read
Minimum fps rate measured. Reset when going from NULL to READY.-1 means no measurement has yet been done.
Allowed values: >= -1
Default value: -1
"signal-fps-measurements"
property"signal-fps-measurements" gboolean : Read / Write
If the fps-measurements signal should be emited.
Default value: FALSE
"frames-dropped"
property"frames-dropped" guint : Read
Number of frames dropped by the sink.
Default value: 0
"frames-rendered"
property"frames-rendered" guint : Read
Number of frames rendered.
Default value: 0
"last-message"
property"last-message" gchar* : Read
The message describing current status.
Default value: NULL
"silent"
property"silent" gboolean : Read / Write
Don't produce last_message events.
Default value: FALSE
"fps-measurements"
signalvoid user_function (GstFPSDisplaySink *fpsdisplaysink,
gdouble fps,
gdouble droprate,
gdouble avgfps,
gpointer user_data) : Run Last
Signals the application about the measured fps
|
a GstFPSDisplaySink |
|
The current measured fps |
|
The rate at which buffers are being dropped |
|
The average fps |
|
user data set when the signal handler was connected. |
Since 0.10.20