[Bug report] vlc messes up icecast stream on localhost
Posted: 02 Sep 2008 13:44
I am running 0.8.6e Janus on Ubuntu 8.04
vlc plays remote icecast streams fine.
I have an mp3 stream, locally generated with icecast.
wget http://localhost:port/stream.mp3 -O- |madplay -
plays it fine.
vlc http://localhost:port/stream.mp3 gives very choppy sound and no sound at
all after a few seconds.
vlc -v2 shows many "main audio output warning: audio drift is too big (192386), dropping buffer"
warnings.
Comparing debug output from a local stream and a remote stream the only difference is the line
"main private debug: pre-buffering done 64914 bytes in 0s - 275 kbytes/s".
for the local stream and
"main private debug: pre-buffering done 8688 bytes in 0s - 54 kbytes/s"
for the remote stream.
Apparently for the remote stream less data is buffered.
Reducing the bursting-size in the icecast config file from 64K to 16K FIXES THE PROBLEM.
Conclusion: there is some error in the timing calculations of vlc so that
when there is too much pre-buffered data errors are generated.
vlc plays remote icecast streams fine.
I have an mp3 stream, locally generated with icecast.
wget http://localhost:port/stream.mp3 -O- |madplay -
plays it fine.
vlc http://localhost:port/stream.mp3 gives very choppy sound and no sound at
all after a few seconds.
vlc -v2 shows many "main audio output warning: audio drift is too big (192386), dropping buffer"
warnings.
Comparing debug output from a local stream and a remote stream the only difference is the line
"main private debug: pre-buffering done 64914 bytes in 0s - 275 kbytes/s".
for the local stream and
"main private debug: pre-buffering done 8688 bytes in 0s - 54 kbytes/s"
for the remote stream.
Apparently for the remote stream less data is buffered.
Reducing the bursting-size in the icecast config file from 64K to 16K FIXES THE PROBLEM.
Conclusion: there is some error in the timing calculations of vlc so that
when there is too much pre-buffered data errors are generated.