How do I fix audio/video sync in ffmpeg
I have a video in 1080p but for some dumb reason, the audio is only stereo. I also have the same video in 480p but the audio is 5.1. I've merged several videos taking the 1080p video from one source and the 5.1 audio from the other with minor difficulty: sometimes I would have to shift the audio a second or two. However, this video isn't so easy. The audio is early for the entire video and seems to get further off as the video nears the end. If I shift the audio, I get audio that starts off behind but still ends up ahead. I'm using the following code:ffmpeg -i input_0.mp4 -i input_1.mp4 -c copy -map 0:v:0 -map 1:a:0 -shortest out.mp4I've used "-itsoffset" both positive and negative values in front of either the video or audio sources and I've tried them without the "-shortest"