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 synchronization #7

Open hvm2hvm opened 11 years ago

hvm2hvm commented 11 years ago

Hello,

I'm having problems with audio/video synchronization. I debugged it in multiple ways and I still can't pinpoint the problem.

First of all I want to mention that the demo application (spydroid) also has the delay between audio and video, i.e. the video is about 1.2seconds late. The problem appears both when using spydroid as a RTSP server or when using the library to stream to a wowza server and then connect with a player to the wowza stream.

AFAICT the packets sent over the rtcp protocol should solve any sync problems. The packets are sent by the phone and received by the player (I tried with vlc and a flash player). It would help me a lot if you game me some debugging ideas or if you could tell me if it works on your end.

I want to also mention that I tested on a Nexus 4 and a Samsung Galaxy S3.

Thank you

ghost commented 10 years ago

i also have the same syncing issues...

dummymailmi commented 10 years ago

Hi..

I am using example 3 to stream from Nexus 7 to Wowza Server. Initially the audio and video are in sync. But after 20 min the audio and video are not in sync; the video lags audio by 3-4 sec. And the lag seems to increase with time.

How can I solve the issue?

Thank You Alan