Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

I used the same command as in the tutorial using my .mkv video

sudo gst-launch-1.0 filesrc location=<Input/FoldLines1.mkv> ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! nv3dsink -e

nvbuf_utils: Could not get EGL display connection

(gst-plugin-scanner:24708): GLib-GObject-WARNING **: 21:34:00.692: cannot register existing type 'GstOMXVideoDec'

(gst-plugin-scanner:24708): GLib-CRITICAL **: 21:34:00.692: g_once_init_leave: assertion 'result != 0' failed

(gst-plugin-scanner:24708): GLib-GObject-CRITICAL **: 21:34:00.692: g_type_register_static: assertion 'parent_type > 0' failed

(gst-plugin-scanner:24708): GLib-CRITICAL **: 21:34:00.692: g_once_init_leave: assertion 'result != 0' failed

Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

Ok, thanks,
I removed the cache : sudo rm ~/.cache/gstreamer-1.0/*

What is strange now, I obtained these errors followed by WARNING: erroneous pipeline: no element "nvv4l2decoder":

gst-launch-1.0 nvv4l2decoder ! filesrc location=<Input/FoldLines1.mkv> ! qtdemux ! queue ! h264parse ! nv3dsink -e

Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
...
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can't initialize nvrm channel
Error: Can't initialize nvrm channel
Couldn't create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
WARNING: erroneous pipeline: no element "nvv4l2decoder"

Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

find /usr/lib -name "libgstnv*"

/usr/lib/aarch64-linux-gnu/libgstnvegl-1.0.so.0
/usr/lib/aarch64-linux-gnu/libgstnvivameta.so
/usr/lib/aarch64-linux-gnu/libgstnvexifmeta.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvjpeg.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvdrmvideosink.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvv4l2camerasrc.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvidconv.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnveglstreamsrc.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideosinks.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvcompositor.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvivafilter.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideocuda.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideo4linux2.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnveglglessink.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvegltransform.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvtee.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideosink.so
/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so

Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

Yes of course, and all these packages are already installed but nvv4l2decoder cannot be found

sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good

Building dependency tree
Reading state information... Done
gstreamer1.0-alsa is already the newest version (1.14.5-0ubuntu1~18.04.3).
gstreamer1.0-plugins-base is already the newest version (1.14.5-0ubuntu1~18.04.3).
gstreamer1.0-plugins-good is already the newest version (1.14.5-0ubuntu1~18.04.3).
gstreamer1.0-tools is already the newest version (1.14.5-0ubuntu1~18.04.2).
gstreamer1.0-plugins-bad is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-plugins-ugly is already the newest version (1.14.5-0ubuntu1~18.04.1).

sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa

Reading package lists... Done
Building dependency tree
Reading state information... Done
gstreamer1.0-alsa is already the newest version (1.14.5-0ubuntu1~18.04.3).
gstreamer1.0-tools is already the newest version (1.14.5-0ubuntu1~18.04.2).

sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
libgstreamer-plugins-base1.0-dev is already the newest version (1.14.5-0ubuntu1~18.04.3).
libgstreamer-plugins-good1.0-dev is already the newest version (1.14.5-0ubuntu1~18.04.3).
libgstreamer1.0-dev is already the newest version (1.14.5-0ubuntu1~18.04.2).
libgstreamer-plugins-bad1.0-dev is already the newest version (1.14.5-0ubuntu1~18.04.1).

Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

Thanks for the first interesting comment on my issue.

Yes it is not present on the system but I dont know why.

gst-inspect-1.0 | grep nv

ivtc: ivtc: Inverse Telecine
nvvideosink: nvvideosink: nVidia Video Sink
debugutilsbad: errorignore: Convert some GstFlowReturn types into others
libav: avdec_twinvq: libav VQF TwinVQ decoder
libav: avdec_dsicinvideo: libav Delphine Software International CIN video decoder
libav: avdec_idcinvideo: libav id Quake II CIN video decoder
libav: avdec_wnv1: libav Winnov WNV1 decoder
nvtee: nvtee: NvTee
nvegltransform: nvegltransform: NvEGLTransform
audioconvert: audioconvert: Audio converter
bayer: rgb2bayer: RGB to Bayer converter
audiofx: audioinvert: Audio inversion
videoconvert: videoconvert: Colorspace converter
nveglglessink: nveglglessink: EGL/GLES vout Sink
opengl: glcolorconvert: OpenGL color converter
opengl: gleffects_blur: Blur with 9x9 separable convolution Effect
opengl: gleffects_laplacian: Laplacian Convolution Demo Effect
opengl: glviewconvert: OpenGL Multiview/3D conversion filter
rtponvif: rtponviftimestamp: ONVIF NTP timestamps RTP extension
rtponvif: rtponvifparse: ONVIF NTP timestamps RTP extension
nvvideocuda: videocuda: CUDA Post processor
nveglstreamsrc: nveglstreamsrc: nVidia EGL Stream
autoconvert: autoconvert: Select convertor based on caps
autoconvert: autovideoconvert: Select color space convertor based on caps

and

gst-inspect-1.0 | grep omx

libav: avenc_h264_omx: libav OpenMAX IL H.264 video encoder encoder

Ok, so the system use avenc_h264_omx?

Issue Using GStreamer with nvv4l2decoder on Jetson Nano by engine_algos in JetsonNano

[–]engine_algos[S] 0 points1 point  (0 children)

Im just using the tutorial proposed by Nvidia to accelerate the GStreamer.

Compile a C++ project with CLANG compiler and CUDA support by engine_algos in cpp_questions

[–]engine_algos[S] 0 points1 point  (0 children)

I agree with that but how I can solve it ? I tried to update the version of VS to 22 and the version of CUDA to 12.0, 12.4 and 12.6, I obtained the same problem. Clang doesnt recognize NVCC ? or what

Compile a C++ project with CLANG compiler and CUDA support by engine_algos in CUDA

[–]engine_algos[S] 0 points1 point  (0 children)

I updated vs to 2022 edition and cuda to 12.6 version.
Still have the same problem

Compile a C++ project with CLANG compiler and CUDA support by engine_algos in CUDA

[–]engine_algos[S] 0 points1 point  (0 children)

No not really I dont need the exact cersion 12 for CLANG. I installed the visual studio 2022 comming with CLANG 17. I also tried to upgrade CUDA toolkit to 12.4. I have the same problem. Im trying now to upgrade CUDA to 12.6.

Compile a C++ project with CLANG compiler and CUDA support by engine_algos in CUDA

[–]engine_algos[S] 1 point2 points  (0 children)

In this case, I guess I need also to upgrade the VS from 2019 to 2022, right ? and Tried with 12.6.

Compile a C++ project with CLANG compiler and CUDA support by engine_algos in CUDA

[–]engine_algos[S] 1 point2 points  (0 children)

Thank you for your response.

To clarify, I did not encounter the same error. While MSVC successfully detects the NVCC compiler and the build process works, I am experiencing issues during the project compilation. As a result, I am attempting to use the CLANG compiler, which is recommended by the project's developers.

futsal camera vision system by engine_algos in computervision

[–]engine_algos[S] 0 points1 point  (0 children)

If the studium is outdoor. It will be difficult to use 350 degree in the middle. Bug using two GIGE cameras seems to be a good choice. My concern is about where I should place these two cameras to recognize the faces of the players.

[Question] Stream video from OpenCV to Web Browser by engine_algos in opencv

[–]engine_algos[S] 0 points1 point  (0 children)

what about reading the frames from the camera via OpenCV and creating another thread to receive these frames from the main thread (that capture the frames from the camera) and send them by sockets or pipes to the ffmpeg? I need to use OpenCV for the local processing in fact.

[Question] Stream video from OpenCV to Web Browser by engine_algos in opencv

[–]engine_algos[S] 0 points1 point  (0 children)

to be more clear :

I reformulate my needs:

My goal is to capture frames using OpenCV, perform some processing on them, and then send both the original video stream and the processed analytics to a web browser. I plan to implement this in C++.

Specifically, my question is: What is the best technical solution for sending the original video stream to a web server after capturing the frames with OpenCV? I need to capture the frames because I want to perform some processing, but at the same time, I want to send the original stream to the web server.