Skip to content

r2L4096 cannot be initialised due to missing OffsetY #140

@PranglB

Description

@PranglB

Describe the bug
When connecting an r2L4096-29gm some parameter is not found:
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Failed to get caps.
Additional debug info:
../ext/pylon/gstpylonsrc.cpp(584): gst_pylon_src_get_caps (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
Parameter not found in CIntegerParameter::GetValue. (No node attached.)
ERROR: pipeline doesn't want to preroll.

To Reproduce
gst-launch-1.0 pylonsrc device-serial-number=40635748 num-buffers=1 ! videoconvert ! pngenc ! filesink location=frame.png

Expected behavior
Saving one image

Environment

  • Camera: r2L4096-29gm
  • Nvidia Jetson Jetpack 5.1.2-b104

version
Description Basler/Pylon plugin for pylon SDK 8.0.0(10)
Version 1.0.0-9-g625d3bb

Was solved by changing gstpylon.cpp [746] with the following:

gint64 orig_offset_y = 0;
if (self->camera->OffsetY.IsValid()){
orig_offset_y = self->camera->OffsetY.GetValue();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions