basler / gst-plugin-pylon

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

Can't use gstreamer nor pylonViewer for model a2A1920-165g5c #79

Open rwang5203 opened 9 months ago

rwang5203 commented 9 months ago

Describe the bug

New clock: GstSystemClock
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:
The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e., the network adapter, switch, or Ethernet cable. Buffer underruns can also cause image loss. To fix this, use the pylonGigEConfigurator tool to optimize your setup and use more buffers for grabbing in your application to prevent buffer underruns.
Execution ended after 0:00:00.579042000
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 ..

When I try to view it using pylonViewer, it says an error occurred during recording. Frame could not be written from buffer to disk. The detailed error is:

Invalid pixel type. Bit depth not defined for pixel type -1. : InvalidArgumentException thrown (file 'pixeltype.cpp', line 127)

I tried adding params like stream::MaxBufferSize and stream::MaxNumBuffer, however, the pipeline still didn't work, and the same error still popped up.

To Reproduce gst-launch-1.0 pylonsrc device-index=1 ! videoconvert ! autovideosink Index is 1 because I plugged a USB camera previously.

Expected behavior A window opens up for the camera. I used a acA1920-150uc and it works perfectly fine.

Environment

thiesmoeller commented 8 months ago

Most probably you have to tune your camera settings for 5Gige operation.

You should setup the camera in pylonviewer first. You can save the parameters as a UserSet or save a pfs file, that you can load in the gstreamer pipeline

k-i-din commented 7 months ago

I am getting the same error message for camera model acA1920-50gm. The error is not deterministically reproduceable, but occurs from time to time while recording videos as well as tiff-images. I set the camera to 20fps acquisition frame rate which corresponds to approximately 100Mb/s. For my purpose it is okay to miss some images but unfortunately the recording is stopped although the connection to the camera seems okay as the live view remains available. Which parameter should be adopted in which way?