TheImagingSource / tiscamera

The Linux SDK for The Imaging Source cameras.
https://www.theimagingsource.com
Apache License 2.0
299 stars 146 forks source link

GStreamer tcamsrc Content is Black Image #511

Closed engnfrc closed 1 year ago

engnfrc commented 1 year ago

Hello,

I've installed tiscamera v1.0.0.4005 onto a system running Ubuntu 20.04 / Linux 5.4.0-137-lowlatency. The camera I'm using is a "DFM 25GX236-ML". When I run "IC Capture" from Windows I see images from the camera without any issues. On the Linux machine when I try to capture using GStreamer I'm just presented with a black image, I've tried both pipelines below and get the same results. I've also tried dropping resolutions and framerates. I've also included below the output from tcam-ctrl -c 35710066, which shows that I'm using valid GStreamer configurations. I also included some verbose output from GStreamer. Any ideas what the issue might be?

gst-launch-1.0 -vv tcammainsrc serial=35710066 type=aravis ! video/x-bayer,format=gbrg,width=1920,height=1080,framerate=30/1 ! bayer2rgb ! videoconvert ! ximagesink

gst-launch-1.0 -vv tcammainsrc serial=35710066 type=aravis ! videoconvert ! ximagesink

tcam-ctrl -c 35710066

Available gstreamer-1.0 caps: video/x-raw,format=GRAY8,width=480,height=4,framerate={515625/21952,33/1,43/1,53/1,63/1,73/1,83/1,93/1,103/1,153/1,203/1,253/1,303/1,353/1,403/1,453/1,503/1,553/1,603/1,653/1,703/1,753/1,803/1,853/1,903/1,953/1,1003/1,1103/1,1203/1,1303/1,1403/1,1503/1,7425000/4753}; video/x-raw,format=GRAY8,width=640,height=480,framerate={6875/3136,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,99000/679}; video/x-raw,format=GRAY8,width=960,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,165000/1649}; video/x-raw,format=GRAY8,width=1280,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,165000/1649}; video/x-raw,format=GRAY8,width=1920,height=1080,framerate={1375/1344,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,46/1}; video/x-raw,format=GRAY8,width=1920,height=1200,framerate={34375/37184,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,207/5}; video/x-raw,format=GRAY8,width=[480,1920,16],height=[4,1200,4],framerate=[34375/37184,7425000/4753]; video/x-raw,format=GRAY8,binning=1x2,width=[480,1920,16],height=[4,600,4],framerate=[34375/19264,7425000/4753]; video/x-raw,format=GRAY8,binning=2x1,width=[480,960,16],height=[4,1200,4],framerate=[34375/37184,7425000/4753]; video/x-raw,format=GRAY8,binning=2x2,width=[480,960,16],height=[4,600,4],framerate=[34375/19264,7425000/4753]; video/x-raw,format=GRAY16_LE,width=480,height=4,framerate={515625/21952,33/1,43/1,53/1,63/1,73/1,83/1,93/1,103/1,153/1,203/1,253/1,303/1,353/1,403/1,453/1,503/1,553/1,603/1,653/1,703/1,753/1,3712500/4753}; video/x-raw,format=GRAY16_LE,width=640,height=480,framerate={6875/3136,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,49500/679}; video/x-raw,format=GRAY16_LE,width=960,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,82500/1649}; video/x-raw,format=GRAY16_LE,width=1280,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,82500/1649}; video/x-raw,format=GRAY16_LE,width=1920,height=1080,framerate={1375/1344,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,23/1}; video/x-raw,format=GRAY16_LE,width=1920,height=1200,framerate={34375/37184,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,207/10}; video/x-raw,format=GRAY16_LE,width=[480,1920,16],height=[4,1200,4],framerate=[34375/37184,3712500/4753]; video/x-raw,format=GRAY16_LE,binning=1x2,width=[480,1920,16],height=[4,600,4],framerate=[34375/19264,3712500/4753]; video/x-raw,format=GRAY16_LE,binning=2x1,width=[480,960,16],height=[4,1200,4],framerate=[34375/37184,3712500/4753]; video/x-raw,format=GRAY16_LE,binning=2x2,width=[480,960,16],height=[4,600,4],framerate=[34375/19264,3712500/4753]; video/x-bayer,format=gbrg,width=480,height=4,framerate={515625/21952,33/1,43/1,53/1,63/1,73/1,83/1,93/1,103/1,153/1,203/1,253/1,303/1,353/1,403/1,453/1,503/1,553/1,603/1,653/1,703/1,753/1,803/1,853/1,903/1,953/1,1003/1,1103/1,1203/1,1303/1,1403/1,1503/1,7425000/4753}; video/x-bayer,format=gbrg,width=640,height=480,framerate={6875/3136,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,99000/679}; video/x-bayer,format=gbrg,width=960,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,165000/1649}; video/x-bayer,format=gbrg,width=1280,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,80/1,90/1,100/1,165000/1649}; video/x-bayer,format=gbrg,width=1920,height=1080,framerate={1375/1344,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,46/1}; video/x-bayer,format=gbrg,width=1920,height=1200,framerate={34375/37184,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,207/5}; video/x-bayer,format=gbrg,width=[480,1920,16],height=[4,1200,4],framerate=[34375/37184,7425000/4753]; video/x-bayer,format=gbrg,binning=1x2,width=[480,1920,16],height=[4,600,4],framerate=[34375/19264,7425000/4753]; video/x-bayer,format=gbrg,binning=2x1,width=[480,960,16],height=[4,1200,4],framerate=[34375/37184,7425000/4753]; video/x-bayer,format=gbrg,binning=2x2,width=[480,960,16],height=[4,600,4],framerate=[34375/19264,7425000/4753]; video/x-bayer,format=gbrg16,width=480,height=4,framerate={515625/21952,33/1,43/1,53/1,63/1,73/1,83/1,93/1,103/1,153/1,203/1,253/1,303/1,353/1,403/1,453/1,503/1,553/1,603/1,653/1,703/1,753/1,3712500/4753}; video/x-bayer,format=gbrg16,width=640,height=480,framerate={6875/3136,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,60/1,70/1,49500/679}; video/x-bayer,format=gbrg16,width=960,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,82500/1649}; video/x-bayer,format=gbrg16,width=1280,height=720,framerate={34375/22848,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,30/1,40/1,50/1,82500/1649}; video/x-bayer,format=gbrg16,width=1920,height=1080,framerate={1375/1344,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,23/1}; video/x-bayer,format=gbrg16,width=1920,height=1200,framerate={34375/37184,2/1,3/1,4/1,5/1,6/1,7/1,8/1,9/1,10/1,11/1,12/1,13/1,14/1,15/1,16/1,17/1,18/1,19/1,20/1,207/10}; video/x-bayer,format=gbrg16,width=[480,1920,16],height=[4,1200,4],framerate=[34375/37184,3712500/4753]; video/x-bayer,format=gbrg16,binning=1x2,width=[480,1920,16],height=[4,600,4],framerate=[34375/19264,3712500/4753]; video/x-bayer,format=gbrg16,binning=2x1,width=[480,960,16],height=[4,1200,4],framerate=[34375/37184,3712500/4753]; video/x-bayer,format=gbrg16,binning=2x2,width=[480,960,16],height=[4,600,4],framerate=[34375/19264,3712500/4753]

