divan
12-11-2009, 05:40 AM
Hi,
I'm streaming to justintv with dvgrab/vlc/jtvlc under Linux(Ubuntu 9.04) - it works very well and I'm satisfied with the quality. But I have one issue, and cannot find answer and even realize the core of the problem.
Shortly, when I stream there is a small delay between the picture and real events - approx. 10 seconds(5-15 actually, depending on the bitrate). It's ok. The video goes smoothly and synchronization with audio is perfect.
But this delay increases more and more - after 10 minutes of streaming it's already about 1 minute delay. And if I reload the page - the delay is again 10 seconds.
So, at first look, the delay occurs in a flash player. But I wonder, what's the reason of it and how to get rid of it?
It was tested on various browsers on Linux and Windows, by few different people. Tested with bitrates from 256 to 1500 kbps - absolutely the same result on all bitrates for all viewers.
Any suggestions?
More technical info.
- SpeedTest info: http://i.imagehost.org/0623/649435780.png
- Operating System: Linux Ubuntu 9.04 amd64
- Processor: AMD Turion 64 Mobile Technology 2GHz
- CPU Usage:
here is the top snaps:
24002 divan 20 0 1094m 48m 16m S 46.8 4.3 0:03.95 vlc
24001 divan 20 0 180m 18m 1952 S 1.8 1.7 0:00.17 dvgrab
Streaming command:
dvgrab -nostop --buffers 100 -f raw - | cvlc -vvv
--reset-plugins-cache - :demux=rawdv :file-caching=10000
--no-sub-autodetect-file -v
--sout='#duplicate{dst="transcode{venc=x264{keyint=2},vcodec=h264,width=32 0,height=240,vb=256,fps=25,acodec=mp4a,ab=64,chann els=1,samplerate=44100}:rtp{dst=127.0.0.1,port=123 4,sdp=file://'$(pwd)'/vlc.sdp}"}'
SOLUTION: Change audio samplerate from 44100 to the 48000 Hz.
I'm streaming to justintv with dvgrab/vlc/jtvlc under Linux(Ubuntu 9.04) - it works very well and I'm satisfied with the quality. But I have one issue, and cannot find answer and even realize the core of the problem.
Shortly, when I stream there is a small delay between the picture and real events - approx. 10 seconds(5-15 actually, depending on the bitrate). It's ok. The video goes smoothly and synchronization with audio is perfect.
But this delay increases more and more - after 10 minutes of streaming it's already about 1 minute delay. And if I reload the page - the delay is again 10 seconds.
So, at first look, the delay occurs in a flash player. But I wonder, what's the reason of it and how to get rid of it?
It was tested on various browsers on Linux and Windows, by few different people. Tested with bitrates from 256 to 1500 kbps - absolutely the same result on all bitrates for all viewers.
Any suggestions?
More technical info.
- SpeedTest info: http://i.imagehost.org/0623/649435780.png
- Operating System: Linux Ubuntu 9.04 amd64
- Processor: AMD Turion 64 Mobile Technology 2GHz
- CPU Usage:
here is the top snaps:
24002 divan 20 0 1094m 48m 16m S 46.8 4.3 0:03.95 vlc
24001 divan 20 0 180m 18m 1952 S 1.8 1.7 0:00.17 dvgrab
Streaming command:
dvgrab -nostop --buffers 100 -f raw - | cvlc -vvv
--reset-plugins-cache - :demux=rawdv :file-caching=10000
--no-sub-autodetect-file -v
--sout='#duplicate{dst="transcode{venc=x264{keyint=2},vcodec=h264,width=32 0,height=240,vb=256,fps=25,acodec=mp4a,ab=64,chann els=1,samplerate=44100}:rtp{dst=127.0.0.1,port=123 4,sdp=file://'$(pwd)'/vlc.sdp}"}'
SOLUTION: Change audio samplerate from 44100 to the 48000 Hz.