Mixing audio from 2 usb audio sources

I have a 1 usb video source and 2 separate usb audio sources. I need to mix these 2 audio into one video file and save.
I am able to save one stream using the mux and pulsesrc. and both are working separately.

What is the method to mix these two audios and save in one single file?

Please refer to

$ gst-launch-1.0 nvarguscamerasrc num-buffers=300 ! nvv4l2h264enc ! h264parse ! queue ! mux. audiotestsrc num-buffers=1000 wave=1 ! voaacenc ! queue ! mux. audiotestsrc num-buffers=1000 ! voaacenc ! queue ! qtmux name=mux ! filesink location=a.mp4

You will see two audio tracks in a.mp4

1 Like

Thank you I will try this method