I can't run deepstream with rasberrypi cam v2

i don’t know how to modify deepstream_app_config.txt (found at GitHub - marcoslucianops/DeepStream-Yolo: NVIDIA DeepStream SDK 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models) so yolo runs on my rasberry pi cam v2, not on the generic video (uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4).
i checked, my cam runs perfectly with this command (outside deepstrem) : $ gst-launch-1.0 nvarguscamerasrc sensor_mode=0 ! ‘video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e

solved the problem
the code i inserted :
[source0]
enable=1
type=5 #(CSI camera)
camera-width=640
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-csi-sensor-id=0

[sink0]…

Thanks for the update, Is this still an DeepStream issue to support? Thanks!

i have run in another problem since than :
my rasberry pi cam v2 stream is upside down
i ve try to modify the documents specyfied here : Jetson Nano CSI Raspberry Pi Camera V2 upside down video when run an example with deepstream-app - #4 by mherrera by DaneLLL but i get the following error when trying to make :

Package json-glib-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing json-glib-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'json-glib-1.0' found Package json-glib-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing json-glib-1.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘json-glib-1.0’ found
cc -c -o deepstream_app.o -DPLATFORM_TEGRA -I./ -I…/…/apps-common/includes -I…/…/…/includes -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I /usr/local/cuda-11.4/include deepstream_app.c
deepstream_app.c:23:10: fatal error: gst/gst.h: No such file or directory
23 | include <gst/gst.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:69: deepstream_app.o] Error 1
i use deepstream-6.2 and i saw that that patch was for deepstream-4.2 but i didn’t found anything newer and i faced the same problem

please refer to “1. Prerequisites:” in opt\nvidia\deepstream\deepstream\sources\apps\sample_apps\deepstream-app\README

@fanzh
thanks i have installed the libs and i’ve run make and the cam still didn’t rotate the image…
what can i do ?

I suggest using gst-launch to debug first, then port the pipeline to code. please refer to this command-line. it can rotate the image.

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=200 ! nvvideoconvert flip-method=6 ! nv3dsink

@fanzh my camera is rotated correctly when i try to open it form command line (with gst launch ) , the problem is when i open it using deepstream it is upside-down , and from my understanding ‘flip-method’ dosen’t work with deepstream.

deepstream app is opensource. you can modify create_camera_source_bin in opt\nvidia\deepstream\deepstream-6.3\sources\apps\apps-common\src\deepstream_source_bin.c. you only need to set flip-method property in nvvidconv2’s capsfilter.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.