https://github.com/quasarstream/python-ffmpeg-video-streaming
📼 Package media content for online streaming(DASH and HLS) using FFmpeg
https://github.com/quasarstream/python-ffmpeg-video-streaming
dash dash-video drm dynamic-adaptive-streaming-http ffmpeg ffmpeg-dash ffmpeg-hls hls hls-live-streaming hls-video http-live-streaming microsoft-azure-storage mpeg-dash python python-dash python-ffmpeg python-hls python-video-streaming video video-streaming
Last synced: about 1 year ago
JSON representation
📼 Package media content for online streaming(DASH and HLS) using FFmpeg
- Host: GitHub
- URL: https://github.com/quasarstream/python-ffmpeg-video-streaming
- Owner: quasarstream
- License: mit
- Created: 2019-03-14T12:58:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T01:11:11.000Z (almost 2 years ago)
- Last Synced: 2025-05-15T04:32:43.028Z (about 1 year ago)
- Topics: dash, dash-video, drm, dynamic-adaptive-streaming-http, ffmpeg, ffmpeg-dash, ffmpeg-hls, hls, hls-live-streaming, hls-video, http-live-streaming, microsoft-azure-storage, mpeg-dash, python, python-dash, python-ffmpeg, python-hls, python-video-streaming, video, video-streaming
- Language: Python
- Homepage: https://www.quasarstream.com/op/python/ffmpeg-streaming?u=py-ff
- Size: 927 KB
- Stars: 849
- Watchers: 19
- Forks: 140
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-video - Python-FFmpeg-video-streaming - This Python package leverages FFmpeg to package media content for online streaming, supporting both DASH and HLS formats. It offers functionalities to implement DRM for HLS packaging and provides options to handle files from and to cloud storage. This tool is valuable for developers looking to integrate FFmpeg-based streaming solutions into their Python applications. (Protocols & Transport / Effects & Compositing Tools)
README
# 📼 Python FFmpeg - Video Streaming
[](https://pepy.tech/project/python-ffmpeg-video-streaming)

This package utilizes **[FFmpeg](https://ffmpeg.org)** to bundle media content for online streaming, including DASH and
HLS. Additionally, it provides the capability to implement **[DRM](https://en.wikipedia.org/wiki/Digital_rights_management)** for HLS packaging. The program offers a range of
options to open files from cloud storage and save files to cloud storage as well.
## Documentation
**[Full Documentation](https://www.quasarstream.com/op/python/ffmpeg-streaming/)** is available describing all features
and components.
## Basic Usage
```python
from ffmpeg_streaming import Formats, Bitrate, Representation, Size
_360p = Representation(Size(640, 360), Bitrate(276 * 1024, 128 * 1024))
_480p = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))
_720p = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))
hls = video.hls(Formats.h264())
hls.representations(_360p, _480p, _720p)
hls.output('/var/media/hls.m3u8')
```
## Get from Basic and Pro packages for Video Streaming

Our platform empowers businesses to expand their reach globally by delivering exceptional video streaming experiences. Enjoy unmatched reliability, scalability, and high-definition quality across a diverse range of devices, ensuring your content captivates audiences worldwide.
### Plans
Features / Plans
Basic
Pro
Authentication
✅
✅
Access-control list (ACL)
✅
✅
Video On-Demand (HLS and DASH)
✅
✅
HLS Encryption(Single key and key rotation)
✅
✅
Video Quality Settings: Manually Choose from 144p to 4k or auto mode
✅
✅
Real-Time Progress Monitoring: progress bar to display the live upload and transcoding progress
✅
✅
Dark and light theme
✅
✅
Live Streaming: From Browser Webcam, IP Cameras, Live Streaming Software
⛔️
✅
Bespoke player design: Crafted to perfectly align with your brand identity and user preferences.
⛔️
✅
Add Subtitles and Audios: add different subtitle and audio files to stream
⛔️
✅
Monetization: Subscriptons/pay-per-view/ads
⛔️
✅
Advanced Analytics: Views/Watched hours/Visited countries and more
⛔️
✅
Robust DRM Systems: Widevine, FairPlay Streaming and PlayReady
⛔️
✅
Social Media Integration: Like, Comment, Share and embed videos
⛔️
✅
Cloud-based CDN: Accelerates content delivery worldwide through integration with major cloud storage providers such as Amazon S3, Google Cloud Storage, and Microsoft Azure.
⛔️
✅
Tailored features: We can integrate any specific functionality you require into your platform.
⛔️
✅
Support
3 Months
Customizable
Online Demo
See Online Demo
Book Free Demo
Get
GET
CONTACT US
We tailor OTT platforms to exact client specifications, offering flexible and affordable pricing.
## Contributors
Your contribution is crucial to our success, regardless of its size. We appreciate your support and encourage you to
read our **[CONTRIBUTING](https://github.com/quasarstream/python-ffmpeg-video-streaming/blob/master/CONTRIBUTING.md)**
guide for detailed instructions on how to get involved. Together, we can make a significant impact.
Made with [contrib.rocks](https://contrib.rocks).
## License
The MIT License (MIT). See **[License File](https://github.com/quasarstream/python-ffmpeg-video-streaming/blob/master/LICENSE)** for more
information.