https://github.com/hith3sh/pystreamrtc
Most simplest Python solution for WebRTC streaming of a video file. Capable of doing play, pause & seeking operations
https://github.com/hith3sh/pystreamrtc
gstreamer python streaming video webrtc
Last synced: 2 months ago
JSON representation
Most simplest Python solution for WebRTC streaming of a video file. Capable of doing play, pause & seeking operations
- Host: GitHub
- URL: https://github.com/hith3sh/pystreamrtc
- Owner: hith3sh
- Created: 2024-07-15T18:10:09.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T10:14:52.000Z (7 months ago)
- Last Synced: 2025-04-20T23:32:34.750Z (3 months ago)
- Topics: gstreamer, python, streaming, video, webrtc
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyStreamRTC V1.0🥷🏻
Welcome to PyStreamRTC, versatile media streaming solution leveraging the power of Python, GStreamer, and WebRTC.
## 🛠 Installation and Setup Instructions
### Install GStreamer and other libraries
I have only checked the workflow for debian based systems. Feel free to check the workflow in any other platform, but below libraries won't be easy to install in others
### For Debian platforms
#### System-level installation
`sudo apt-get install -y gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libnice-dev gstreamer1.0-nice libglib2.0-dev libcairo2-dev libgirepository1.0-dev pkg-config python3-dev python3-gst-1.0 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev gobject-introspection`#### pip installation
`pip install -r requirements.txt`### Navigate to the location and start streaming 🚀
`cd PyStreamRTC``python streamer.py --video /path/to/your/video.mp4`
```
> Starting pipeline
======== Running on http://0.0.0.0:8080 ========
have fun!
```
### 🗒️ Note
This functionality works seamlessly on Chromium-based browsers. For optimal performance, please test on a Chromium browser first, as there may be occasional issues with WebRTC streaming on Mozilla Firefox.### 🌱 Contribution
If you have any suggestions on what to improve in PyStreamRTC and would like to share them, feel free to leave an issue or fork project to implement your own ideas