Help to execute deepstream python sample apps over headless mode

hi,

(Jetson nano 4gb, jetpack 4.5.1 deepstream 5.1)

i want to execute deepstream python apps on headless mode.

for example, i want to execute

python3 deepstream_test_1_usb.py /dev/video0

and should be able to see the ouput window in headless mode.

i checked metropolis/deepstream/dev-guide/ for deepstream 5.1

i read, Running without an X server

i included following line in the file “dstest1_pgie_config”

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
bitrate=4000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
#set below properties in case of RTSPStreaming
rtsp-port=8554
udp-port=5400

Jetson and my laptop are connected to same network.

now how do i get the output over network stream and see it in vlc?

You need to enable this config by setting “enable=1”

may be i got confused? its written here i should set it to 0?

Disable egl sink group and enable rtsp group. The group you post here is the rtsp group.

thats my config file.

here is sample config file

i should copy [sink0] and paste it my test3 config file and modify the enable to 0, right?

Yes.
[sink0] enable=0
[sink2]enable=1

okay, i did the same

and here is output. there is some problem?

What do you mean? deepstream_test_1_usb.py has nothing to do with the deepstream config file.

deepstream config file is for the deepstream-app sample.

deepstream_test_1_usb.py does not need any config file.

Please read the python deepstream document instead. Python Sample Apps and Bindings Source Details — DeepStream 6.1.1 Release documentation

If you are not familiar with python gstreamer https://gstreamer.freedesktop.org/bindings/python.html, it is not recommended to use python deepstream. Please use c/c++ deepstream instead.

Even with c/c++ deepstream, you need to have the basic knowledge and development skills of gstreamer before you start with deepstream SDK.

1 Like

thank you for kind suggestion.

Seems like i need some studying.

Have a nice day! :)