RTMP minimum delay of 10 seconds
I am having trouble figuring out where this was introduced in libvlc, as I have an android app that uses libvlc for rtmp playback. Recent versions will not begin playing until 10 seconds have passed. This includes network-caching=0, file-caching=0, disk-caching=0.
I have also been able to see this bug on VLC OSX 2.2.0 and 2.2.1. Compare playback between either of these and 2.1.5 and you will see the difference.
Here is what you will see in the logs when starting an rtmp stream in osx.
command: ../../Applications/VLC.app/Contents/MacOS/VLC --live-caching=0 --file-caching=0 --network-caching=0 --disc-caching=0 -vvv rtmp://rtmp-link-here
logs: [000000010031b708] core input debug: Buffering 0% (****A bunch of these at 0%*****) [000000010031b708] core input debug: Stream buffering done (9975 ms in 8266 ms) [000000010031b708] core input debug: Decoder wait done in 0 ms [00000001009654b8] core video output warning: picture is too late to be displayed (missing 39 ms)
Notice the time it takes to buffer the stream. It always takes around 10000ms.