I am creating an AVI file programmatically from an image list (MJPG) and an audio track. So far, it has worked well, but I would like to hold the sound in some synchronization position.
This is for a mobile application (Cordova), so I cannot use a program like ffmpeg, but I need to create the video programmatically. The audio codec is subject to change.
(I used the AVI format because it was easier for me, but if you know how to set up MP4 audio, it's even better.)
I tried the dwStart field, but apparently it was not supported by the players. I also tried putting the beginning of the sound stream with zeros, but that didn't work. Any help is appreciated.
source
share