Why does specifying audio input before webcam video cause them to go out of sync?
I am using FFmpeg to stream from a webcam and a pulseaudio source to an
I know that argument order has an effect in FFmpeg.
But I have found that if I specify the audio input stream before the video
input stream then the audio is delayed, about half a second behind the
Since these are just two input streams combined together for the output,
why does the order have an effect?
I have stripped down and tested the below commands in order to simplify
this post, in fact I am using hardware acceleration, AAC and various other
codec options, the effect of the input ordering is always the same.
## FFmpeg command specifying video input first (no delay):