How can I feeding packets from RTSP streams.

Currently I am using DeepStream ver.1.0 with P4 device.

All samples in deepstream package using h264 raw stream file.

And DeepStream platform, dataProvider.h is packet feeder to Decoder module.

I want attach the rtsp stream usecase to nvDecInfer_detection sample.
(Input will be RTSP URL. And stream set 720p, h264)

What module is the best way to solve my problem?

  • Study NVIDIA Video Codec SDK and apply to dataProvider.h
  • Or Study Live555 RTSP example, And apply to dataProvider.h
  • I think study ffmpeg is another option, but decoding is useless in my usecase.

Please check this plan and other recommandation.

Hi daffiko,
If you don’t need HW acceleration decoding in your case, you can go Live555 or ffmpeg. We support ffmpeg with HW acceleration but it can be disabled.

Thank you for reply.

I’ll check Live555 rtsp parser and apply to dataProvider.

Is there any plan to RTSP URL interface in NVIDIA Tesla DeepStream?

I checked DeepStream for Jetson, There exists RTSP interface.
But DeepStream platform for Jetson is different from Tesla DeepStream. (GSTreamer based)

Thank you.

initialize ffmpeg with

avformat_network_init();

avformat_open_input(…, url, …);
until
av_read_frame(…, &pkt);
and feed deepstream with pkt->data pkt->size.

haifengli’s advices was helpful, too.

Thank you.

I want attach the rtsp stream usecase to nvDecInfer_detection sample. I do not known how to input the RTSP stream to deepstream in the P4. Can you give me some codes for the RTSP URL interface in NVIDIA Tesla DeepStream?
Thanks

@wwlaoxi you need to use FFMPEGs C++ api (libav*) in order to do that. @haifengli pointed you in the right direction. I have made it work this way. I might share the code in the near future.