Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rwang5203 opened this issue Jan 9, 2024 · 2 comments
Open

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

rwang5203 opened this issue Jan 9, 2024 · 2 comments

Comments

@rwang5203
Copy link

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

  • Camera: a2A1920-165g5c
  • Version: 0.7.0-local
  • OS: Windows 11
@thiesmoeller
Copy link
Collaborator

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
Copy link

k-i-din commented Feb 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants