How to read h264 stream for DeepStream SDK sample projects?

The deep stream SDK sample codes work only for video files(correct me if i am wrong), but not for streaming video from the webcam.

Is there any quick trick to make sample code to work for Video Stream from the WebCam?

  1. We are using c920 Logitech webcam
  2. The sample code we are interested in nvDecInfer_detection in the SDK folder

We have posted the similar question on this link -

Hi ajaycs14,
nvDecInfer_detection is with h264 stream as source:


You need to implement your source as a module and replace above line with: