basler / gst-plugin-pylon

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

Gstreamer pipeline stopped working after 20 seconds #67

Open rwang5203 opened 8 months ago

rwang5203 commented 8 months ago

Error output

Use Windows high-resolution clock, precision: 1 ms
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'nvh265enc0': gst.cuda.context=context, gst.cuda.context=(GstCudaContext)"\(GstCudaContext\)\ cudacontext1", cuda-device-id=(uint)0;
Redistribute latency...
Got context from element 'nvh265enc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplay\)\ gldisplay0";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Failed to create buffer.
Additional debug info:
../ext/pylon/gstpylonsrc.cpp(993): gst_pylon_src_create (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
A device attached to the system is not functioning.

Execution ended after 0:00:22.691179000
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason error (-5)
Freeing pipeline ...

To Reproduce gst-launch-1.0 pylonsrc ! 'video/x-raw, width=1920, height=1080, format=YUY2, framerate=60/1' ! videoconvert ! timeoverlay ! nvh265enc bitrate=3000 ! 'video/x-h265, stream-format=(string)byte-stream' ! h265parse ! rtph265pay mtu=1320 ! udpsink host=192.168.1.11 port=13000 sync=false async=false -e

Expected behavior A camera streams normaly through udpsink to an assigned IP address and port.

Environment

thiesmoeller commented 8 months ago

Please check when you apply the stream grabber setting recommended in: https://github.com/basler/gst-plugin-pylon/blob/2fba87f9b329d90adc70e4cac4c6e075a37d2027/README.md?plain=1#L249