Deepstream record h264 or mp4

Hi,

I have Jetson Nano dev kit with Jetpack 4.5 and I would like to record in h264 codec and it records in mp4.

After record for a while, I tried to run deepstream_test1 example which reads .h264 files and not .mp4 files

The command that I am using is:

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! omxh264enc ! qtmux ! filesink location=test.mp4 -e

How can I edit this in order to save in .h264 file? as the video sample in deepstream named

sample_720p.h264

Firstly, omxh264enc is not a DeepStream plugin. It is accelerated gstreamer plugin for Jetson. You can find samples in NVIDIA Jetson Linux Developer Guide : Multimedia | NVIDIA Docs

If you want to save h264 stream, you may try the following pipeline:

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! omxh264enc ! h264parse ! 'video/x-h264,stream-format=byte-stream,alignment=au' ! filesink location=camera_out_1080p.h264 -e