cannonbeach / ott-packager

OTT/ABR streaming encoder (H264/HEVC) and packager for DASH and HLS
GNU General Public License v2.0
228 stars 42 forks source link

A/V sync offset when cross mixing streams in DASH output #2

Closed cannonbeach closed 5 years ago

cannonbeach commented 5 years ago

There is an A/V sync offset that occurs when audio and video streams are cross mixed from different stream sources. The A/V sync offset is not present in the HLS TS output mode.

Command line to reproduce the issue: ./fillet --sources 4 --window 20 --segment 2 --ip 0.0.0.0:4000,0.0.0.0:4200,0.0.0.0:4300,0.0.0.0:4400 --interface enp0s25 --manifest /var/www/html/hls --identity 20 --hls --dash

When the video stream from port 4400 is played back with the audio stream from port 4000 the a/v sync offset occurs. It is likely a timestamp miscalculation or a silence insert issue that occurs when the audio streams are initially lined up.