Disable All Caching

About encoding, codec settings, muxers and filter usage
sourceholder
New Cone
New Cone
Posts: 2
Joined: 20 Jun 2009 23:25

Disable All Caching

Postby sourceholder » 21 Jun 2009 00:00

Hey there,

I am looking for a way to capture my desktop screen and transmit it over the network to a nearby computer (local LAN), with minimal latency. The command below works (VLC v0.8.6), except there is about a 2 second delay on the destination computer.

vlc screen:// :screen-fps=30 :screen-caching=50 :sout-udp-caching=0 :udp-caching=0 :rtsp-caching=0 :tcp-caching=0 :sout=#transcode{vcodec=mp4v,vb=2048,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=udp{caching=0,raw},mux=ts,dst=192.168.1.104:1234}}

I have gone through the VLC documentation looking for any caching or buffers, setting all of them to zero or some very small value. Is there anything I can due to reduce or eliminate the delay?

Any thoughts :?:

pujansrt
New Cone
New Cone
Posts: 3
Joined: 08 Oct 2009 17:50

Re: Disable All Caching

Postby pujansrt » 08 Oct 2009 18:57

that delay because of encoding: video and audio

prividen
New Cone
New Cone
Posts: 5
Joined: 25 Sep 2010 10:37

Re: Disable All Caching

Postby prividen » 20 Nov 2010 01:07

This delays may be caused by mux ts encoding. Try to see into sout-ts- options. In particular, sout-ts-shaping=10 and sout-ts-dts-delay=20 may help.
But note, that some minimum caching' delay are necessary, you may combine sout-ts-shaping, sout-ts-dts-delay and sout-udp-caching on transmit side, and udp-caching on receive side for optimal delays with not damaged video.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests