Hello everybody!
In my applications (encoder captures video and audio, encode data and send them to the decoder which decodes the data and displays video and audio), I need to synchronize audio data with video data. On the encoder, I have 2 threads, one for video encoding (H264) and one for audio encoding (G711). Both data packets are send at the same time to the decoder which then uses 2 threads for decoding. When I display the video, the audio is always minimum 0,5 - 1 second later than the video. I don't understand why the audio latency is so high. I use the DVSDK 3.10 with the EVMDM365 board for both encoder and decoder. As audio driver I use the Sound module from the DMAI. Maybe the audio driver has buffered 0,5 - 1 second old data when I start to read from the device? Thanks for any help!
Regards,
Matthias