Change video format from h264 to mp4 Error

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version4.0.2
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

the pipeline is :
gst-launch-1.0 filesrc location=./ch00.h264 ! h264parse ! nvv4l2decoder ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=tmp.mp4

but run with the error:

how can i build the pipeline, any help will be appreciated

First, the latest DeepStream 5.0 GA is available. Please upgrade to the latest version.

There is no timestamp information in your “ch00.h264” file so it can not be use alone as the qtmux input.
Our test h264 file can.
gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepsteam-5.0/samples/s
treams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=tmp.mp4
Our suggestion is to use our DeepStream plugin nvstreammux, it is also a must when you construct deep-learning pipeline.