video encoded with omxh264enc cannot be played

Hi,all.

I had recorded some videos with the pipeline as bellows:

gst-launch-1.0
v4l2src num-buffers=300 !
nvvidconv ! “video/x-raw(memory:NVMM),format=(string)NV12” !
omxh264enc bitrate=1000000 iframeinterval=30 control-rate=2 profile=1 !
‘video/x-h264,stream-format=(string)byte-stream,profile=baseline’ !
filesink location=1.h264 \

Now I want add audio to the videos,so I have pipeline as bellows.But the video I got finally cannot be played.

gst-launch-1.0
filesrc location=1.h264 ! h264parse ! omxh264dec !
nvvidconv ! “video/x-raw(memory:NVMM),format=(string)NV12” !
omxh264enc ! ‘video/x-h264, streamformat=(string)byte-stream,profile=baseline’ !
h264parse ! qtmux ! filesink location=test.mp4 -e

Hi,
Raw h264 stream does not have information of framerate. Please add videorate into pipeline:

$ gst-launch-1.0 filesrc location=1.h264 ! h264parse ! omxh264dec ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)NV12" ! <b>videorate ! 'video/x-raw(memory:NVMM),framerate=30/1'</b> ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream,profile=baseline' ! h264parse ! qtmux ! filesink location=test.mp4 -e