Page 1 of 1

Audio Delay playing Videos

Posted: Fri Jan 27, 2023 12:45 am
by xabierpayet
Is not possible have an AVI (divx) or MPG video playing with the audio synchronized in android?
I did the test in 3 devices with 50 different videos, and the audio is always delayed by about 0.5 to 1 second.
Does not matter which file - always the same issue.
In the computer all work fine.
May be must be possible to add an offset to playvideo? for example: playvideo(1,0,0,{offsetaudio=500})
and displace the audio x milliseconds to fit it in the video.
Mp4 files in Android don't work fine neither, several lag at the first of the file normally.

Re: Audio Delay playing Videos

Posted: Fri Jan 27, 2023 8:55 am
by Juan Carlos
Perhaps the problem is the plugin to decode the video format.

Re: Audio Delay playing Videos

Posted: Fri Jan 27, 2023 3:32 pm
by xabierpayet
yes, is possible, an updated version of the plugin will be the solution

Re: Audio Delay playing Videos

Posted: Sat Jan 28, 2023 10:16 pm
by airsoftsoftwair
Hmm, I have to check. This definitely used to work. Maybe some things have changed in OpenSL in more recent Android versions.

Re: Audio Delay playing Videos

Posted: Sat Mar 04, 2023 9:15 pm
by airsoftsoftwair
I'm afraid I can't reproduce either of the problems. MP4 files play instantly and also there is no lag with videos either.

What is the resolution of those videos that you're trying to play? Keep in mind that on Android there is no GPU-accelerated video playback so there are some limits on what you can play smoothly because it's all done by the CPU so don't expect to be able to play a full HD video smoothly.