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.