This project implements a simple video streaming demo using RTSP for control and RTP for data transport. The server sends frames from a MJPEG file and the client displays them in a small Tkinter GUI.
- Python 3.8 or newer
- Pillow for image display (
pip install Pillow) - Tkinter (usually included with Python, may require the
python3-tkpackage on Linux)
Run the server by passing the port number on which it should listen for RTSP connections:
python Server.py <server_port>Example:
python Server.py 8554The video file (movie.Mjpeg by default) must be present in the same directory as Server.py.
Launch the client with the address of the server, the server's RTSP port, the local RTP port you want to use and the filename to request:
python ClientLauncher.py <server_addr> <server_port> <rtp_port> <video_file>Example:
python ClientLauncher.py localhost 8554 25000 movie.MjpegThis command opens the Tkinter interface with buttons to setup, play, pause and teardown the stream.