GithubHelp home page GithubHelp logo

zingmars / gst-pylonsrc Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 7.0 42 KB

A gstreamer plugin for image capture from Basler's USB3 cameras. Please read the README before using.

License: Other

Makefile 0.54% Shell 0.50% M4 2.42% C 96.55%
gstreamer gst pylon basler usb3 plugin

gst-pylonsrc's Introduction

Hi there ๐Ÿ‘‹

gst-pylonsrc's People

Contributors

nibeh avatar zingmars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gst-pylonsrc's Issues

Mono8 to BGR24 conversion is getting failed

I have Basler acA1920-40gm camera. I need to convert mono8 video from camera to BGR24 in order to feed video into my application for further processing. First I tried with gst-launch-1.0 command to view stream from camera in PC.
gst-launch-1.0 -v pylonsrc width=1280 height=720 fps=10 imageformat=mono8 ! videoconvert ! 'video/x-raw,format=(string)BGR24' ! xvimagesink

Getting the following error
WARNING: erroneous pipeline: could not link videoconvert0 to xvimagesink0, videoconvert0 can't handle caps video/x-raw, format=(string)BGR24.
(If format is specified as YV12 it is working fine.)
pylon version : 5.1.0
Linux 18.04 64 bit.

pipeline for generating rtsp stream from pylon camera is failing

Hi,
Below is the command I am running, it is failing.
harendra@ubuntu:~/$ gst-launch-1.0 -v pylonsrc height=720 width=1280 fps=25 ! videoflip method=vertical-flip ! videoconvert ! x264enc ! rtph264pay name=pay0 pt=96

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstPylonSrc:pylonsrc0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = "video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ format\=\(string\)Y444\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = "video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ format\=\(string\)Y444\,\ pixel-aspect-ratio\=\(fraction\)1/1"
Redistribute latency...
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = "video/x-h264\,\ codec_data\=\(buffer\)01f4001fffe1001a67f4001f919b280a00b76022000003000200000300791e30632c01000668ebec448440\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ profile\=\(string\)high-4:4:4\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstRtpH264Pay:pay0.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\)f4001f\,\ sprop-parameter-sets\=\(string\)\"Z/QAH5GbKAoAt2AiAAADAAIAAAMAeR4wYyw\\\=\\\,aOvsRIRA\"\,\ payload\=\(int\)96\,\ ssrc\=\(uint\)277528337\,\ timestamp-offset\=\(uint\)153824638\,\ seqnum-offset\=\(uint\)11049\,\ a-framerate\=\(string\)30"
/GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:sink: caps = "video/x-h264\,\ codec_data\=\(buffer\)01f4001fffe1001a67f4001f919b280a00b76022000003000200000300791e30632c01000668ebec448440\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ profile\=\(string\)high-4:4:4\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstRtpH264Pay:pay0: timestamp = 153847583
/GstPipeline:pipeline0/GstRtpH264Pay:pay0: seqnum = 11049
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 0:00:10.726250733
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Contrast

How do i adjust contrast?
Do i need to add it myself?

limitbandwidth not implemented for all cameras?

Software: pylon 5.0.12 Camera Software Suite Linux x86 (64 bit)
Camera: acA720-520uc

When using the "limitbandwidth" parameter in the above setup I get:
WARNING: erroneous pipeline: could not set property "limitbandwidth" in element "pylonsrc0" to "off"

Is limitbandwidth not implemented for all cameras, or maybe got renamed?
I can see that a default camera bandwidthlimit of ~300MB/s is active.

Internal data stream error

Hi,

I'm fairly new to this gstreamer environment. I have a Basler Dart DaA2500-14uc camera, which I'm trying to use with your plugin. I got the plugin installed but when I try to use it I run into an error.
I'm not sure if I have wrong parameters for the pipeline or if it just doesn't work with this camera or what.

 GST_DEBUG=pylonsrc:5 gst-launch-1.0 pylonsrc imageformat=rgb8 ! videoconvert ! xvimagesink
