basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
42 stars 10 forks source link

GStreamer pipeline does not work without "tee" #53

Open martin-petzold opened 1 year ago

martin-petzold commented 1 year ago

Currently we use: /usr/bin/gst-launch-1.0 pylonsrc cam::OffsetX=1144 cam::OffsetY=1016 ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! tee ! queue ! v4l2sink device=/dev/video9

Actually we don't need tee, I would like to remove it. But then I receive the following error:

Jun 11 21:00:31 VIDEO[7205]: New clock: GstSystemClock
Jun 11 21:00:31 VIDEO[7205]: FEHLER: Von Element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Jun 11 21:00:31 VIDEO[7205]: Zusätzliche Fehlerdiagnoseinformation:
Jun 11 21:00:31 VIDEO[7205]: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
Jun 11 21:00:31 VIDEO[7205]: streaming stopped, reason not-negotiated (-4)
Jun 11 21:00:31 VIDEO[7205]: Execution ended after 0:00:00.434628856
Jun 11 21:00:31 VIDEO[7205]: Leitung wird auf NULL gesetzt ...
Jun 11 21:00:31 VIDEO[7205]: Leitung wird geleert ...

/dev/video9 is a v4l2loopback device.

martin-petzold commented 1 year ago

It works also with videoconvert instead of tee.

martin-petzold commented 1 year ago

Does videoconvert consume a lot of resources. Could it be possible without?

thiesmoeller commented 1 year ago

you should always use the platform specific videoconvert