GST_DEBUG=*:4 gst-launch-1.0 -e -vvv tcamsrc ! videoconvert ! ximagesink

0:00:00.000160385 2837575 0x5606ea264000 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.3 0:00:00.000241363 2837575 0x5606ea264000 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu 0:00:00.000289231 2837575 0x5606ea264000 INFO GST_INIT gst.c:605:init_pre: Linux hel-Nuvo 5.4.0-137-lowlatency #154-Ubuntu SMP PREEMPT Thu Jan 5 17:44:30 UTC 2023 x86_64 0:00:00.000731031 2837575 0x5606ea264000 INFO GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages 0:00:00.001777961 2837575 0x5606ea264000 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts 0:00:00.002313915 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.002509914 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.002542149 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.002588776 2837575 0x5606ea264000 INFO GST_REGISTRY gstregistry.c:1733:ensure_current_registry: reading registry cache: /home/hel/.cache/gstreamer-1.0/registry.x86_64.bin 0:00:00.027819242 2837575 0x5606ea264000 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/hel/.cache/gstreamer-1.0/registry.x86_64.bin in 0.025169 seconds 0:00:00.027901224 2837575 0x5606ea264000 INFO GST_REGISTRY gstregistry.c:1592:scan_and_update_registry: Validating plugins from registry cache: /home/hel/.cache/gstreamer-1.0/registry.x86_64.bin 0:00:00.029420369 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:1524:gst_plugin_ext_dep_extract_env_vars_paths: ignoring environment variable content 'localhost': either not an absolute path or not a path at all 0:00:00.029439672 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:1524:gst_plugin_ext_dep_extract_env_vars_paths: ignoring environment variable content '10.0': either not an absolute path or not a path at all 0:00:00.029956779 2837575 0x5606ea264000 INFO GST_REGISTRY gstregistry.c:1691:scan_and_update_registry: Registry cache has not changed 0:00:00.029970493 2837575 0x5606ea264000 INFO GST_REGISTRY gstregistry.c:1768:ensure_current_registry: registry reading and updating done, result = 1 0:00:00.029981268 2837575 0x5606ea264000 INFO GST_INIT gst.c:806:init_post: GLib runtime version: 2.64.6 0:00:00.029991983 2837575 0x5606ea264000 INFO GST_INIT gst.c:808:init_post: GLib headers version: 2.64.6 0:00:00.030000396 2837575 0x5606ea264000 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully 0:00:00.030037781 2837575 0x5606ea264000 INFO GST_PIPELINE gstparse.c:336:gst_parse_launch_full: parsing pipeline description 'tcamsrc ! videoconvert ! ximagesink ' 0:00:00.035099503 2837575 0x5606ea264000 INFO tcam-libtcam libtcam_base.cpp:63:print_setup_to_logger: The following library versions are used: Tcam: 1.0.0_master/dd20eed7_rev_4005 Aravis: 0.8_version_dd20eed7 Modules: gst_aravis_arvu3v_v4l2_libusb_tools_doc_tests 0:00:00.035146187 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsttcamsrc.so" loaded 0:00:00.035159001 2837575 0x5606ea264000 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "tcamsrc" 0:00:00.035452587 2837575 0x5606ea264000 INFO GST_DEVICE_PROVIDER_FACTORY gstdeviceproviderfactory.c:271:gst_device_provider_factory_get: getting device provider "tcammainsrcdeviceprovider" 0:00:00.035636053 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:GstTcamSrc@0x5606ea4c80d0 adding pad 'src' 0:00:00.036307693 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideoconvert.so" loaded 0:00:00.036323598 2837575 0x5606ea264000 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "videoconvert" 0:00:00.036583065 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:GstBaseTransform@0x5606ea4d70d0 adding pad 'sink' 0:00:00.036602132 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:GstBaseTransform@0x5606ea4d70d0 adding pad 'src' 0:00:00.037457635 2837575 0x5606ea264000 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstximagesink.so" loaded 0:00:00.037473019 2837575 0x5606ea264000 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "ximagesink" 0:00:00.037565884 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:GstBaseSink@0x5606ea4deae0 adding pad 'sink' 0:00:00.037596543 2837575 0x5606ea264000 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pipeline" 0:00:00.037684164 2837575 0x5606ea264000 INFO GST_PIPELINE grammar.y:648:gst_parse_perform_link: linking some pad of GstTcamSrc named tcamsrc0 to some pad of GstVideoConvert named videoconvert0 (0/0) with caps "(NULL)" 0:00:00.037696921 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element tcamsrc0:(any) to element videoconvert0:(any) 0:00:00.037706060 2837575 0x5606ea264000 INFO GST_PADS gstutils.c:1034:gst_pad_check_link: trying to link tcamsrc0:src and videoconvert0:sink 0:00:00.037719445 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.037733180 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.038662008 2837575 0x5606ea264000 INFO GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: tcamsrc0 and videoconvert0 in same bin, no need for ghost pads 0:00:00.038683061 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link tcamsrc0:src and videoconvert0:sink 0:00:00.038694092 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.038704646 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.039679107 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked tcamsrc0:src and videoconvert0:sink, successful 0:00:00.039689819 2837575 0x5606ea264000 INFO GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event 0:00:00.039697823 2837575 0x5606ea264000 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.039720825 2837575 0x5606ea264000 INFO GST_PIPELINE grammar.y:648:gst_parse_perform_link: linking some pad of GstVideoConvert named videoconvert0 to some pad of GstXImageSink named ximagesink0 (0/0) with caps "(NULL)" 0:00:00.039731270 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element videoconvert0:(any) to element ximagesink0:(any) 0:00:00.039741637 2837575 0x5606ea264000 INFO GST_PADS gstutils.c:1034:gst_pad_check_link: trying to link videoconvert0:src and ximagesink0:sink 0:00:00.039752183 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.040527567 2837575 0x5606ea264000 INFO GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: videoconvert0 and ximagesink0 in same bin, no need for ghost pads 0:00:00.040544408 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link videoconvert0:src and ximagesink0:sink 0:00:00.040554261 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:4237:gst_pad_peer_query: pad has no peer 0:00:00.041305288 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked videoconvert0:src and ximagesink0:sink, successful 0:00:00.041314631 2837575 0x5606ea264000 INFO GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event 0:00:00.041321880 2837575 0x5606ea264000 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding Setting pipeline to PAUSED ... 0:00:00.041369155 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.090610145 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to READY 0:00:00.090626554 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.090651092 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'ximagesink0' changed state to 2(READY) successfully 0:00:00.090664092 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.090672342 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to READY 0:00:00.090678415 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.090687025 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'videoconvert0' changed state to 2(READY) successfully 0:00:00.090693635 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:00.090752279 2837575 0x5606ea264000 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "tcammainsrc" 0:00:00.090824203 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:GstBaseSrc@0x5606ea4f82b0 adding pad 'src' 0:00:00.636829516 2837575 0x5606ea264000 INFO tcam-libtcam AravisDevice.cpp:669:auto_set_packet_size: Automatically set packet size to 2984 bytes 0:00:00.670578683 2837575 0x5606ea264000 INFO tcam-libtcam SoftwarePropertiesExposureAuto.cpp:38:generate_exposure_auto: Adding software ExposureAuto. 0:00:00.670691694 2837575 0x5606ea264000 INFO tcam-libtcam SoftwarePropertiesExposureAuto.cpp:104:generate_gain_auto: Adding software GainAuto. 0:00:00.671255509 2837575 0x5606ea264000 INFO tcam-libtcam SoftwarePropertiesExposureAuto.cpp:208:generate_auto_functions_roi: Adding software AutoFunctionsROI 0:00:00.671320472 2837575 0x5606ea264000 INFO tcam-libtcam SoftwarePropertiesBalanceWhite.cpp:40:generate_balance_white_auto: Adding BalanceWhiteAuto device based. 0:00:00.679215071 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to READY 0:00:00.679266417 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.679368816 2837575 0x5606ea264000 INFO GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad tcammainsrc0:src 0:00:00.679429627 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link tcammainsrc0:src and src:proxypad0 0:00:00.679462848 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked tcammainsrc0:src and src:proxypad0, successful 0:00:00.679491163 2837575 0x5606ea264000 INFO GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event 0:00:00.679527248 2837575 0x5606ea264000 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:00.679637942 2837575 0x5606ea264000 INFO tcamsrc gsttcamsrc.cpp:339:open_source_element: Opened device with serial: '35710066' type: 'aravis' 0:00:00.679695955 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next READY 0:00:00.679722905 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2621:gst_bin_element_set_state: skipping transition from READY to READY 0:00:00.679749545 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'tcammainsrc0' changed state to 2(READY) successfully 0:00:00.679779087 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to READY 0:00:00.679801181 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:00.679846229 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'tcamsrc0' changed state to 2(READY) successfully 0:00:00.679908169 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2660:gst_element_continue_state: committing state from NULL to READY, pending PAUSED, next PAUSED 0:00:00.679935417 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PAUSED pending) 0:00:00.679999025 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2668:gst_element_continue_state: continue state change READY to PAUSED, final PAUSED 0:00:00.680064501 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.680114892 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2959:gst_bin_change_state_func: child 'ximagesink0' is changing state asynchronously to PAUSED 0:00:00.680173938 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.680221021 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PAUSED 0:00:00.680246622 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.680284841 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'videoconvert0' changed state to 3(PAUSED) successfully 0:00:00.680311849 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.680362668 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:00.680437936 2837575 0x5606ea264000 INFO basesrc gstbasesrc.c:1373:gst_base_src_do_seek: seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:00.680544512 2837575 0x5606ea264000 INFO task gsttask.c:460:gst_task_set_lock: setting stream lock 0x5606ea4d8870 on task 0x5606ea594050 0:00:00.680592267 2837575 0x5606ea264000 INFO GST_PADS gstpad.c:6159:gst_pad_start_task: created task 0x5606ea594050 0:00:00.680804640 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PAUSED 0:00:00.680839313 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.680878004 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2995:gst_bin_change_state_func: child 'tcammainsrc0' changed state to 3(PAUSED) successfully without preroll 0:00:00.680909495 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PAUSED 0:00:00.680934312 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.680969377 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2995:gst_bin_change_state_func: child 'tcamsrc0' changed state to 3(PAUSED) successfully without preroll 0:00:00.680996291 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PAUSED 0:00:00.681021215 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:00.680984184 2837575 0x5606ea52d800 INFO GST_ELEMENT_PADS gstelement.c:925:gst_element_get_static_pad: no such pad 'sink' in element "tcammainsrc0" Pipeline is live and does not need PREROLL ... 0:00:00.681137608 2837575 0x5606ea52d800 FIXME default gstutils.c:3980:gst_pad_create_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0/GstTcamMainSrc:tcammainsrc0: camera-buffers = 10 /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0/GstTcamMainSrc:tcammainsrc0: num-buffers = -1 /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0/GstTcamMainSrc:tcammainsrc0: drop-incomplete-buffer = true /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0/GstTcamMainSrc:tcammainsrc0: do-timestamp = true Setting pipeline to PLAYING ... 0:00:00.682787258 2837575 0x5606ea264000 INFO GST_EVENT gstevent.c:1449:gst_event_new_latency: creating latency event 0:00:00.000000000 0:00:00.682841080 2837575 0x5606ea264000 INFO bin gstbin.c:2783:gst_bin_do_latency_func: configured latency of 0:00:00.000000000 0:00:00.682890562 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending PAUSED, desired next PLAYING 0:00:00.682930156 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2959:gst_bin_change_state_func: child 'ximagesink0' is changing state asynchronously to PLAYING 0:00:00.682977621 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current PAUSED pending VOID_PENDING, desired next PLAYING 0:00:00.683031582 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PLAYING 0:00:00.683071727 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.683154011 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'videoconvert0' changed state to 4(PLAYING) successfully 0:00:00.683227083 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PLAYING 0:00:00.683280458 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.683330455 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'tcammainsrc0' changed state to 4(PLAYING) successfully 0:00:00.683359220 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2688:gst_element_continue_state: completed state change to PLAYING 0:00:00.683385109 2837575 0x5606ea264000 INFO GST_STATES gstelement.c:2588:_priv_gst_element_state_changed: notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending) 0:00:00.683418803 2837575 0x5606ea264000 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child 'tcamsrc0' changed state to 4(PLAYING) successfully New clock: GstSystemClock 0:00:00.829287092 2837575 0x5606ea52dd80 INFO tcam-libtcam AravisDeviceStream.cpp:312:operator(): Unable to make aravis capture thread real time or high priority 0:00:00.829558028 2837575 0x5606ea52d800 INFO tcam-libtcam AravisDeviceStream.cpp:367:start_stream: Starting actual stream... 0:00:00.841385887 2837575 0x5606ea52d800 INFO tcammainsrc gsttcammainsrc.cpp:374:gst_tcam_mainsrc_set_caps: Successfully set caps to: video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1 0:00:00.841440029 2837575 0x5606ea52d800 INFO GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0/GstTcamMainSrc:tcammainsrc0.GstPad:src: caps = video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0.GstGhostPad:src: caps = video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1 0:00:00.842096628 2837575 0x5606ea52d800 INFO GST_EVENT gstevent.c:820:gst_event_new_caps: creating caps event video/x-raw, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1, format=(string)BGRx /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1, format=(string)BGRx /GstPipeline:pipeline0/GstXImageSink:ximagesink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1, format=(string)BGRx /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstTcamSrc:tcamsrc0.GstGhostPad:src.GstProxyPad:proxypad0: caps = video/x-raw, format=(string)GRAY16_LE, width=(int)1920, height=(int)1200, framerate=(fraction)34375/37184, pixel-aspect-ratio=(fraction)1/1