0:00:00.023555791 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:397:gst_pylonsrc_init:<GstPylonsrc@0x561ac5b198e0> Initialising defaults
0:00:00.023627568 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:477:gst_pylonsrc_set_property:<pylonsrc0> Setting a property.
0:00:00.027650815 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:871:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.027706758 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:873:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.028473710 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:871:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.028509208 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:873:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.029213740 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:871:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.029247419 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:873:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.029968453 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:871:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.030003856 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:873:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
Setting pipeline to PAUSED ...
0:00:00.322640192 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:953:gst_pylonsrc_start:<pylonsrc0> pylonsrc: found 1 Basler device(s).
0:00:00.322752984 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2188:pylonc_connect_camera:<pylonsrc0> Connecting to the camera...
0:00:01.104606590 23212 0x561ac5aefb50              pylonsrc gstpylonsrc.c:2233:pylonc_print_camera_info:<pylonsrc0> Status: Using camera "daA2500-14uc" (serial number: 40011783, id: 0). Custom ID: None
0:00:01.109571007 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1064:gst_pylonsrc_start:<pylonsrc0> Max resolution is 2592x1944.
0:00:01.119576182 23212 0x561ac5aefb50              pylonsrc gstpylonsrc.c:1093:gst_pylonsrc_start:<pylonsrc0> Setting resolution to 2592x1944.
0:00:01.120048410 23212 0x561ac5aefb50 WARN                pylonsrc gstpylonsrc.c:1105:gst_pylonsrc_start:<pylonsrc0> The camera doesn't seem to allow offset centering. Skipping...
0:00:01.125322837 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1157:gst_pylonsrc_start:<pylonsrc0> Flipping X: False, Flipping Y: False.
0:00:01.125537505 23212 0x561ac5aefb50              pylonsrc gstpylonsrc.c:1217:gst_pylonsrc_start:<pylonsrc0> Using RGB8 image format.
0:00:01.157915881 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1228:gst_pylonsrc_start:<pylonsrc0> Pixel is 24 bits large.
0:00:01.158021521 23212 0x561ac5aefb50 WARN                pylonsrc gstpylonsrc.c:1248:gst_pylonsrc_start:<pylonsrc0> The camera doesn't support test image mode.
0:00:01.158041429 23212 0x561ac5aefb50 WARN                pylonsrc gstpylonsrc.c:1269:gst_pylonsrc_start:<pylonsrc0> Camera does not support changing the readout mode.
0:00:01.158143913 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1275:gst_pylonsrc_start:<pylonsrc0> Limiting camera's bandwidth.
0:00:01.161548144 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1337:gst_pylonsrc_start:<pylonsrc0> Setting light preset to Daylight 5000k (Daylight).
0:00:01.164393119 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1357:gst_pylonsrc_start:<pylonsrc0> Disabling automatic exposure.
0:00:01.165516549 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1381:gst_pylonsrc_start:<pylonsrc0> Disabling automatic gain.
0:00:01.166680824 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1405:gst_pylonsrc_start:<pylonsrc0> Disabling automatic white balance.
0:00:01.167849957 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1493:gst_pylonsrc_start:<pylonsrc0> Using the auto profile currently saved on the device.
0:00:01.167987874 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1507:gst_pylonsrc_start:<pylonsrc0> Using current settings for the colour red.
0:00:01.168006912 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1518:gst_pylonsrc_start:<pylonsrc0> Using current settings for the colour green.
0:00:01.168017278 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1529:gst_pylonsrc_start:<pylonsrc0> Using current settings for the colour blue.
0:00:01.168108934 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1664:gst_pylonsrc_start:<pylonsrc0> This camera doesn't support adjusting colours. Skipping...
0:00:01.168276076 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1786:gst_pylonsrc_start:<pylonsrc0> This camera doesn't support transforming colours. Skipping...
0:00:01.168400716 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1797:gst_pylonsrc_start:<pylonsrc0> Exposure property not set, using the saved exposure setting.
0:00:01.168487682 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1809:gst_pylonsrc_start:<pylonsrc0> Setting gain to 0.00
0:00:01.171548421 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1821:gst_pylonsrc_start:<pylonsrc0> Setting black level to 0.00
0:00:01.174865352 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1830:gst_pylonsrc_start:<pylonsrc0> Setting gamma to 1.00
0:00:01.195797557 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1874:gst_pylonsrc_start:<pylonsrc0> Basler's PGI is not supported. Skipping.
0:00:01.195872455 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1878:gst_pylonsrc_start:<pylonsrc0> Setting trigger mode.
0:00:01.198783503 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:1922:gst_pylonsrc_start:<pylonsrc0> Using "FrameStart" trigger selector. Software trigger mode is Off.
0:00:01.219962786 23212 0x561ac5aefb50 WARN                pylonsrc gstpylonsrc.c:2003:gst_pylonsrc_start:<pylonsrc0> Couldn't determine link speed.
0:00:01.220045167 23212 0x561ac5aefb50 WARN                pylonsrc gstpylonsrc.c:2015:gst_pylonsrc_start:<pylonsrc0> Couldn't determine sensor readout time.
0:00:01.220574243 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2025:gst_pylonsrc_start:<pylonsrc0> The resulting framerate is 2 fps.
0:00:01.220616757 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2026:gst_pylonsrc_start:<pylonsrc0> Each frame is 15116544 bytes big (15.1 MB). That's 31.9MB/s.
0:00:01.225357502 23212 0x561ac5aefb50              pylonsrc gstpylonsrc.c:2040:gst_pylonsrc_start:<pylonsrc0> Initialised successfully.
Pipeline is live and does not need PREROLL ...
0:00:01.226320876 23212 0x561ac5b2d140 DEBUG               pylonsrc gstpylonsrc.c:871:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:01.226432252 23212 0x561ac5b2d140 DEBUG               pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps:<pylonsrc0> The following caps were sent: video/x-raw, RGB, 2592x1944, variable fps.
Setting pipeline to PLAYING ...
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 not-negotiated (-4)
Execution ended after 0:00:00.000101969
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:01.227614958 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2118:gst_pylonsrc_stop:<pylonsrc0> stop
0:00:01.257343105 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2164:pylonc_disconnect_camera:<pylonsrc0> Camera disconnected.
Setting pipeline to NULL ...
Freeing pipeline ...
0:00:01.287594041 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2129:gst_pylonsrc_dispose:<pylonsrc0> dispose
0:00:01.287679337 23212 0x561ac5aefb50 DEBUG               pylonsrc gstpylonsrc.c:2137:gst_pylonsrc_finalize:<pylonsrc0> finalize

