wang-bin / mdk-sdk

multimedia development kit. download:
https://sourceforge.net/projects/mdk-sdk/files/
270 stars 32 forks source link

Audio synchronization with external sync callback and audio stream #199

Open pfaffinger opened 4 months ago

pfaffinger commented 4 months ago

I got a AVI container with MJPEG video and S16 mono audio stream, or a mp4 container with h264 video stream. There are up to 4 player objects running which are synchronized through the onSync event and a callback clock class. When playback rate is raised to about 2 to 8 times normal speed, and then reset to normal playback, the audio stream is not sync anymore, its after the video nearly the time, the playback rate was raised. The audio output is muted as long as the playback rate is above or under normal..

Expected behavior Audio stream should be synchron, even after playback rates changed various times.

Environment:

wang-bin commented 3 months ago

onSync does not support audio currently