Enterprise-grade, low-latency video streaming system powered by RTSP over TCP, RTP over UDP (RFC 1889), HD MTU packet fragmentation, Client-side Jitter Buffering, and a modern React Web Dashboard.
- Control Plane (RTSP/TCP): Ensures lossless, sequenced delivery for
SETUP,PLAY,PAUSE, andTEARDOWN. Maintains session IDs and auto-increments sequence numbers (CSeq). - Data Plane (RTP/UDP): Low-overhead, high-framerate packet streaming. Standard 12-byte header:
V=2,P=0,X=0,CC=0,PT=26 (MJPEG).
Standard Ethernet networks enforce an MTU of 1500 bytes. High-definition frames (720p/1080p) often exceed 100 KB:
-
Server: Chunks frames into
$\le 1400$ -byte payloads. The last fragment setsMarker Bit = 1. -
Client Bridge: Reassembles chunks by
timestampand marks completion whenMarker = 1.
- Eliminates playback stutter caused by UDP jitter.
- Pre-buffers
$N = 8$ frames into a bounded, thread-safe queue before rendering begins.
The React frontend calculates and displays live streaming statistics:
- Frame Rate (FPS): Actual rendered frames per second.
- Bitrate (kbps): Real-time bandwidth consumption.
- Packet Loss Rate (%): Sequence gap tracking.
- Jitter Buffer Status: Visual indicator of buffered frames.
The entire stack (Java Server, Python Bridge, and React Web UI) launches with a single command:
docker compose up --build- Web UI Console: http://localhost:3000
- FastAPI Bridge Swagger Docs: http://localhost:8000/docs
- RTSP Server TCP:
localhost:8554 - RTP Stream UDP:
localhost:25000