gst-pylonsrc not found

I tried to install your package by following the instructions:

  1. autogen.sh
  2. make
  3. sudo make install

and everything compiled fine, but gst-inspect can not find pylonsrc, and I'm not sure why.
I can clearly see libgstpylonsrc.la and libgstpylonsrc.so files in /usr/local/lib/gstreamer1.0 directory, and this folder is added to both PATH and LD_LIBRARY_PATH.

I am using gstreamer 1.8.3 and Ubuntu 16.04, can you please help me? Thank you

Bayer RG 8 supported?

Hi,

I have a acA720-520uc camera using Pylon 5 and can select "Bayer RG 8" in the PylonViewerApp.
When trying to use it with gst-pylonsrc, I get:
start:<pylonsrc0> error: Camera doesn't support Bayer8.
The pipeline works with rgb8 without issues.

I wonder if the "Bayer RG 8" format listed in the PylonViewerApp is somehow different from "bayer8" here?

Peter

Cannot find proper location on Jeston baord

I'm using Jetson board and cannot find gstreamer-1.0/ folder...
do you have any experience related with this?

To install manually you need copy, move or symlink the following files

./plugins/libgstpylonsrc.la
./plugins/.libs/libgstpylonsrc.so
to either of these locations:

~/.local/share/gstreamer-1.0/plugins/ if you only want your user to be able to use this plugin
/usr/local/lib/gstreamer-1.0/ if you want this plugin to be available to every user.
Note that these are the default locations which might be different if you installed gstreamer with a custom location prefix.

