I have two separate streams, audio (line-in, pulseaudio) and video (ip-camera, rtsp), which I would like to automatically synchronize.
The best I came up with so far is ffmpeg with -itsoffset but the offset actually varies.
Is there any way to do this reliably automated on command-line (doesn't necessarily need to be ffmpeg)?
The camera as well as the computer run an ntp client and the input delay of pulseaudio is negligible, so this should be solvable.