Error during running video-viewer

Hello!

I meet error during running video-viewer. May I ask if any one know the reasons of the error? Also, May I ask they solution of it?

Remarks: I can start the docker successfully, but just meet error during running video-viewer.

Thank you!

Regards,
Anthony

want to provide the L4T version.

want to provide the jetpack version

Do you use an USB webcam?

Would you show your command to run it?

Hi Hiker,

Yes. I use USB camera. it is logitech c525. The command I use to start it is: video-viewer /dev/video0

Thank you.

Regards,
Anthony

check first,
$ v4l2-ctl --list-formats-ext --device=/dev/video0

then, choose proper resolution,
make sure whether 1280 x 720 @30 is provided.

Additionally, you’re running it on the local machine? or remote ssh?

Hi Hiker,

I am running it on the local machine. Also1280 x 720 @30 is provided. Thank you

Index : 1
Type : Video Capture
Pixel Format: ‘MJPG’ (compressed)
Name : Motion-JPEG
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)

Regards,
Anthony

export.txt (13.5 KB)

May I ask how to “choose proper resolution”? Thank you!

Hi,
Please make sure you execute $ export DISPLAY=:0(or 1) and can see display information in executing xrandr. The error looks to be in rendering frames.

Hi DaneLLL,
Thanks for the advices!
I have tried the commands “$ export DISPLAY=:0” or “$ export DISPLAY=:1”, and execute “xlrandr” before running “video-viewer /dev/video0”. However, the error is still the same. Could you please have a look in the images for details and give me some suggestions? Thank you so much!

Regards,
Anthony

Hi,
Please check if you can run this gstreamer command and see video preview:

gst-launch-1.0 videotestsrc is-live=1 ! nvvidconv ! ‘video/x-raw(memory:NVMM)’ ! nv3dsink

Would like to know if another EGL render works or not.

The command has run. Please find the below for the result.

Hi @sangwong416, can you try running glxinfo / glxgears to confirm the OpenGL drivers are still working?

apt-get update
apt-get install mesa-utils
glxinfo
glxgears

Also, you could try building from source to see if that behaves any different than the container.