UDP Stream cuts out after one second

Hello, my name is Frank and i have been playing with your plugin for the last few weeks. I can successfully display my Basler camera on my host machine using xvimagesink. My goal is to be able to stream the cameras image over UDP with the lowest latency possible. After trying many different pipelines, I was finally able to send a UDP stream to another computer. The stream only comes up for about one second and then dies. This is the pipeline I am currently running:

gst-launch-1.0 -c -v pylonsrc imageformat=mono8 ! "video/x-raw,format=GRAY8" ! decodebin ! videoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=192.168.0.44 port=5000

As you can see it is nothing too crazy. I ran a GST_DEBUG=pylonsrc:5 command and go these results:

GST_DEBUG=pylonsrc:5 gst-launch-1.0 -c -v pylonsrc imageformat=mono8 ! "video/x-raw,format=GRAY8" ! decodebin ! videoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=192.168.0.44 port=5000
0:00:00.014948009 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:407:gst_pylonsrc_init:<GstPylonsrc@0x5627a37c38e0> Initialising defaults
0:00:00.014975256 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:489:gst_pylonsrc_set_property:<pylonsrc0> Setting a property.
0:00:00.018648026 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:895:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.018658038 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:897:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.018672705 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:895:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.018676089 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:897:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
0:00:00.018686528 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:895:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.018692039 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:897:gst_pylonsrc_get_caps:<pylonsrc0> Could not send caps - no camera connected.
Setting pipeline to PAUSED ...
0:00:00.277341070 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:977:gst_pylonsrc_start:<pylonsrc0> pylonsrc: found 1 Basler device(s).
0:00:00.277381749 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2224:pylonc_connect_camera:<pylonsrc0> Connecting to the camera...
0:00:00.453028250 25125 0x5627a3799530              pylonsrc gstpylonsrc.c:2269:pylonc_print_camera_info:<pylonsrc0> Status: Using camera "daA1600-60um" (serial number: 22720403, id: 0). Custom ID: None
0:00:00.453070418 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1067:gst_pylonsrc_start:<pylonsrc0> Setting horizontal binning to 1
0:00:00.466538411 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1070:gst_pylonsrc_start:<pylonsrc0> Setting vertical binning to 1
0:00:00.482873790 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1100:gst_pylonsrc_start:<pylonsrc0> Max resolution is 1600x1200.
0:00:00.487613002 25125 0x5627a3799530              pylonsrc gstpylonsrc.c:1129:gst_pylonsrc_start:<pylonsrc0> Setting resolution to 1600x1200.
0:00:00.487849165 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:1141:gst_pylonsrc_start:<pylonsrc0> The camera doesn't seem to allow offset centering. Skipping...
0:00:00.490453327 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1193:gst_pylonsrc_start:<pylonsrc0> Flipping X: False, Flipping Y: False.
0:00:00.490547673 25125 0x5627a3799530              pylonsrc gstpylonsrc.c:1253:gst_pylonsrc_start:<pylonsrc0> Using Mono8 image format.
0:00:00.506502190 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1264:gst_pylonsrc_start:<pylonsrc0> Pixel is 8 bits large.
0:00:00.506571957 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:1284:gst_pylonsrc_start:<pylonsrc0> The camera doesn't support test image mode.
0:00:00.506602598 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:1305:gst_pylonsrc_start:<pylonsrc0> Camera does not support changing the readout mode.
0:00:00.506836614 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1311:gst_pylonsrc_start:<pylonsrc0> Limiting camera's bandwidth.
0:00:00.508356259 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:1386:gst_pylonsrc_start:<pylonsrc0> This camera doesn't have any lightsource presets
0:00:00.508474011 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1393:gst_pylonsrc_start:<pylonsrc0> Disabling automatic exposure.
0:00:00.508996807 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1417:gst_pylonsrc_start:<pylonsrc0> Disabling automatic gain.
0:00:00.509485747 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:1458:gst_pylonsrc_start:<pylonsrc0> This camera doesn't support automatic white balance.
0:00:00.509529365 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1529:gst_pylonsrc_start:<pylonsrc0> Using the auto profile currently saved on the device.
0:00:00.509560342 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1700:gst_pylonsrc_start:<pylonsrc0> This camera doesn't support adjusting colours. Skipping...
0:00:00.509579753 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1822:gst_pylonsrc_start:<pylonsrc0> This camera doesn't support transforming colours. Skipping...
0:00:00.509664973 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1833:gst_pylonsrc_start:<pylonsrc0> Exposure property not set, using the saved exposure setting.
0:00:00.509738944 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1845:gst_pylonsrc_start:<pylonsrc0> Setting gain to 0.00
0:00:00.511129385 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1857:gst_pylonsrc_start:<pylonsrc0> Setting black level to 0.00
0:00:00.512892869 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1866:gst_pylonsrc_start:<pylonsrc0> Setting gamma to 1.00
0:00:00.527165833 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1910:gst_pylonsrc_start:<pylonsrc0> Basler's PGI is not supported. Skipping.
0:00:00.527186000 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1914:gst_pylonsrc_start:<pylonsrc0> Setting trigger mode.
0:00:00.528561322 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:1958:gst_pylonsrc_start:<pylonsrc0> Using "FrameStart" trigger selector. Software trigger mode is Off.
0:00:00.532853935 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:2039:gst_pylonsrc_start:<pylonsrc0> Couldn't determine link speed.
0:00:00.532874297 25125 0x5627a3799530 WARN                pylonsrc gstpylonsrc.c:2051:gst_pylonsrc_start:<pylonsrc0> Couldn't determine sensor readout time.
0:00:00.533073381 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2061:gst_pylonsrc_start:<pylonsrc0> The resulting framerate is 60 fps.
0:00:00.533092392 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2062:gst_pylonsrc_start:<pylonsrc0> Each frame is 1920000 bytes big (1.9 MB). That's 114.9MB/s.
0:00:00.535110592 25125 0x5627a3799530              pylonsrc gstpylonsrc.c:2076:gst_pylonsrc_start:<pylonsrc0> Initialised successfully.
Pipeline is live and does not need PREROLL ...
0:00:00.535302155 25125 0x5627a37d3630 DEBUG               pylonsrc gstpylonsrc.c:895:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.535332798 25125 0x5627a37d3630 DEBUG               pylonsrc gstpylonsrc.c:934:gst_pylonsrc_get_caps:<pylonsrc0> The following caps were sent: video/x-raw, GRAY8, 1600x1200, variable fps.
0:00:00.535379742 25125 0x5627a37d3630 DEBUG               pylonsrc gstpylonsrc.c:945:gst_pylonsrc_set_caps:<pylonsrc0> Setting caps to video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstPylonsrc:pylonsrc0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
New clock: GstSystemClock
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)1600, height=(int)1200, framerate=(fraction)0/1, format=(string)Y444
Redistribute latency...
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = video/x-raw, width=(int)1600, height=(int)1200, framerate=(fraction)0/1, format=(string)Y444
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad1: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1600, height=(int)1200, framerate=(fraction)0/1
0:00:00.604895874 25125 0x5627a37d3630 DEBUG               pylonsrc gstpylonsrc.c:895:gst_pylonsrc_get_caps:<pylonsrc0> Received a request for caps.
0:00:00.604931874 25125 0x5627a37d3630 DEBUG               pylonsrc gstpylonsrc.c:934:gst_pylonsrc_get_caps:<pylonsrc0> The following caps were sent: video/x-raw, GRAY8, 1600x1200, variable fps.
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264, codec_data=(buffer)01f40028ffe1001d67f40028919640190097b016a0202028000003000bb9aca00078c1924001000568ebcc4480, stream-format=(string)avc, alignment=(string)au, level=(string)4, profile=(string)high-4:4:4, width=(int)1600, height=(int)1200, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/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)f40028, sprop-parameter-sets=(string)"Z/QAKJGWQBkAl7AWoCAgKAAAAwALuaygAHjBkkA\=\,aOvMRIA\=", payload=(int)96, ssrc=(uint)1945388410, timestamp-offset=(uint)1437368984, seqnum-offset=(uint)32064
/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)f40028, sprop-parameter-sets=(string)"Z/QAKJGWQBkAl7AWoCAgKAAAAwALuaygAHjBkkA\=\,aOvMRIA\=", payload=(int)96, ssrc=(uint)1945388410, timestamp-offset=(uint)1437368984, seqnum-offset=(uint)32064
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, codec_data=(buffer)01f40028ffe1001d67f40028919640190097b016a0202028000003000bb9aca00078c1924001000568ebcc4480, stream-format=(string)avc, alignment=(string)au, level=(string)4, profile=(string)high-4:4:4, width=(int)1600, height=(int)1200, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 1437371943
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 32064
0:00:01.356149721 25125 0x5627a37d3630 ERROR               pylonsrc gstpylonsrc.c:2136:gst_pylonsrc_create:<pylonsrc0> Error in the image processing loop.
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:00:00.820767721
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:01.371119497 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2154:gst_pylonsrc_stop:<pylonsrc0> stop
0:00:01.422230471 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2200:pylonc_disconnect_camera:<pylonsrc0> Camera disconnected.
Setting pipeline to NULL ...
Freeing pipeline ...
0:00:01.423028394 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2165:gst_pylonsrc_dispose:<pylonsrc0> dispose
0:00:01.423061434 25125 0x5627a3799530 DEBUG               pylonsrc gstpylonsrc.c:2173:gst_pylonsrc_finalize:<pylonsrc0> finalize

