dockerized-browser-streamer icon indicating copy to clipboard operation
dockerized-browser-streamer copied to clipboard

Out of sync audio and video

Open amarmashruwala opened this issue 2 years ago • 4 comments

Hi Envek,

Have you experienced out of sync audio and video when you run this container?

what are the exact values you are using in your FFMPEG filter complex to sync the audio and video? could you please share your ffmpeg code.

mine is -filter_complex "aresample=async=1000:min_hard_comp=0.100000:first_pts=0,adelay=delays=562|562" \

Any issues you see with this? sometimes the sync is on and sometimes it is off. usually audio is early compared to video.

What can i change to shift audio in sync with video?

thank you!

amarmashruwala avatar Mar 02 '23 23:03 amarmashruwala

As far as I remember, delay always was more or less constant, so I was fine with constant compensation delay here: https://github.com/Envek/dockerized-browser-streamer/blob/cce86821221d7ef49fd257900b852b7088d3836a/ffmpeg.sh#L40-L41

I'm not using this thing anymore, so not sure what could change (or what can influence that delay)

Envek avatar Mar 03 '23 09:03 Envek

Ok thank you. Yes the delay is more of less constant. I have used -itsoffset on tue input instead of adelay on the output, and -async 1 on the output. This seems to help constant delay. It still is sometimes out of sync.

amarmashruwala avatar Mar 11 '23 00:03 amarmashruwala

You mentioned you are not using this anymore. Are you using something else instead to livestream a browser source? Thanks

amarmashruwala avatar Mar 11 '23 00:03 amarmashruwala

No, just don't have a need in this anymore.

Envek avatar Mar 13 '23 01:03 Envek