Closed bramdecoster closed 3 years ago
@bramdecoster, please specify the desired framerate in capsfilter. The plugin currently relies on other elements setting pipeline framerate. Your log says the negotiated framerate is 0/1
I get more tries from gstreamer now to grab frames but the end result is still the same error.
GST_DEBUG=2,pylonsrc:6 gst-launch-1.0 -v pylonsrc pixel-format=mono8 width=1024 height=512 ! "video/x-raw,format=GRAY8,framerate=60/1" ! videoflip method=vertical-flip ! videoconvert ! x264enc bitrate=30000 speed-preset=superfast qp-min=30 tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=5000
0:00:00.087539135 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:792:gst_pylonsrc_init:<GstPylonSrc@0x558806a8e0> Initialising defaults
0:00:00.087709313 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:958:gst_pylonsrc_set_property:<pylonsrc0> Setting a property: 38
0:00:00.087762274 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:958:gst_pylonsrc_set_property:<pylonsrc0> Setting a property: 3
0:00:00.087814211 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:958:gst_pylonsrc_set_property:<pylonsrc0> Setting a property: 2
0:00:00.105080793 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.105181722 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.105294684 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.105327580 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.105697282 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.105743266 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.106034022 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.106069735 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.109309845 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.109371958 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.112523875 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.112576356 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.113028490 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.113064875 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1467:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
Setting pipeline to PAUSED ...
0:00:00.115136776 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4028:gst_pylonsrc_start:<pylonsrc0> First object created
0:00:00.391611755 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1735:gst_pylonsrc_select_device:<pylonsrc0> src: found 1 Basler device(s).
0:00:00.391731949 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4240:pylonc_connect_camera:<pylonsrc0> Connecting to the camera (index=0)...
0:00:00.513000812 11191 0x558803d8f0 LOG pylonsrc gstpylonsrc.c:4307:pylonc_print_camera_info:<pylonsrc0> Status: Using camera "acA2040-90umNIR" (serial number: 21782582, id: 0). Custom ID: gjm8
0:00:00.513660534 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1866:gst_pylonsrc_set_resolution_axis:<pylonsrc0> Setting BinningHorizontal to 1
0:00:00.516919748 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:3250:read_integer_feature:<pylonsrc0> Reading integer feature: WidthMax = 2048
0:00:00.519288230 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1866:gst_pylonsrc_set_resolution_axis:<pylonsrc0> Setting BinningVertical to 1
0:00:00.522393970 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:3250:read_integer_feature:<pylonsrc0> Reading integer feature: HeightMax = 2048
0:00:00.524147179 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1913:gst_pylonsrc_set_resolution_axis:<pylonsrc0> Max resolution is 2048x2048.
0:00:00.524195404 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1915:gst_pylonsrc_set_resolution_axis:<pylonsrc0> Setting resolution to 1024x512.
0:00:00.525235963 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1957:gst_pylonsrc_set_offset_axis:<pylonsrc0> CenterX: False
0:00:00.526337418 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1957:gst_pylonsrc_set_offset_axis:<pylonsrc0> CenterY: False
0:00:00.527870976 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2018:gst_pylonsrc_set_reverse_axis:<pylonsrc0> ReverseX: False
0:00:00.528917263 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2018:gst_pylonsrc_set_reverse_axis:<pylonsrc0> ReverseY: False
0:00:00.528996912 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2100:gst_pylonsrc_set_pixel_format:<pylonsrc0> Using mono8 PixelFormat.
0:00:00.530818826 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:1540:feature_supported:<pylonsrc0> Camera does not implement feature: SensorReadoutMode
0:00:00.531338898 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2184:gst_pylonsrc_set_bandwidth:<pylonsrc0> Limiting camera's bandwidth.
0:00:00.533066570 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2232:gst_pylonsrc_set_framerate:<pylonsrc0> Limiting framerate: False. See below for current framerate.
0:00:00.533689651 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:1566:feature_alias_available:<pylonsrc0> Feature is not available: LightSourcePreset or LightSourceSelector
0:00:00.533770100 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:1551:feature_available:<pylonsrc0> Feature is not available: BslLightSourcePreset
0:00:00.533836661 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:2318:gst_pylonsrc_set_lightsource:<pylonsrc0> This camera doesn't have any lightsource presets
0:00:00.534821955 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2340:gst_pylonsrc_set_auto_feature:<pylonsrc0> Disabling GainAuto.
0:00:00.536435514 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2340:gst_pylonsrc_set_auto_feature:<pylonsrc0> Disabling ExposureAuto.
0:00:00.537510154 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:1551:feature_available:<pylonsrc0> Feature is not available: BalanceWhiteAuto
0:00:00.537552074 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2513:gst_pylonsrc_set_auto_exp_gain_wb:<pylonsrc0> Using the auto profile currently saved on the device.
0:00:00.537586475 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2553:gst_pylonsrc_set_colour_balance:<pylonsrc0> Using current settings for the colour Red.
0:00:00.537617707 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2553:gst_pylonsrc_set_colour_balance:<pylonsrc0> Using current settings for the colour Green.
0:00:00.537683852 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2553:gst_pylonsrc_set_colour_balance:<pylonsrc0> Using current settings for the colour Blue.
0:00:00.537711629 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Red hue.
0:00:00.537738925 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Red saturation.
0:00:00.537801102 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Green hue.
0:00:00.537841166 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Green saturation.
0:00:00.537901967 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Blue hue.
0:00:00.537932432 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Blue saturation.
0:00:00.537959568 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Cyan hue.
0:00:00.537984976 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Cyan saturation.
0:00:00.538010513 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Magenta hue.
0:00:00.538040593 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Magenta saturation.
0:00:00.538065682 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2596:gst_pylonsrc_set_colour_hue:<pylonsrc0> Using saved Yellow hue.
0:00:00.538090962 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2642:gst_pylonsrc_set_colour_saturation:<pylonsrc0> Using saved Yellow saturation.
0:00:00.538199635 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain00 transformation value.
0:00:00.538230260 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain01 transformation value.
0:00:00.538257908 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain02 transformation value.
0:00:00.538284277 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain10 transformation value.
0:00:00.538311605 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain11 transformation value.
0:00:00.538339093 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain12 transformation value.
0:00:00.538365910 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain20 transformation value.
0:00:00.538392630 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain21 transformation value.
0:00:00.538419063 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2674:gst_pylonsrc_set_colour_transformation:<pylonsrc0> Using saved Gain22 transformation value.
0:00:00.538449559 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2801:gst_pylonsrc_set_manual_feature:<pylonsrc0> Gain property not set, using the saved setting.
0:00:00.538477463 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:2801:gst_pylonsrc_set_manual_feature:<pylonsrc0> ExposureTime property not set, using the saved setting.
0:00:00.547762300 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1623:gst_pylonsrc_set_float_feature_with_int_alias:<pylonsrc0> Setting BlackLevel to 0,000000
0:00:00.547916222 11191 0x558803d8f0 WARN pylonsrc gstpylonsrc.c:1566:feature_alias_available:<pylonsrc0> Feature is not available: DemosaicingMode or PgiMode
0:00:00.548001567 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1644:gst_pylonsrc_set_trigger:<pylonsrc0> Setting trigger mode.
0:00:00.549624118 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:1703:gst_pylonsrc_set_trigger:<pylonsrc0> Using "FrameStart" trigger selector. Software trigger mode is Off.
Pipeline is live and does not need PREROLL ...
0:00:00.555130181 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:1465:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps. Filter:
(NULL)
0:00:00.555725549 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:2067:gst_pylonsrc_get_supported_caps:<pylonsrc0> PixelFormat Mono8 supported, adding to caps
0:00:00.555923760 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:2080:gst_pylonsrc_get_supported_caps:<pylonsrc0> Supported caps are video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.555984305 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:1472:gst_pylonsrc_get_caps:<pylonsrc0> Return caps:
video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.557174594 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:1484:gst_pylonsrc_set_caps:<pylonsrc0> Setting caps to video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
0:00:00.557280899 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:1497:gst_pylonsrc_set_caps:<pylonsrc0> Set caps match PixelFormat 'Mono8'
Setting pipeline to PLAYING ...
0:00:00.559888008 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3216:read_string_feature:<pylonsrc0> Reading string feature: PixelFormat = Mono8
New clock: GstSystemClock
0:00:00.560940087 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3216:read_string_feature:<pylonsrc0> Reading string feature: PixelSize = Bpp8
0:00:00.561001208 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:1522:gst_pylonsrc_set_caps:<pylonsrc0> Pixel is 8 bits large.
/GstPipeline:pipeline0/GstPylonSrc:pylonsrc0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)1024, height=(int)512, framerate=(fraction)60/1, format=(string)Y444
Redistribute latency...
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = video/x-raw, width=(int)1024, height=(int)512, framerate=(fraction)60/1, format=(string)Y444
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1024, height=(int)512, framerate=(fraction)60/1
0:00:00.591685165 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3150:gst_pylonsrc_configure_start_acquisition:<pylonsrc0> With current settings the camera requires 51713215/500000000 B/s (51,7 out of 500,0 MB/s) of bandwidth.
0:00:00.592360695 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3163:gst_pylonsrc_configure_start_acquisition:<pylonsrc0> With these settings it will take approximately 5074 microseconds to grab each frame.
0:00:00.593454567 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3174:gst_pylonsrc_configure_start_acquisition:<pylonsrc0> The resulting framerate is 99 fps.
0:00:00.593516776 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3178:gst_pylonsrc_configure_start_acquisition:<pylonsrc0> Each frame is 524288 bytes big (0,5 MB). That's 51,7MB/s.
0:00:00.594363828 11191 0x55880734f0 DEBUG pylonsrc gstpylonsrc.c:3192:gst_pylonsrc_configure_start_acquisition:<pylonsrc0> Initialised successfully.
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264, codec_data=(buffer)01f40020ffe1001c67f4002091968040041b016a0c020a80000003008000003c478c195001000468ef3192, stream-format=(string)avc, alignment=(string)au, level=(string)3.2, profile=(string)high-4:4:4, width=(int)1024, height=(int)512, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)60/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)f40020, sprop-parameter-sets=(string)"Z/QAIJGWgEAEGwFqDAIKgAAAAwCAAAA8R4wZUA\=\=\,aO8xkg\=\=", payload=(int)96, ssrc=(uint)4254300681, timestamp-offset=(uint)2503102521, seqnum-offset=(uint)18043, a-framerate=(string)60
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)f40020, sprop-parameter-sets=(string)"Z/QAIJGWgEAEGwFqDAIKgAAAAwCAAAA8R4wZUA\=\=\,aO8xkg\=\=", payload=(int)96, ssrc=(uint)4254300681, timestamp-offset=(uint)2503102521, seqnum-offset=(uint)18043, a-framerate=(string)60
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, codec_data=(buffer)01f40020ffe1001c67f4002091968040041b016a0c020a80000003008000003c478c195001000468ef3192, stream-format=(string)avc, alignment=(string)au, level=(string)3.2, profile=(string)high-4:4:4, width=(int)1024, height=(int)512, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)60/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 2503106328
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 18043
0:00:28.939910110 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:00:28.948040273 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:00:28.959472084 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:00:28.974963697 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:00:28.982822721 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:34.497378308 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.519125082 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:34.539881889 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:34.639651694 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.661440516 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.672892040 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:34.682758900 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:34.694560860 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=4. Status=4, ErrorCode=-503315950
0:01:34.724566055 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.735965706 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:34.745564499 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:34.758631565 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=4. Status=4, ErrorCode=-503315950
0:01:34.768798333 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=5. Status=4, ErrorCode=-503315950
0:01:34.780248160 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=6. Status=4, ErrorCode=-503315950
0:01:34.919619457 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.972060972 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:34.994703471 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.002290939 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:35.096519993 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.125271506 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.142756171 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.151177443 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:35.159165461 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=4. Status=4, ErrorCode=-503315950
0:01:35.175101944 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=5. Status=4, ErrorCode=-503315950
0:01:35.185771536 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=6. Status=4, ErrorCode=-503315950
0:01:35.197942301 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=7. Status=4, ErrorCode=-503315950
0:01:35.211019799 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=8. Status=4, ErrorCode=-503315950
0:01:35.231042517 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.260058578 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.307510358 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.321079831 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.373291871 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.384220346 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.394368331 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:35.449747423 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.460381431 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.570018480 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:35.577983586 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:35.975087833 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:36.112529471 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:39.506636689 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=1. Status=4, ErrorCode=-503315950
0:01:39.528833773 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=2. Status=4, ErrorCode=-503315950
0:01:39.548308514 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=3. Status=4, ErrorCode=-503315950
0:01:39.563276632 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=4. Status=4, ErrorCode=-503315950
0:01:39.577229694 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=5. Status=4, ErrorCode=-503315950
0:01:39.587450288 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=6. Status=4, ErrorCode=-503315950
0:01:39.599048501 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=7. Status=4, ErrorCode=-503315950
0:01:39.625026887 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=8. Status=4, ErrorCode=-503315950
0:01:39.658620805 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=9. Status=4, ErrorCode=-503315950
0:01:39.671672575 11191 0x55880734f0 WARN pylonsrc gstpylonsrc.c:4136:gst_pylonsrc_create:<pylonsrc0> Failed capture count=10. Status=4, ErrorCode=-503315950
0:01:39.682158773 11191 0x55880734f0 ERROR pylonsrc gstpylonsrc.c:4142:gst_pylonsrc_create:<pylonsrc0> Error in the image processing loop. Status=4, ErrorCode=-503315950
0:01:39.682337847 11191 0x55880734f0 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<pylonsrc0> error: Internal data stream error.
0:01:39.682387864 11191 0x55880734f0 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<pylonsrc0> error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason error (-5)
Execution ended after 0:01:39.123190841
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:01:39.688247627 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4160:gst_pylonsrc_stop:<pylonsrc0> stop
0:01:39.712154144 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4215:pylonc_disconnect_camera:<pylonsrc0> Camera disconnected.
Setting pipeline to NULL ...
Freeing pipeline ...
0:01:39.714816134 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4171:gst_pylonsrc_dispose:<pylonsrc0> dispose
0:01:39.714971528 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4179:gst_pylonsrc_finalize:<pylonsrc0> finalize
0:01:39.817423067 11191 0x558803d8f0 DEBUG pylonsrc gstpylonsrc.c:4197:gst_pylonsrc_finalize:<pylonsrc0> Last object finalized
So I switched it up and went to try a really simple sink element:
GST_DEBUG=*:2,pylon*:6 gst-launch-1.0 -v pylonsrc width=1024 height=512 binningv=2 binningh=2 ! "video/x-raw,format=GRAY8,framerate=60/1" ! queue ! videoconvert ! ximagesink
and this one provided me with an output, so i can thus say that the plugin works but that my pipeline is erroneous. The question that remains now is how to get this ximagesink to an UDP stream that I can use with Nvidia deepstream.
Try increasing grab-timeout
property value to say 10k.t Also pipeline framerate (60/1) differs from camera framerate (99) try setting fps=60
. Your simple pipeline uses queue
, while the full one doesn't. I'm not using queues unless there are tees in pipeline, so I wonder why would you. Since you are using Jetson aren't there nvvidconv
and nvv4l2h264enc
plugins available? Probably software encoders and converters are too slow
Thank you for the tip, I looked into nvvidconv and have now piplines that can use filesink flawlessly. The performance is better than before width the normal videoconvert.
gst-launch-1.0 -v pylonsrc width=1024 height=512 binningv=2 binningh=2 ! "video/x-raw,format=GRAY8,framerate=60/1" ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=test.mp4 -e
gst-launch-1.0 pylonsrc width=1024 height=512 binningv=2 binningh=2 ! nvvidconv ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=test.mkv
I will now see how to take this into deepstream (with rtp/udp sink), but I think that this should now work.
By the way vertical flip can be done by pylonsrc
itself or by nvvidconv
I got an rtp stream working, thanks for the tips and the help.
sending:
gst-launch-1.0 -v udpsrc port=5000 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! decodebin ! videoconvert ! autovideosink sync=false
receiving
gst-launch-1.0 -v udpsrc port=5000 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! decodebin ! videoconvert ! autovideosink sync=false
Thank you for the tip, I looked into nvvidconv and have now piplines that can use filesink flawlessly. The performance is better than before width the normal videoconvert.
gst-launch-1.0 -v pylonsrc width=1024 height=512 binningv=2 binningh=2 ! "video/x-raw,format=GRAY8,framerate=60/1" ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=test.mp4 -e gst-launch-1.0 pylonsrc width=1024 height=512 binningv=2 binningh=2 ! nvvidconv ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=test.mkv
I will now see how to take this into deepstream (with rtp/udp sink), but I think that this should now work.
Hi @bramdecoster, did you ever get this to work with deepstream? I can use Gstreamer with the pylon plugin but deepstream doesn't seem to recognize pylonsrc.
Hi I am trying to get gstreamer working with a pylonsrc on an nvidia jetson NX. I got this plugin working for pylon but I can't get an output. I used the following gstreamer pipeline:
the output
I can see that he takes the setting of the camera when I load it up in the pylon viewer after I tried this. I tried running the pipeline with different resolutions, with and without binning. Does anyone know a solution for this problem, as far as I can see not a single frame grab worked. (the camera I am using is the https://www.baslerweb.com/en/products/cameras/area-scan-cameras/ace/aca2040-90umnir/)