The error message that comes up is "Error in the image processing loop."
I have looked at this in issue #5 but that solution did not work for me. I did exactly as instructed in that thread but it did not fix my issue.

This is the pipeline I am running on the external machine to display the UDP stream. I used it to play a recorded video file from the Basler camera and it works fine.

gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false

I am not sure if this is the correct way of doing things.Any help will be greatly appreciated.

Thank you,
Frank

HW triggering parameter

There are two modes for picture capture - trigger mode and continuous. Trigger mode asks for each frame seperately which while continuous mode makes the camera capture frames without software input. Continuous is default, but it can be disabled by setting the continuous parameter to false (default - true).
I'm trying to implement panorama video application using this api.

reading this, the Trigger mode sounds like hw triggering. then, should I set the trigger line parameters using pylonviewerapp, and then set the continuous=false in the gstreamer pipeline?

Thank you.

gstpylonsrc.c : Error in the image processing loop

I am using gst-pylonsrc for streaming Basler 1920 40 gm camera. I have added pylonsrc element and streaming video successfully. But after few min/few seconds stream stops and getting the following error.
"Error in the image processing loop"
I found that this error is coming when the grabresult is equal to failed even for single frame.
I want to skip this error and need to stream video continuously without any errors.
(Sometimes camera will stream for an hour and then throwing the error, and sometimes this happen within few seconds also.)

