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 - https://stackoverflow.com/questions/49135496/how-to-read-h264-stream-as-a-file-from-the-usb-webcam-directly-in-c-without-us

Hi ajaycs14,
nvDecInfer_detection is with h264 stream as source:

pDeviceWorker->addDecodeTask(cudaVideoCodec_H264);

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

pDeviceWorker->addCustomerTask(<b>USER_MODULE_IMPLEMENTATION</b>);