Conversion faults with basler camera

Hi!
I’m trying to stream a h265 compressed stream over the network with the help of pylon,srt and gstreamer however im having some problems with my pipeline. The problem is that i want to feed the image straight to the gpus memmory but as soon as i does that half of the screen goes green.

I’m trying to use the colourformat YUY2 as this is the only one that both the camera(and pylonsrc) and nvvidconv(to get it to nv12 format for h265 encoding).

The pipelines i have tried are the following:
The one i want to work but gets half a screen
gst-launch-1.0 videotestsrc ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=YUY2’! nvvidconv ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=(string)NV12’ ! nvv4l2h265enc bitrate=2000000 ! h265parse ! queue ! h265parse ! nvv4l2decoder ! nv3dsink -e

this one works since it goes to primary memory first
gst-launch-1.0 pylonsrc width=1920 height=1080 ! ‘video/x-raw, width=1920, height=1080, framerate=30/1, format=YUY2’! nvvidconv ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=(string)NV12’ ! nvv4l2h265enc bitrate=2000000 ! h265parse ! queue ! h265parse ! nvv4l2decoder ! nv3dsink -e

This one also works
gst-launch-1.0 videotestsrc ! nvvidconv ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=YUY2’! nvvidconv ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=(string)NV12’ ! nvv4l2h265enc bitrate=2000000 ! h265parse ! queue ! h265parse ! nvv4l2decoder ! nv3dsink -e

Him
This is not possible since videotestsrc and pylonsrc plugins do not support video/x-raw(memory:NVMM). You would need to use the camera which can run with nvarguscamerasrc or nvv4l2camerasrc

No i understand that the videotestsrc cant use video/x-raw(memmory:NVMM) thats why i added a converter in my pipeline, i know that its not really a valid comparisson but just wanted to add it for if it gave any extra information.

However pylonsrc does support video/x-raw(memmory:NVMM), i dont have access to my target hardware right now so i cant screenshot gst-inspect. However they do write about it on their github. GitHub - basler/gst-plugin-pylon: The official GStreamer plug-in for Basler cameras . I have also posted about my problem over there but as their community is much smaller i wanted to see if you guys could provide some insight.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.