Kindly help me .

Related project gst-plugins-vision

Hello, I have a project gst-plugins-vision that contains many video source plugins for interfaces like Camera Link, GigE Vision, USB3 Vision, etc. I currently have support for GigE Vision via National Instruments IMAQdx, Matrox, Pleora, and IDS uEye. The last one only works with IDS uEye cameras, and the first four require a license (unless you have a Pleora-powered device).

I'm planning to create a plugin for Basler cameras, however I just came across your project here. I've been focusing on supporting Windows devices, though most plugins should be able to be built on Linux without too much effort (at least if the corresponding SDK supports it!). I imagine the same is true for your project, I believe Pylon should work nearly the same on Windows.

I use CMake for my build system (though might add support for meson soon), and would need to do so for your project. I'm opening this issue to get your thoughts on how best to incorporate your project. Just fork your code to my project (both are LGPL projects), or add CMake to your project and do any necessary fixes to get Windows supported.

Thanks for open sourcing your work!

Can't set continuous to false

Hi,
I can't seem to set continuous to false. Whenever I do it crashes.

gst-launch-1.0 pylonsrc imageformat=ycbcr422_8 continuous=0 width=1920 height=1080 ! videorate ! video/x-raw, framerate=5/1 ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
0:00:01.084715768 120211 0x55a38aedf990              pylonsrc gstpylonsrc.c:2235:pylonc_print_camera_info:<pylonsrc0> Status: Using camera "daA2500-14uc" (serial number: 40011783, id: 0). Custom ID: None
0:00:01.114690408 120211 0x55a38aedf990              pylonsrc gstpylonsrc.c:1093:gst_pylonsrc_start:<pylonsrc0> Setting resolution to 1920x1080.
0:00:01.119438100 120211 0x55a38aedf990              pylonsrc gstpylonsrc.c:1217:gst_pylonsrc_start:<pylonsrc0> Using YCbCr422_8 image format.
0:00:01.183060782 120211 0x55a38aedf990              pylonsrc gstpylonsrc.c:1920:gst_pylonsrc_start:<pylonsrc0> PylonC error: PylonC error #c2000005 'There is no node named 'AcquisitionStatusSelector'' (0xc2000005).

