I tried the async/asyncts option, but i've noticed no differrence in output, still out of sync
ffmpeg -async 1 -y -i audio.wav -i video.webm -vcodec libx264 output.mp4
I tried using areasample filter with avconv gave me error
No such filter: 'areasample' Error opening filters!
avconv -y -i audio.wav -i video.webm -vcodec libx264 -filter "areasample=asyncts:compensate" output.mp4
How can i make the video in sync?
My audio length is less than that of video. I'm using the command
ffmpeg -itsoffset -00:00:01 -y -i audio.wav -i video.webm -vcodec libx264 output.mp4
to make them in sync. But I'm not sure there will be a 1 sec difference always. So I'm looking for a solution that could manage this dynamically(add the offset for missing audio length).