Not precisely right place to ask but I hope someone would be so kind.
I run gstreamer (very short one) on Jetson AGX Orin. I start from VS Code and I have selected Python3.8 with the interpreter. My problem is now that opening a gstreamer from my USB-camera I get nothing when running the python script from VS code.
But if I run the same code using sudo in a terminal, it works.
Can anyone help me how to figure out which package that seemingly is not installed as /usr or where the sudo is required? I would assume its either an installed package that is installed only to root or access rights to /dev/video0.
python3 test4.py
loop = 1
Traceback (most recent call last):
File “test4.py”, line 16, in
pipeline = Gst.parse_launch(
gi.repository.GLib.Error: gst_parse_error: no element “nvoverlaysink” (1)
Just checking the gstreamer installation:
sudo apt-get install gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-plugins-good
Reading package lists… Done
Building dependency tree
Reading state information… Done
gstreamer1.0-libav is already the newest version (1.16.2-2).
gstreamer1.0-plugins-bad is already the newest version (1.16.2-2.1ubuntu1).
gstreamer1.0-plugins-ugly is already the newest version (1.16.2-2build1).
gstreamer1.0-plugins-base is already the newest version (1.16.2-4ubuntu0.1).
gstreamer1.0-plugins-good is already the newest version (1.16.2-1ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
This approach works in python without sudo., though I have no clue on how to fix openCV for python. Should I reinstall it? I tried also with one of your docker images and I got other errors then so I rather also stick with this native installation without virtual env.
The thing is. All the tests done, as you can see on how I execute python, has been from terminal. I have not used Code at all during the tests. So this is totally related to opencv/gstreamer and how something is not possible to access as user and not sudo user. I start to be willing to re-flash the orin and start from scratch. Or perhaps test via a virtual environment.
I am unable to install sudo apt-get install -y python-gst-1.0
I dont know why sudo would make a difference in running the code, but clearly the python-gst pack does not exist.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python-gst-1.0
E: Couldn’t find any package by glob ‘python-gst-1.0’
E: Couldn’t find any package by regex ‘python-gst-1.0’
I have re-flashed the Jetson from scratch and installing now Jetpack.
Any tutorial to follow from nVidia on how to get Yolo and gstreamer working on Jetpack5.0.1 dp?
I got yolo working after alot of reinstallation of pytorch and torchvision, but then I endid up stuck on gstreamer.
So now I will start with Gstreamer and document my steps in detail and present them here.