Hi , I have installed DeepStream 5.0 SDK along with Python bindings , and after that I have downloaded python sample code from git. When I am trying to run already downloaded videos from Samples/Stream folder I am getting few errors.
System Configurations :
• Hardware Platform : Jetson
• JetPack Version : 4.4-b144
• Architecture: arm64
• DeepStream Version : 5.0
• TensorRT Version :7.1.3
• Cuda : 10.2
I used this Command: $ python3 deepstream_test_1.py ../../../samples/streams/sample_720p.h264
Error Output :
Creating Pipeline
Creating Source
Creating H264Parser
Creating Decoder
nvbuf_utils: Could not get EGL display connection
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink
Playing file ../../../samples/streams/sample_720p.h264
Traceback (most recent call last):
File "deepstream_test_1.py", line 266, in <module>
sys.exit(main(sys.argv))
File "deepstream_test_1.py", line 199, in main
streammux.set_property('width', 1920)
AttributeError: 'NoneType' object has no attribute 'set_property'
I tried to run other sample test cases but getting simillar errors.
You can directly run on desktop, or you could do like below:
export DISPLAY=:0 or 1
xrandr to see if display exported.
nvidia@nvidia-desktop:/opt/nvidia/deepstream/deepstream-5.0$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
1920x1080 60.00*+
1280x1024 75.03 60.00
1152x864 75.00
1024x768 75.03 60.01
800x600 75.00 60.32
720x400 70.04
640x480 75.00 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
then run your sample again.
Hi ,
I am connected to desktop and then tried your solutions -
xrandr
Output:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
1920x1080 60.00*+ 59.95 50.00
1600x900 60.00
1280x1024 75.03 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.01
800x600 75.00 60.32
720x576 50.00
720x480 59.94
720x400 70.04
640x480 75.00 59.94 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
After this I tried to run sample and still getting following error output =>
Creating Pipeline
Creating Source
Creating H264Parser
Creating Decoder
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink
Playing file /opt/nvidia/deepstream/deepstream-
5.0/samples/streams/sample_720p.h264
Traceback (most recent call last):
File "deepstream_test_1.py", line 266, in <module>
sys.exit(main(sys.argv))
File "deepstream_test_1.py", line 199, in main
streammux.set_property('width', 1920)
AttributeError: 'NoneType' object has no attribute 'set_property'
Hi,
I am facing same issue with Python samples on AGX Xavier. If I connect with SSH, I get EGL display error and if I connect Xavier to monitor, I get errors:
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink
Playing file /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264
Traceback (most recent call last):
File "deepstream_test_1.py", line 266, in <module>
sys.exit(main(sys.argv))
File "deepstream_test_1.py", line 199, in main
streammux.set_property('width', 1920)
AttributeError: 'NoneType' object has no attribute 'set_property'
Can you find plugin,
gst-inspect-1.0 nvstreammux
gst-inspect-1.0 pgie
gst-inspect-1.0 nvvidconv
gst-inspect-1.0 nvosd
your initial creating display context error gone after connect with monitor.
If you installed by Jetpack, and select install Deepstream, all components should be there, can you list /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/?
Please make sure Deepstream version compatible with Jetpack version, JP 4.4 GA support DS 5.0 GA, you can directly install deepstream through jetpack, there one option for it.
We are using DeepStream 5.0 only and the link I referred has installation instructions for the same on Jetson with DeepStream 5 and Jetpack 4.4.
I haven’t tried DeepStream 5 installation from JP 4.4 directly. Does that make any difference? Would you please suggest the best way to install DeepStream 5?
Not sure why you can’t detect the plugins, try remove the cache again,
rm ~/.cache/gstreamer-1.0/
if still not work, suggest install deepstream 5 through Jetpack, after that you can diretly use it.