Muxing Audio and Video with Gstreamer

Hi,

I’m trying to mux a .wav file with a .mp4 file on my TX2 NX but I am unable to do so.

I captured the video with a custom V4L2 application in C++. I captured the audio via Gstreamer.

I have tried this pipeline based on forums I have read, but I cannot get it to work

gst-launch-1.0 -e filesrc location="FriSep316:05:192021.mkv" ! queue ! matroskademux ! qtmux name=mux ! filesink location="test.mp4" filesrc location="a.wav" ! decodebin ! audioconvert ! vorbisenc ! queue ! mux.

Could someone please show me the correct pipeline?

Hi,
Please refer to this command:
Mixing audio from 2 usb audio sources - #3 by DaneLLL

May try aac encoder.

Thank you. Based on the link you shared, I created this pipeline which seems to work:

gst-launch-1.0 filesrc location=test.mkv ! matroskademux ! h265parse ! queue ! mux. filesrc location=a.wav ! decodebin ! audioconvert ! voaacenc ! queue ! qtmux name=mux ! filesink location=a.mp4