fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.48k stars 1.07k forks source link

Audio-Video Sync #28

Open dummymailmi opened 10 years ago

dummymailmi commented 10 years ago

Hi..

I am using Example 3 to stream from Nexus 7 to Wowza Server. I am using MediaCodec for encoding audio and video. I am using AUDIO_AAC for audio.

Initially audio-video are in sync. But with time video lags audio and the lag increases. For example, after 20 min the video lags audio by 4 sec.

What is the issue? Can anyone help me to sync audio and video.

Thanks Alan

derekentringer commented 10 years ago

You might want to look into your Wowza server. What type of available processing power do you have available? Has the server been tweaked according to the Wowza Tuning Guide [http://www.wowza.com/forums/content.php?46]?

Video quality can suffer if the server doesn't have enough resources.

dalzani commented 9 years ago

I have same problem here. Using a slow internet the sync video/audio problem happen after 1 minute. Ideias???

Thanks.