Cap_gstreamer.cpp, Gstreamer not working

I have down loaded program from GitHub - saimj7/People-Counting-in-Real-Time: People Counting in Real-Time with an IP camera.. Following observation and looking for solution to problem…
Video streaming working fine. nvcc --version responded fine.
People-counting working fine with demo video.
Not starting video streaming getting following error.
[INFO] Starting the live stream…
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

Both cap_gstreamer.cpp and cap.cpp file copied in created folder file path --/home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/ . Please help/inform, how to make use of it and make it working.

It seems like your source is a RTSP source. If yes, please apply the URI to this sample and give it a try:
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL

Video streaming is working separately. With sample program above error getting. Also cap_gstreamer.cpp is not being linked. How to link and made use of it.

Are you able to contact GitHub owner to get further suggestion? We don’t actually have experience about using this sample.

If your use-case is to run deep learning inferences, may consider use DeepStream SDK.

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