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