TX2 with DeepStream for MP4v2 output

Hi all:

I want to use TX2 with deepstream to generate mp4v2 file inculde h264 and aac for streaming.

I want to know on TX2, do we have example to demo how to use deepstream to speedup it with TX2 powerful HW?

thank you

You may refer to deepstream-app. We have sample config file for TX2.

$ deepstream-app -c source12_1080p_dec_infer-resnet_tracker_tiled_display_fp16_tx2.txt

You can configure sink to ‘Encode + File Save’

And integrate audio part into deepstream-app. Source code is in


For audio/video encoding into mp4, you may refer to


my video frame is the result after my analytics with boundbox output, and both video and audio original source is from rtsp streaming, on this case, how to use deepstream to generate a rtsp streaming to output the reslut with HW benefit? I could use ffmpeg to do this, but the performance is poor.

thank you

I could build deepstream-app but I don’t know how to set the video and audio as input to leverage deepstream benfit.

On Jetson platforms, there is not hardware audio encoder/decoder and you have to use native gstreamer plugin such as avdec_aac

Also deepstream-app is video only and you may integrate audio decoding into it.

Below is a sample pipeline of video playback. FYR.

$ gst-launch-1.0 filesrc location=videoplayback1.mp4 ! qtdemux name=d \
  d.video_0 ! queue ! h264parse ! nvv4l2decoder ! nvoverlaysink \
  d.audio_0 ! queue ! avdec_aac ! audioconvert ! alsasink