How to reduce delay from Darwin Streaming Server to VLC ?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
stop81
New Cone
New Cone
Posts: 4
Joined: 07 Feb 2007 17:47

How to reduce delay from Darwin Streaming Server to VLC ?

Postby stop81 » 14 Feb 2007 12:47

Our system is built as follows:

VLC windows (with webcam) ----) Darwin (Linux) ----) VLC client(Windows)

There's an incredible delay, about 10 seconds, and we don't know how to reduce it. We've tried many solutions like caching reductions and different codecs but no luck.

Here's an example command line that we use:

vlc.exe -vvv -I rc --ttl 50 dshow:// :dshow-vdev="Video Blaster WebCam 3/WebCam Plus (WDM)" :dshow-adev="none" :dshow-size="320*240" :dshow-amtuner-mode=1 :sout=#transcode{fps=10,vcodec=h264,vb=128}:duplicate{dst=display,dst=rtp{dst=ourserverip,port=1232,sdp=sap,sdp="file://C:\h264.sdp"}}

vlc.exe -vvv -I rc --ttl 100 dshow://:dshow-vdev="Video Blaster WebCam 3/WebCam Plus (WDM)" :dshow-adev="none" :dshow-size="" :dshow-amtuner-mode=1 :sout=#transcode{fps=10,venc="ffmpeg",vcodec=mp4v,vb=1024}:duplicate{dst=display,dst=rtp{dst=ourserverip,port=1232,sdp=sap,sdp="file://C:\prova2.sdp"}}

If we add encapsulation (mux=ts) VLC doesn't make the sdp file that is necessary for Darwin.

We think the problem is between Darwin and VLC client because if we use Quicktime as client player we have 5 seconds delay.

Any suggestion ?

Thanks

stop81
New Cone
New Cone
Posts: 4
Joined: 07 Feb 2007 17:47

Postby stop81 » 16 Feb 2007 23:17

up

stop81
New Cone
New Cone
Posts: 4
Joined: 07 Feb 2007 17:47

Postby stop81 » 17 Feb 2007 23:16

up

tcrichton
New Cone
New Cone
Posts: 2
Joined: 09 Mar 2007 15:28

Postby tcrichton » 09 Mar 2007 18:58

Hi,

Just had the same issue, in the streamingserver.xml (/etc/streaming/streamingserver.xml on my ubuntu system) file change the value of:

<PREF NAME="reflector_buffer_size_sec" TYPE="UInt32" >10</PREF>

To anything as low as zero,

I'm assuming that this protects against buffer underrun between the encoder and the darwin streaming server, in my case their in the same switch so I'm confident no/little buffer is needed but am guessing this default of 10 takes into consideration that the encoding/vlc machine may be on a WAN connection.

Hope this help (if you're still stuck)

Tristan.

iperich
Blank Cone
Blank Cone
Posts: 19
Joined: 24 May 2006 21:44

Postby iperich » 17 Mar 2007 00:18

I have the same problem, but i'm doing

Webcam, VLC -----------------> VLC server------------------> Windows media player.
UDP MMSH, ASF

And I have the same 10 sec delay.
I reduced it to 5 sec doing --sout-udp-caching 20 on the first VLC, --udp caching 20 and --sout-asf-packet-size 50 on the second.

But this 5 seconds are driving me mad because I have, in the first VLC server, if I display the movie there, 1 sec delay, but between the VLC and the WMP are the other 4 seconds.

curtdp
New Cone
New Cone
Posts: 1
Joined: 03 Dec 2007 17:51

Re: How to reduce delay from Darwin Streaming Server to VLC ?

Postby curtdp » 03 Dec 2007 18:14

Hi,



Just had the same issue, in the streamingserver.xml (/etc/streaming/streamingserver.xml on my ubuntu system) file change the value of:



<PREF NAME="reflector_buffer_size_sec" TYPE="UInt32" >10</PREF>



To anything as low as zero,



I'm assuming that this protects against buffer underrun between the encoder and the darwin streaming server, in my case their in the same switch so I'm confident no/little buffer is needed but am guessing this default of 10 takes into consideration that the encoding/vlc machine may be on a WAN connection.



Hope this help (if you're still stuck)



Tristan.

Yeahh! I'm just looking for answer on this forum and found it in your post!! Thank you Tristan!

doxsi
New Cone
New Cone
Posts: 6
Joined: 22 Aug 2008 10:48

Re:

Postby doxsi » 25 Aug 2008 13:00

Hi,
i m using a simple stream like VLC---------------------------VLC with the comand line:

vlc -vvv v4l:// :v4l-adev="/dev/audio" :v4l-vdev="/dev/video1" :v4l-norm=1 :v4l-width=320 :v4l-height=240 :v4l-fps=15 :v4l-audio=2 -- sout '#duplicate{dst="transcode{vcodec=mp4v,vb=1024,acodec=mpga,ab=192,sfilter=time,soverlay,channels=2,audio-sync}:std{access=udp,mux=
ts,dst=x.x.x.x}"}'

i use it ti transmit web cam image and voice. But de delay is always about 2 seconds. I try adding de option

--sout-udp-caching 10

but nothing change. How i can reduce this delay ?
thx a lot

diamondblast
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Jul 2008 21:33

Re: Re:

Postby diamondblast » 19 Oct 2008 08:33

Hi,
i m using a simple stream like VLC---------------------------VLC with the comand line:

vlc -vvv v4l:// :v4l-adev="/dev/audio" :v4l-vdev="/dev/video1" :v4l-norm=1 :v4l-width=320 :v4l-height=240 :v4l-fps=15 :v4l-audio=2 -- sout '#duplicate{dst="transcode{vcodec=mp4v,vb=1024,acodec=mpga,ab=192,sfilter=time,soverlay,channels=2,audio-sync}:std{access=udp,mux=
ts,dst=x.x.x.x}"}'

i use it ti transmit web cam image and voice. But de delay is always about 2 seconds. I try adding de option

--sout-udp-caching 10

but nothing change. How i can reduce this delay ?
thx a lot
you can try to see the rerun...
just kidding :) I think that your solution should work
I'll try to check it out further and c what will happen


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests