Closed tonylau2010 closed 2 years ago
Hi @tonylau2010, are you able to run video-viewer.py /dev/video0
? Can you provide me the full terminal log from it?
You might want to run detectnet.py with --headless
flag to see if it's related to the rendering/display.
@dusty-nv Thanks a Lot for your reply! The log is as follows,when do this: sudo video-viewer.py /dev/video1 tony-nano@tonynano-desktop:~/Downloads/readyZip/jetson-inference/build/aarch64/bin$ sudo video-viewer.py /dev/video1 nvbuf_utils: Could not get EGL display connection [gstreamer] initialized gstreamer, version 1.14.5.0 [gstreamer] gstCamera -- attempting to create device v4l2:///dev/video1
(python3:10444): GStreamer-CRITICAL **: 21:38:51.850: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed
-- URI: v4l2:///dev/video1
-- URI: display://0
[gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[gstreamer] gstreamer changed state from NULL to READY ==> v4l2src0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> v4l2src0
[gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer message new-clock ==> pipeline0
[gstreamer] gstreamer message stream-start ==> pipeline0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> v4l2src0
[gstreamer] gstCamera -- onPreroll
[gstreamer] gstBufferManager recieve caps: video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, colorimetry=(string)2:4:5:1, interlace-mode=(string)progressive
[gstreamer] gstBufferManager -- recieved first frame, codec=raw format=yuyv width=640 height=480 size=614400
RingBuffer -- allocated 4 buffers (614400 bytes each, 2457600 bytes total)
RingBuffer -- allocated 4 buffers (921600 bytes each, 3686400 bytes total)
[gstreamer] gstreamer changed state from READY to PAUSED ==> mysink
[gstreamer] gstreamer message async-done ==> pipeline0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> mysink
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pipeline0
[OpenGL] glDisplay -- set the window size to 640x480
[OpenGL] creating 640x480 texture (GL_RGB8 format, 921600 bytes)
[cuda] unknown error (error 999) (hex 0x3E7)
[cuda] /home/tony-nano/Downloads/readyZip/jetson-inference/utils/display/glTexture.cpp:360
[cuda] unknown error (error 999) (hex 0x3E7)
[cuda] /home/tony-nano/Downloads/readyZip/jetson-inference/utils/cuda/cudaYUV-YUYV.cu:160
[cuda] unknown error (error 999) (hex 0x3E7)
[cuda] /home/tony-nano/Downloads/readyZip/jetson-inference/utils/cuda/cudaColorspace.cpp:75
[cuda] unknown error (error 999) (hex 0x3E7)
[cuda] /home/tony-nano/Downloads/readyZip/jetson-inference/utils/codec/gstBufferManager.cpp:383
[gstreamer] gstBufferManager -- unsupported image format (rgb8)
[gstreamer] supported formats are:
[gstreamer] rgb8
[gstreamer] rgba8
[gstreamer] rgb32f
[gstreamer] rgba32f
[gstreamer] gstDecoder -- failed to retrieve next image buffer
Traceback (most recent call last):
File "/usr/local/bin/video-viewer.py", line 51, in
Reopen now,the problem is still occur
Hmm I'm not entirely sure, what's the camera you are using?
Do you have a different camera you could try?
Thanks a lot,camera is not supported,changeing one is working.The problem is solved! @dusty-nv
Hi! Would you help me,if similar/same err is occured? Thanks s lot!
When I try to detect objection using the maner as follows: https://github.com/dusty-nv/jetson-inference/blob/master/docs/detectnet-camera-2.md
After that: ./detectnet.py /dev/video0 # V4L2 camera
The Log is as follows:(and the script is stopped,then the new window is crash) detected 1 objects in image