Open aihamshikhomicro opened 1 year ago
failed to find/open file /proc/device-tree/model [gstreamer] gstEncoder -- detected board 'Jetson AGX Orin'
Hi @aihamshikhomicro, are you actually running this on AGX Orin, or what are you running it on?
Can you try using Chrome/Chromium as browser instead of Firefox?
and my question is how i can publish the IP camera with RTSP using WebRTC as same the example with the USB camera.
To use RTSP as the input stream instead of USB camera, you would specify your RTSP URL as the input stream like here:
https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-streaming.md#rtsp-input
video-viewer rtsp://$CAMERA_IP:1234 webrtc://@:8554/output
However I would recommend to get it working first with your USB camera
yes, I am running this command on AGX Orin. I am try with chrom and still the same result.
@aihamshikhomicro does it work over LAN, or is that WAN IP?
Can you post the browser console debug log (Ctrl+Shift+I) and the terminal log from your Jetson?
-- URI: v4l2:///dev/video0
-- URI: webrtc://@:8554/output
-- 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 message new-clock ==> pipeline0 [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> v4l2src0 [gstreamer] gstreamer message stream-start ==> pipeline0 [gstreamer] gstCamera -- onPreroll [gstreamer] gstBufferManager recieve caps: video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, 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=nv12 width=1280 height=720 size=1382400 [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer [cuda] allocated 4 ring buffers (1382400 bytes each, 5529600 bytes total) [cuda] allocated 4 ring buffers (8 bytes each, 32 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 [cuda] allocated 4 ring buffers (2764800 bytes each, 11059200 bytes total) video-viewer: captured 0 frames (1280x720) [OpenGL] glDisplay -- set the window size to 1280x720 [OpenGL] creating 1280x720 texture (GL_RGB8 format, 2764800 bytes) [cuda] registered openGL texture for interop access (1280x720, GL_RGB8, 2764800 bytes) [cuda] allocated 2 ring buffers (1382400 bytes each, 2764800 bytes total) [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING Opening in BLOCKING MODE [gstreamer] gstreamer changed state from NULL to READY ==> fakesink0 [gstreamer] gstreamer changed state from NULL to READY ==> queue0 [gstreamer] gstreamer changed state from NULL to READY ==> videotee [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter3 [gstreamer] gstreamer changed state from NULL to READY ==> rtph264pay0 [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter2 [gstreamer] gstreamer changed state from NULL to READY ==> encoder [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1 [gstreamer] gstreamer changed state from NULL to READY ==> vidconv [gstreamer] gstreamer changed state from NULL to READY ==> mysource [gstreamer] gstreamer changed state from NULL to READY ==> pipeline1 [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer changed state from READY to PAUSED ==> queue0 [gstreamer] gstreamer changed state from READY to PAUSED ==> videotee [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter3 [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] gstreamer changed state from READY to PAUSED ==> rtph264pay0 [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter2 [gstreamer] gstreamer changed state from READY to PAUSED ==> encoder [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1 [gstreamer] gstreamer changed state from READY to PAUSED ==> vidconv [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer changed state from READY to PAUSED ==> mysource [gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline1 [gstreamer] gstreamer message new-clock ==> pipeline1 [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> queue0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> videotee [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter3 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> rtph264pay0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter2 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> encoder [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> vidconv [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> mysource [gstreamer] gstEncoder -- new caps: video/x-raw, width=1280, height=720, format=(string)I420, framerate=30/1 video-viewer: captured 1 frames (1280x720) NvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 H264: Profile = 66, Level = 0 NVMEDIA: Need to set EMC bandwidth : 376000 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] gstreamer message stream-start ==> pipeline1 [gstreamer] gstreamer message latency ==> encoder [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer stream status ENTER ==> src video-viewer: captured 2 frames (1280x720) [gstreamer] gstreamer changed state from READY to PAUSED ==> fakesink0 [gstreamer] gstreamer message async-done ==> pipeline1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> fakesink0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pipeline1 video-viewer: captured 3 frames (1280x720) video-viewer: captured 4 frames (1280x720) video-viewer: captured 5 frames (1280x720) video-viewer: captured 6 frames (1280x720) video-viewer: captured 7 frames (1280x720) video-viewer: captured 8 frames (1280x720) video-viewer: captured 9 frames (1280x720) video-viewer: captured 10 frames (1280x720) video-viewer: captured 11 frames (1280x720) video-viewer: captured 12 frames (1280x720) video-viewer: captured 13 frames (1280x720) video-viewer: captured 14 frames (1280x720) video-viewer: captured 25 frames (1280x720) [OpenGL] glDisplay -- the window has been closed video-viewer: shutting down... [gstreamer] gstCamera -- stopping pipeline, transitioning to GST_STATE_NULL [gstreamer] gstCamera -- pipeline stopped [gstreamer] gstEncoder -- shutting down pipeline, sending EOS [gstreamer] gstEncoder -- transitioning pipeline to GST_STATE_NULL [gstreamer] gstEncoder -- pipeline stopped [webrtc] WebRTC server on port 8554 is shutting down [webrtc] WebRTC server thread stopped video-viewer: shutdown complete
and this is browser console debug log :
this is chrome browser console debug log :
Hi, How are you doing? Are there any updates, I appreciate your help
Hi @dusty-nv, is there any Update regarding this problem? I have the same problem (failed to find/open file /proc/device-tree/model) + OpenGL is'nt able to create a display window. I use the default jetson-inference container and video-viewer actually works fine locally, but when I try to use videoSource and videoOutput from jetson.utils with a WebRTC Output, I have this problem (Posted also on NVIDIA Forum: https://forums.developer.nvidia.com/t/opengl-failed-to-create-x11-window-when-using-videooutput-in-container/270118?u=maxim.hansen2000 )
@MOXHAN see my reply to your forum thread here:
哈喽这个问题解决了吗,使用docker启动的话
[gstreamer] gstEncoder -- codec not specified, defaulting to H.264 failed to find/open file /proc/device-tree/model @dusty-nv
Hi @dusty-nv,
I also have the same problem. I also have read your answer above in the nvidia developer forum but it does not really help. Do you have any guidance for those who are facing with this problem?
Here are the logs for your reference; https://pastebin.ubuntu.com/p/tGcj2jhQry/
Thanks for the collaboration. Bugra
Hi, I have an issue and one question: I run this command: $ video-viewer /dev/video0 webrtc://@:8554/output
and I got this output everything looks fine but I try to open the https://localhost:8554 in the browser i got an empty video element. but the video-viewer interface works good. However here is my log with failed to find/open file /proc/device-tree/model warning:
-- sslKey /jetson-inference/data/key.pem
[gstreamer] gstEncoder -- codec not specified, defaulting to H.264 failed to find/open file /proc/device-tree/model [gstreamer] gstEncoder -- detected board 'Jetson AGX Orin' [gstreamer] gstEncoder -- pipeline launch string: [gstreamer] appsrc name=mysource is-live=true do-timestamp=true format=3 ! nvvidconv name=vidconv ! video/x-raw(memory:NVMM) ! nvv4l2h264enc name=encoder bitrate=4000000 insert-sps-pps=1 insert-vui=1 idrinterval=30 maxperf-enable=1 ! video/x-h264 ! rtph264pay config-interval=1 ! application/x-rtp,media=video,encoding-name=H264,clock-rate=90000,payload=96 ! tee name=videotee ! queue ! fakesink [webrtc] WebRTC server started @ https://microorin1-desktop:8554 [webrtc] WebRTC server thread running... [webrtc] websocket route added /output [video] created gstEncoder from webrtc://@:8554/output
gstEncoder video options:
. . . . . . . video-viewer: captured 6150 frames (1280x720) video-viewer: captured 6175 frames (1280x720) video-viewer: captured 6200 frames (1280x720) video-viewer: captured 6225 frames (1280x720) video-viewer: captured 6250 frames (1280x720) video-viewer: captured 6275 frames (1280x720) video-viewer: captured 6300 frames (1280x720) video-viewer: captured 6325 frames (1280x720) video-viewer: captured 6350 frames (1280x720) video-viewer: captured 6375 frames (1280x720) video-viewer: captured 6400 frames (1280x720) video-viewer: captured 6425 frames (1280x720)
and my question is how i can publish the IP camera with RTSP using WebRTC as same the example with the USB camera.