
22
Image and Video Capture Plugins
3.1.4 v4l2src
This element can be used to capture video from v4l2 devices, such as webcams and TV tuner cards.
Note
: Only supported on Linux.
For more details, refer to the official documentation at:
https://gstreamer.freedesktop.org/documentation/video4linux2/v4l2src.html?gi-language=c#v4l2src-page
3.1.4.1 Examples
Using
gst-launch
This pipeline shows the video captured from a webcam with jpeg images.
gst-launch-1.0 v4l2src ! jpegdec ! xvimagesink
This pipeline shows the video captured from a webcam with jpeg images and the buffer number set to output
before sending EOS. For auto-function testing, the output automatically stops when the buffer is reached.
gst-launch-1.0 v4l2src num-buffers=100 ! jpegdec ! xvimagesink
Note
: The element ‘xvimagesink’ is only supported on Linux. It is recommended to use the ‘glimagesink’ or
‘d3dvideosink’ elements to display the window on Windows.
3.1.5 multifilesrc
This element reads buffers from sequentially named files. If used together with an image decoder, the “
property or a capsfilter must be used to force to caps containing a framerate, otherwise the image decoders send
EOS after the first frame. A videorate element is needed to set timestamps on all buffers after the first one in
accordance with the corresponding framerate.
File names are created by replacing "%d" with the index using printf().
For more details, refer to the official documentation at:
3.1.5.1 Example Using gst-launch
This pipeline displays a video by joining multiple sequentially named PNG files (img.0000.png, img.0001.png, etc.)..
gst-launch-1.0 multifilesrc location="img.%04d.png" index=0
caps="image/png,framerate=\(fraction\)12/1" ! pngdec ! videoconvert ! videorate !
xvimagesink
Note
: The element ‘xvimagesink’ is only supported on Linux. It is recommended to use the ‘glimagesink’ or
‘d3dvideosink’ elements to display the window on Windows.
Summary of Contents for EVA SDK
Page 1: ...EVA SDK User s Manual Manual Rev 1 2 Revision Date July 20 2021 Part Number 50M 00010 1020...
Page 4: ...iv Preface This page intentionally left blank...
Page 8: ...4 Introduction This page intentionally left blank...
Page 10: ...6 Setting Environment Variables This page intentionally left blank...
Page 78: ...74 Image Processing Plugins This page intentionally left blank...
Page 110: ...106 Convert for OpenVINO Model This page intentionally left blank...