mlt icon indicating copy to clipboard operation
mlt copied to clipboard

SDL Audio desync

Open ddv2005 opened this issue 8 years ago • 4 comments

I found that on Ubuntu 16.04 melt have huge audio/video desync ( video about 100-200ms ahead of audio) on all H264/AAC videos. I have tested SDL1/SDL2 and both have an issue. Also I have tested ffplay with SDL2 and it play the same videos in sync.

ddv2005 avatar Aug 31 '17 17:08 ddv2005

Is the problem specific to videos with AAC? AAC codecs have an inherent delay that can be a source of problems. It can help to narrow down the problem by testing with uncompressed audio.

ddennedy avatar Aug 31 '17 18:08 ddennedy

Ok I will test. But why ffplay works fine? It use the same library and the same SDL2 output.

ddv2005 avatar Aug 31 '17 18:08 ddv2005

I have tested and no change AAC or uncompressed audio. But I found that it happened only when I play 25fps video on 30/29.97/60/59.94 fps profile.

ddv2005 avatar Aug 31 '17 18:08 ddv2005

I have measured delay and it is exactly 200ms

ddv2005 avatar Aug 31 '17 19:08 ddv2005