TIS-Stefan commented 1 year ago

Hello

can you please run gst-launch-1.0 tcambin ! video/x-raw,format=BGRx,width=640,height=480,framerate=30/1 ! videoconvert ! ximagesink

I do not expect a different result, but it is worth a test. Also please let me know which computer model you use.

engnfrc commented 1 year ago

Same result. Just a smaller black image.

This system is a rugged embedded system, Neousys Nuvo-5000 (https://www.neousys-tech.com/en/product/feature/mezio/nuvo-5000)

sudo lshw -short

H/W path Device Class Description system Nuvo-5000 (Skylake-S) /0 bus NVS-5000 /0/0 memory 128KiB BIOS /0/4 processor Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz /0/4/6 memory 128KiB L1 cache /0/4/7 memory 1MiB L2 cache /0/4/8 memory 8MiB L3 cache /0/5 memory 128KiB L1 cache /0/26 memory 8GiB System Memory /0/26/0 memory 4GiB SODIMM DDR4 Synchronous 2133 MHz (0.5 ns) /0/26/1 memory [empty] /0/26/2 memory 4GiB SODIMM DDR4 Synchronous 2133 MHz (0.5 ns) /0/26/3 memory [empty] /0/120 generic /0/100 bridge Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers /0/100/2 display HD Graphics 530 /0/100/14 bus 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller /0/100/14/0 usb1 bus xHCI Host Controller /0/100/14/0/5 bus USB 2.0 Hub /0/100/14/0/5/2 multimedia HD USB Camera /0/100/14/0/5/3 multimedia HD USB Camera /0/100/14/0/5/4 multimedia HD USB Camera /0/100/14/0/6 bus USB 2.0 Hub /0/100/14/0/6/1 generic Microchip Vendor Example Device /0/100/14/0/6/4 communication u-blox 7 - GPS/GNSS Receiver /0/100/14/0/a bus HighSpeed Hub /0/100/14/0/a/1 multimedia H264 USB Camera /0/100/14/0/a/2 multimedia H264 USB Camera /0/100/14/0/a/3 multimedia H264 USB Camera /0/100/14/0/c bus HighSpeed Hub /0/100/14/0/c/1 input Dell KB216 Wired Keyboard /0/100/14/0/c/2 input USB Optical Mouse /0/100/14/1 usb2 bus xHCI Host Controller /0/100/16 communication 100 Series/C230 Series Chipset Family MEI Controller #1 /0/100/16.3 communication 100 Series/C230 Series Chipset Family KT Redirection /0/100/17 scsi3 storage Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] /0/100/17/0.0.0 /dev/sda disk 1TB Samsung SSD 850 /0/100/17/0.0.0/1 /dev/sda1 volume 31MiB BIOS Boot partition /0/100/17/0.0.0/2 /dev/sda2 volume 40GiB EXT4 volume /0/100/17/0.0.0/3 /dev/sda3 volume 891GiB EXT4 volume /0/100/1c bridge 100 Series/C230 Series Chipset Family PCI Express Root Port #3 /0/100/1c/0 enp1s0 network I210 Gigabit Network Connection /0/100/1c.4 bridge 100 Series/C230 Series Chipset Family PCI Express Root Port #5 /0/100/1c.4/0 enp2s0 network I210 Gigabit Network Connection /0/100/1c.5 bridge 100 Series/C230 Series Chipset Family PCI Express Root Port #6 /0/100/1c.5/0 enp3s0 network I210 Gigabit Network Connection /0/100/1c.6 bridge 100 Series/C230 Series Chipset Family PCI Express Root Port #7 /0/100/1c.6/0 enp4s0 network I210 Gigabit Network Connection /0/100/1c.7 bridge 100 Series/C230 Series Chipset Family PCI Express Root Port #8 /0/100/1c.7/0 enp5s0 network I210 Gigabit Network Connection /0/100/1f bridge Q170 Chipset LPC/eSPI Controller /0/100/1f.2 memory Memory controller /0/100/1f.3 multimedia 100 Series/C230 Series Chipset Family HD Audio Controller /0/100/1f.4 bus 100 Series/C230 Series Chipset Family SMBus /0/100/1f.6 enp0s31f6 network Ethernet Connection (2) I219-LM /0/1 system PnP device PNP0c02 /0/2 system PnP device PNP0c02 /0/3 system PnP device PNP0c02 /0/6 system PnP device PNP0c02 /0/7 system PnP device PNP0b00 /0/8 generic PnP device INT3f0d /0/9 input PnP device PNP0303 /0/a communication PnP device PNP0501 /0/b communication PnP device PNP0501 /0/c communication PnP device PNP0501 /0/d communication PnP device PNP0501 /0/e system PnP device PNP0c02 /0/f system PnP device PNP0c02 /1 power CRB Battery 0 /2 power OEM Define 5 /3 usb3 bus USB/IP Virtual Host Controller /3/1 multimedia USB 2.0 Camera /3/2 multimedia USB 2.0 Camera /3/3 multimedia USB 2.0 Camera /4 usb4 bus USB/IP Virtual Host Controller

engnfrc commented 1 year ago

I figured it out, my NIC was defaulting to an mtu of 1500 and I changed it to 9000 using: sudo ip link set dev enp0s31f6 mtu 9000. Searching through the documentation I see there's a brief mention of this setting on the Troubleshooting page (https://www.theimagingsource.com/documentation/tiscamera/troubleshooting.html?highlight=mtu).

TIS-Stefan commented 1 year ago

Thank you for letting us know.