What video codec are you using? You should be able to reduce the wait time to <1s using the following options:
- Add
:live-caching=0
to enter processing parameters (for example, when opening a webcam). - Play with the codecs, for example, change the codec to mpeg-4 (it seems, for my configuration, itβs better to work where I have an Android device as a stream receiver).
- Add
:sout-mux-caching=10
(or another other value) for stream parameters
With the following line used for streaming video in webcams (notification: no sound) for my Android, I was able to slightly decrease the latency:
:sout=#transcode{vcodec=mp4v,vb=800,fps=30,scale=0.25,acodec=none}:rtp{sdp=rtsp://:8554/} :sout-keep :sout-mux-caching=10
source share