I am building an applet to capture screen and microphone input (audio). I am able to record these files separately but could not find a way to combine these files to make a new video with audio.
Video file is in .mov
format and audio is in .wav
format. They have exact same length.
Is there any way to combine these files? I have tried Java but could not find a way to combine two files.
Also I have to do it without ffmpeg
since it needs to be installed on client side.
You can use Java Media Framework API (JMF). Check this link . Java Media Framework basics and tutorials are given at this link
Import of the above code which may be help to someone:
your class must implement ControllerListener, DataSinkListener. worked perfectly for me good video and audio sync (half a second shift in audio but not a problem for me).