android dropping connection and audio out of sync
Posted: 04 Feb 2012 00:20
Hi. I am trying to transcode and stream a video to my android devices and both of them encounter the same issue, that is they drop the connection thinking the stream has ended after about a minute of playback every time and that does not count the 12 seconds it takes to buffer before anything is seen which appears to be an android not vlc issue. Here is the command I am issuing, any ideas why the client would drop and audio is out of sync? Anything I can try?
On a side note using vlc on another machine sees the stream fine without dropping connection however the audio is also out of sync. The audio is fine in the my source file.
UPDATE: adding preset=ultrafast to the x264 settings seems to fix the audio issue (although encoding doesnt look that great). Maybe my machine is too slow for the encoding I am trying causing the sync issue; however I thought audio-sync was supposed to take care of that if my cpu could not keep up. Would like confirmation either way. Still can't figure out the dropping connection issue though.
UPDATE #2: I have just confirmed that QuickTime running on a Mac will also drop the connection, it looks like this is not specific to the android. I am using a build of VLC pulled from git v2.1.0-git however I have confirmed the issue is the same with v1.3.0-git.
Thanks.
Code: Select all
vlc mystream.webm --sout "#transcode{vcodec=h264,vb=2048,fps=15,scale=1,venc=x264{aud,profile=baseline,level=30,keyint=15,bframes=0,ref=1,nocabac},acodec=mp4a,ab=128,channels=2,samplerate=44100,audio-sync}:rtp{sdp=rtsp://:5544/test}" --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep
UPDATE: adding preset=ultrafast to the x264 settings seems to fix the audio issue (although encoding doesnt look that great). Maybe my machine is too slow for the encoding I am trying causing the sync issue; however I thought audio-sync was supposed to take care of that if my cpu could not keep up. Would like confirmation either way. Still can't figure out the dropping connection issue though.
UPDATE #2: I have just confirmed that QuickTime running on a Mac will also drop the connection, it looks like this is not specific to the android. I am using a build of VLC pulled from git v2.1.0-git however I have confirmed the issue is the same with v1.3.0-git.
Thanks.