]> git.sesse.net Git - vlc/commit
input: Add --auto-adjust-pts-delay, this allows to stream/receive with an extremely...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 5 Jun 2008 22:13:27 +0000 (00:13 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 5 Jun 2008 22:14:59 +0000 (00:14 +0200)
commitea89b9c2d9d5b13c28da56f6b5ec284614db491f
treef5e6fb1d2558b6c54b1c0cbbb33e0bd496941fe3
parent6f8ce7ca56918ca2423b8728a3276aac8ba1cfe4
input: Add --auto-adjust-pts-delay, this allows to stream/receive with an extremely low latency.

Simple demo:
vlc --sout="#duplicate{dst=display,dst='transcode{vcodec=mp4v}:std{access=http,dst=0.0.0.0:8080,mux=ts}'}" --ignore-config  --use-stream-immediate movie.avi &
vlc --use-stream-immediate http://127.0.0.1:8080
and
vlc --use-stream-immediate http://127.0.0.1:8080 --auto-adjust-pts-delay

You'll have to wait a bit until the pts delay is auto adjusted. Generally it takes 2-4 seconds, because access set a very high default pts delay value. One amelioration would be to lower the pts_delay when this option is set to allow a quicker convergence.

The general algorithm requires some tuning, but results are here.

Note, this only works if there is a video track. A similar function could be developped for the audio tracks.
src/input/decoder.c
src/input/input_internal.h
src/input/var.c
src/libvlc-module.c