I'm trying to play an H.264 elementary stream from a Raspberry Pi. It works ok with VLC, but I'm trying to reduce the latency. I've set network caching to 0ms. Are there any other relevant settings? The weird thing is, sometimes it has about 1200ms latency, and other times it's about 4000ms, and nothing is changing except I quit and relaunch it. This is over a fast LAN and the stream is only 1Mbps.
The stream is generated using picamera with netcat.
In VLC I use this input:
I see H264 in the preferences under Demuxers, but I don't see any settings for the TCP protocol.