0:00:01.183179846 120211 0x55a38aedf990              pylonsrc gstpylonsrc.c:1920:gst_pylonsrc_start:<pylonsrc0> PylonC error: Function 'GenApiNodeMapGetNodeWithCheck' failed in source file '/home/jenkins/workspace/pylon_release_5.2/Pylon/PylonC/PylonC/ImplHelpers.h' line #226

ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3452): gst_base_src_start (): /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...

Camera couldn't prepare buffer in time. Probably Dead.

Hi,

I was wondering if have ever ran into this problem before? I created a new ubuntu VM and for some reason keep running into this error trying to use the basler camera. I know for sure the camera isn't dead. When i switch to my first VM with the same command everything works fine. I'm not sure where to look to resolve this issue.

gst-launch-1.0 pylonsrc imageformat=ycbcr422_8 width=1280 height=720 ! videorate ! video/x-raw, framerate=5/1 ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
0:00:01.290903935 16138 0x55a82c70f590              pylonsrc gstpylonsrc.c:2233:pylonc_print_camera_info:<pylonsrc0> Status: Using camera "daA2500-14uc" (serial number: 23145676, id: 0). Custom ID: None
0:00:01.331273863 16138 0x55a82c70f590              pylonsrc gstpylonsrc.c:1093:gst_pylonsrc_start:<pylonsrc0> Setting resolution to 1280x720.
0:00:01.338057008 16138 0x55a82c70f590              pylonsrc gstpylonsrc.c:1217:gst_pylonsrc_start:<pylonsrc0> Using YCbCr422_8 image format.
0:00:01.479749323 16138 0x55a82c70f590              pylonsrc gstpylonsrc.c:2040:gst_pylonsrc_start:<pylonsrc0> Initialised successfully.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:05.285173734 16138 0x55a82c707230              pylonsrc gstpylonsrc.c:2061:gst_pylonsrc_create:<pylonsrc0> Camera couldn't prepare the buffer in time. Probably dead.
ERROR: from element /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2695): gst_base_src_get_range (): /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0:
Subclass GstPylonsrc neither returned a buffer nor submitted a buffer list from its create function
Execution ended after 0:00:03.805648074
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

No such element or plugin 'pylonsrc'

I have compiled adn installed the libraries. but while running the following command
gst-inspect-1.0 pylonsrc

I am facing the issue and pylonsrc is not getting detected.

No such element or plugin 'pylonsrc'.

Any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.