Gstreamer 1.0 一源二宿展示
Gstreamer 1.0 one source and two sink display
我想通过v4l2src从摄像头采集图像,然后采集到的图像显示在2个接收器中,一个是原始图像,一个是处理过的图像。
有谁知道如何做到这一点?
我正在使用 gstreamer 1.0.
您应该查看 tee
元素:https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html
这是满足您需求的 GST 启动示例:
gst-launch-1.0 -v v4l2src ! tee name=t \
t. ! queue ! videoscale ! video/x-raw,width=640,height=480 ! \
videoconvert ! autovideosink \
t. ! queue ! videoscale ! video/x-raw,width=360,height=240 ! \
videoconvert ! autovideosink
我想通过v4l2src从摄像头采集图像,然后采集到的图像显示在2个接收器中,一个是原始图像,一个是处理过的图像。 有谁知道如何做到这一点? 我正在使用 gstreamer 1.0.
您应该查看 tee
元素:https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html
这是满足您需求的 GST 启动示例:
gst-launch-1.0 -v v4l2src ! tee name=t \
t. ! queue ! videoscale ! video/x-raw,width=640,height=480 ! \
videoconvert ! autovideosink \
t. ! queue ! videoscale ! video/x-raw,width=360,height=240 ! \
videoconvert ! autovideosink