4 ms·
MPEG-TS is just amazing. For a web dev, the most notable thing is that every block is the same length. Have gstreamer output to a named pipe. Read from it an
by eternityforest 3y ago
MPEG-TS is just amazing.
For a web dev, the most notable thing is that every block is the same length.
Have gstreamer output to a named pipe. Read from it and send it over websockets. Be sure that every packet or stream starts at a 188 byte boundary.
No matter where you start, as long as you're on a 188 byte line, you're good, the decoder knows what's up.
You don't have to decode or understand anything, you just need to count bytes.
Sub-second latency over LAN WiFi into a regular browser is trivial, even with your server written in pure Python.
I'm sure someday something might replace it, but right now it seems like one of those things that Just Works, and it's really nice when stuff actually works.