Gstreamer issue

Actually I have a Jetson orin nano Developer kit and I have the Gstreamer(version:1.20.3) but I am not able to enable it with the opencv build even if I am enabling it in the build its not enabled after the build is complete

Hi,
Please install the OpenCV package(in SDK Components) through SDKManager. The default package has gstreamer be enabled. The latest release for Orin Nano is Jetpack 6.2.

can u provide me with the link of jetpack 6.2

You can execute the below command to install full jetpack on your unit.

Sudo apt-get install jetpack

You should have internet connection working on your unit

i have it already installed should i uninstall and reinstall this?

Hi,
Please replacev4l2src with videotestsrc is-live=1 in the sample:
V4l2src using OpenCV Gstreamer is not working in Jetson Xavier NX - #3 by DaneLLL

And give it a run. It should be run successfully if you use default OpenCV package.


This is the build information and here it indicates the gstreamer is not enabled even after enabling it during the build I want to enable it as I am using gstreamer pipeline

Hi,
If you use default OpenCV package, it should look like:

General configuration for OpenCV 4.8.0 =====================================
  Version control:               4.8.0-1-g6371ee1

  Platform:
    Timestamp:                   2023-08-29T05:11:38Z
    Host:                        Linux 5.15.111-tegra aarch64
    CMake:                       3.22.1
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/gmake
    Configuration:               Release

  CPU/HW features:
    Baseline:                    NEON FP16

  C/C++:
    Built as dynamic libs?:      YES
    C++ standard:                11
    C++ Compiler:                /usr/bin/c++  (ver 11.4.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Wreturn-type -Wnon-virt
ual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declara
tions -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthro
ugh=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-point
er -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlin
es-hidden -fstack-protector-strong -fPIC -O3 -DNDEBUG  -DNDEBUG -D_FORTIFY_SOURC
E=2
    C++ flags (Debug):           -fsigned-char -W -Wall -Wreturn-type -Wnon-virt
ual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declara
tions -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthro
ugh=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-point
er -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlin
es-hidden -fstack-protector-strong -fPIC -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/bin/cc
    C flags (Release):           -fsigned-char -W -Wall -Wreturn-type -Waddress
-Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-pro
totypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wunini
tialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostic
s-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections
   -fvisibility=hidden -fstack-protector-strong -fPIC -O3 -DNDEBUG  -DNDEBUG -D_
FORTIFY_SOURCE=2
    C flags (Debug):             -fsigned-char -W -Wall -Wreturn-type -Waddress
-Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-pro
totypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wunini
tialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostic
s-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections
   -fvisibility=hidden -fstack-protector-strong -fPIC -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -Wl,--gc-sections -Wl,--as-needed -Wl,--no-unde
fined  -z noexecstack -z relro -z now
    Linker flags (Debug):        -Wl,--gc-sections -Wl,--as-needed -Wl,--no-unde
fined  -z noexecstack -z relro -z now
    ccache:                      NO
    Precompiled headers:         NO
    Extra dependencies:          dl m pthread rt
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core dnn features2d flann gapi highgui
imgcodecs imgproc ml objdetect photo python3 stitching ts video videoio
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 java python2
    Applications:                tests perf_tests examples apps
    Documentation:               NO
    Non-free algorithms:         NO

  GUI:                           GTK2
    GTK+:                        YES (ver 2.24.33)
      GThread :                  YES (ver 2.72.4)
      GtkGlExt:                  NO

  Media I/O:
    ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
    JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
    WEBP:                        build (ver encoder: 0x020f)
    PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.3
7)
    TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 /
 4.3.0)
    JPEG 2000:                   build (ver 2.5.0)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    FFMPEG:                      YES
      avcodec:                   YES (58.134.100)
      avformat:                  YES (58.76.100)
      avutil:                    YES (56.70.100)
      swscale:                   YES (5.9.100)
      avresample:                NO
    GStreamer:                   YES (1.20.3)
    v4l/v4l2:                    YES (linux/videodev2.h)

  Parallel framework:            TBB (ver 2021.5 interface 12050)

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       YES (ver 3.4.0)
    Custom HAL:                  YES (carotene (ver 0.0.1))
    Protobuf:                    build (3.19.1)
    Flatbuffers:                 builtin/3rdparty (23.5.9)

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.18)
    Libraries:                   NO
    numpy:                       NO (Python wrappers can not be generated)
    install path:                -

  Python 3:
    Interpreter:                 /usr/bin/python3 (ver 3.10.12)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.10.so (ve
r 3.10.12)
    numpy:                       /usr/lib/python3/dist-packages/numpy/core/inclu
de (ver 1.21.5)
    install path:                lib/python3.10/dist-packages/cv2/python-3.10

  Python (for build):            /usr/bin/python2.7

  Java:
    ant:                         NO
    Java:                        NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    /usr/local
-----------------------------------------------------------------

You may consider re-flash the system for a try.

And please ensure these are installed:

Accelerated GStreamer — NVIDIA Jetson Linux Developer Guide
Accelerated GStreamer — NVIDIA Jetson Linux Developer Guide

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.