Add an audio track to a video file

Hello everyone.

I am using openframework’s add-on ofxQtVideoSaver to record video from webcam to file, and using a 3rd party application to record sound from the application into a .wav file.
When execution ends, I need to programmatically merge the video and audio file into a single file. ofxQtVideosaver has a method called addAudioTrack but it doesn’t seem to be working at all.
Any ideas on how to accomplish this?

thanks in advance

i just have the same requirement. that is , to combine an audio file (say, wav format ) and a video file into one file. do we have any update tech on this issue?

Don’t know for ofxQtVideoSaver.
Just to say that you probably can call an external program do to the job, for example ffmpeg.
The command line to mux a video file without sound and a sound file is:

ffmpeg -i -i sound_file.wav -c:v copy -c:a copy

This is fast, and mux the two files without re-encoding anything.