Hi all,
I recently installed JetPack 4.4 using the SD card image method on my Nano, and downloaded the latest jetson-inference demo code. It looks like the code has been nicely refactored, with videoSource and videoOutput classes and also error logging - thank you!
Whereas under 4.2 I ended up spending a lot of time trying to connect my RTSP camera streams, I am now having trouble trying to get a simple display window to show up when running the stock jetson-inference python example demos.
I am using a HDMI monitor, not a remote connection (although I did enable xrdp and vncserver as part of the setup).
For example, here is the output of my-detection.py where I have replaced the csi source with my rtsp one:
[video] created gstDecoder from rtsp://user:pwd@192.168.1.27:554/Streaming/Channels/102
------------------------------------------------
gstDecoder video options:
------------------------------------------------
-- URI: rtsp://user:pwd@192.168.1.27:554/Streaming/Channels/102
- protocol: rtsp
- location: user:pwd@192.168.1.27
- port: 554
-- deviceType: ip
-- ioType: input
-- codec: h264
-- width: 640
-- height: 480
-- frameRate: 0.000000
-- bitRate: 0
-- numBuffers: 4
-- zeroCopy: true
-- flipMethod: none
-- loop: 0
------------------------------------------------
URI::Parse uri -- display://0
URI::Parse protocol: display, location: 0
[OpenGL] failed to open X11 server connection.
[OpenGL] failed to create X11 Window.
jetson.utils -- no output streams, creating fake null output
[gstreamer] opening gstDecoder for streaming, transitioning pipeline to GST_STATE_PLAYING
Same thing happens when running:
detectnet.py rtsp://user:pwd@192.168.1.27:554/Streaming/Channels/102
Interestingly, if I run the video-viewer demo, everything works as it should and the display window pops up with my camera stream:
-- zeroCopy: true
-- flipMethod: none
-- loop: 0
------------------------------------------------
URI::Parse uri -- display://0
URI::Parse protocol: display, location: 0
[OpenGL] glDisplay -- X screen 0 resolution: 2560x1440
[OpenGL] glDisplay -- X window resolution: 2560x1440
[OpenGL] glDisplay -- display device initialized (2560x1440)
[video] created glDisplay from display://0
------------------------------------------------
glDisplay video options:
------------------------------------------------
-- URI: display://0
- protocol: display
- location: 0
I have tried running the export Display=:0 command at the terminal but it did not make a difference.
Any suggestion as to what might be going on here?
Thanks,