Reduce to 2 colors only (black+white) based on threshhold (x-raw GRAY8 format)?
HermannSW
hermann at stamm-wilbrandt.de
Tue Nov 21 13:07:43 UTC 2017
Thanks Josh and Nicolas.
The most important for me is high speed low latency, since this b/w 2 color
reduction will be part of a high framerate gstreamer robot control pipeline.
I don't know yet how to test the timing of a single gstreamer plugin. But I
tried same pipeline based on Nicolas' pipeline, with 320x240 and 90fps
against fpsdisplaysink="fakesink" to minimize overhead.
Without the frei0r plugin I get 90fps as requested:
pi at raspberrypi02:~ $ gst-launch-1.0 -v videotestsrc !
video/x-raw,format=GRAY8,width=320,height=240,framerate=90/1 ! videoconvert
! fpsdisplaysink video-sink="fakesink"
...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message =
rendered: 820, dropped: 0, current: 89.77, average: 90.11
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay:
text = rendered: 866, dropped: 0, current: 90.23, average: 90.11
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message =
rendered: 866, dropped: 0, current: 90.23, average: 90.11
...
With frei0r plugin only 55fps:
pi at raspberrypi02:~ $ gst-launch-1.0 -v videotestsrc !
video/x-raw,format=GRAY8,width=320,height=240,framerate=90/1 ! videoconvert
! frei0r-filter-threshold0r threshold=0.2 ! fpsdisplaysink
video-sink="fakesink"
...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message =
rendered: 83, dropped: 0, current: 55.62, average: 53.95
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay:
text = rendered: 111, dropped: 0, current: 55.40, average: 54.31
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message =
rendered: 111, dropped: 0, current: 55.40, average: 54.31
...
I will write my own plugin (GRAY8 in, GRAY8 out) and compare its performance
with similar pipeline then.
Hermann.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list