You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package uses the **[FFmpeg](https://ffmpeg.org)** to package media content for online streaming such as DASH and HLS. You can also use **[DRM](https://en.wikipedia.org/wiki/Digital_rights_management)** for HLS packaging. There are several options to open a file from a cloud and save files to clouds as well.
9
-
-**[Full Documentation](https://video.aminyazdanpanah.com/python/)** is available describing all features and components.
10
-
-In this version(>=v0.1.0) all codes are rewritten from scratch. If you find any bugs in the library, please **[file an issue](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/issues)**. **[Pull requests](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/pulls)** are also welcome.
11
-
6
+
-**[Full Documentation](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/)** is available describing all features and components.
7
+
-**Your support is crucial to our ongoing work on open-source projects**. We kindly request that you consider exploring the **[available options](#support-us)** to assist us in this endeavor. Your encouragement and assistance will help us continue to deliver high-quality results in this important area. Thank you for your consideration and support.
8
+
12
9
**Contents**
13
10
-[Requirements](#requirements)
14
11
-[Installation](#installation)
@@ -23,6 +20,7 @@ This package uses the **[FFmpeg](https://ffmpeg.org)** to package media content
23
20
-[Conversion](#conversion)
24
21
-[Several Open Source Players](#several-open-source-players)
25
22
-[FAQs](#faqs)
23
+
-[Support Us](#support-us)
26
24
-[Contributing and Reporting Bugs](#contributing-and-reporting-bugs)
27
25
-[Credits](#credits)
28
26
-[License](#license)
@@ -61,7 +59,7 @@ See **[FFmpeg Protocols Documentation](https://ffmpeg.org/ffmpeg-protocols.html)
61
59
62
60
**For example:**
63
61
```python
64
-
video = ffmpeg_streaming.input('https://www.aminyazdanpanah.com/?"PATH TO A VIDEO FILE" or "PATH TO A LIVE HTTP STREAM"')
62
+
video = ffmpeg_streaming.input('https://www.hadronepoch.org/?"PATH TO A VIDEO FILE" or "PATH TO A LIVE HTTP STREAM"')
video = ffmpeg_streaming.input(s3, bucket_name="bucket-name", key="video.mp4")
75
73
```
76
-
Visit **[this page](https://video.aminyazdanpanah.com/python/start/clouds?r=open)** to see some examples of opening a file from **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
74
+
Visit **[this page](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start/clouds?r=open)** to see some examples of opening a file from **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
77
75
78
76
#### 3. Capture Webcam or Screen (Live Streaming)
79
77
You can pass the name of a supported, connected capture device(i.e. the name of a webcam, camera, screen and etc) to the `input` method to stream a live media over the network from your connected device.
See **[DASH section](https://video.aminyazdanpanah.com/python/start?r=dash#dash)** in the documentation, for more examples.
113
+
See **[DASH section](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start?r=dash#dash)** in the documentation, for more examples.
116
114
### HLS
117
115
**[HTTP Live Streaming (also known as HLS)](https://developer.apple.com/streaming/)** is an HTTP-based adaptive bitrate streaming communications protocol implemented by Apple Inc. as part of its QuickTime, Safari, OS X, and iOS software. Client implementations are also available in Microsoft Edge, Firefox, and some versions of Google Chrome. Support is widespread in streaming media servers. [Learn more](https://en.wikipedia.org/wiki/HTTP_Live_Streaming)
See **[HLS section](https://video.aminyazdanpanah.com/python/start?r=hls#hls)** in the documentation, for more examples such as Fragmented MP4, live from camera/screen and so on.
137
+
See **[HLS section](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start?r=hls#hls)** in the documentation, for more examples such as Fragmented MP4, live from camera/screen and so on.
140
138
141
139
#### Encryption(DRM)
142
140
The encryption process requires some kind of secret (key) together with an encryption algorithm. HLS uses AES in cipher block chaining (CBC) mode. This means each block is encrypted using the ciphertext of the preceding block. [Learn more](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation)
@@ -153,7 +151,7 @@ from ffmpeg_streaming import Formats
153
151
save_to ='/home/public_html/"PATH TO THE KEY DIRECTORY"/key'
154
152
155
153
#A URL (or a path) to access the key on your website
156
-
url ='https://www.aminyazdanpanah.com/?"PATH TO THE KEY DIRECTORY"/key'
154
+
url ='https://www.hadronepoch.org/?"PATH TO THE KEY DIRECTORY"/key'
An integer as a "key rotation period" can also be passed to the `encryption` method (i.e. `encryption(save_to, url, 10)`) to use a different key for each set of segments, rotating to a new key after this many segments. For example, if 10 segment files have been generated then it will generate a new key. If you set this value to **`1`**, each segment file will be encrypted with a new encryption key. This can improve security and allows for more flexibility.
167
165
168
-
See **[the example](https://video.aminyazdanpanah.com/python/start?r=enc-hls#hls-encryption)** for more information.
166
+
See **[the example](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start?r=enc-hls#hls-encryption)** for more information.
169
167
170
168
**IMPORTANT:** It is very important to protect your key(s) on your website. For example, you can use a token(using a Get/Post HTTP method or add a token to authorization header) to check if the user is eligible to access the key or not. You can also use a session(or cookie) on your website to restrict access to the key(s)(**It is highly recommended**).
171
169
@@ -275,7 +273,7 @@ A path can also be passed to save a copy of files to your local machine.
Visit **[this page](https://video.aminyazdanpanah.com/python/start/clouds?r=save)** to see some examples of saving files to **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
276
+
Visit **[this page](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start/clouds?r=save)** to see some examples of saving files to **[Amazon S3](https://aws.amazon.com/s3)**, **[Google Cloud Storage](https://console.cloud.google.com/storage)**, **[Microsoft Azure Storage](https://azure.microsoft.com/en-us/features/storage-explorer/)**, and a custom cloud.
279
277
280
278
**NOTE:** This option is only valid for **[VOD](https://en.wikipedia.org/wiki/Video_on_demand)** (it does not support live streaming).
281
279
@@ -305,7 +303,7 @@ from ffmpeg_streaming import FFProbe
305
303
ffprobe = FFProbe('/var/media/video.mp4')
306
304
```
307
305
308
-
See **[the example](https://video.aminyazdanpanah.com/python/start?r=metadata#metadata)** for more information.
306
+
See **[the example](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start?r=metadata#metadata)** for more information.
309
307
310
308
### Conversion
311
309
You can convert your stream to a file or to another stream protocol. You should pass a manifest of the stream to the `input` method:
@@ -314,7 +312,7 @@ You can convert your stream to a file or to another stream protocol. You should
314
312
```python
315
313
from ffmpeg_streaming import Formats, Bitrate, Representation, Size
316
314
317
-
video = ffmpeg_streaming.input('https://www.aminyazdanpanah.com/?PATH/TO/HLS-MANIFEST.M3U8')
315
+
video = ffmpeg_streaming.input('https://www.hadronepoch.org/?PATH/TO/HLS-MANIFEST.M3U8')
video = ffmpeg_streaming.input('https://www.aminyazdanpanah.com/?PATH/TO/MANIFEST.MPD or M3U8')
335
+
video = ffmpeg_streaming.input('https://www.hadronepoch.org/?PATH/TO/MANIFEST.MPD or M3U8')
338
336
339
337
stream = video.stream2file(Formats.h264())
340
338
stream.output('/var/media/new-video.mp4')
@@ -374,7 +372,7 @@ You can use these libraries to play your streams.
374
372
375
373
## FAQs
376
374
**I created stream files and now what should I pass to a player?**
377
-
You must pass a **master playlist(manifest) URL**(e.x. `https://www.aminyazdanpanah.com/?"PATH TO STREAM DIRECTORY"/dash-stream.mpd` or `/PATH_TO_STREAM_DIRECTORY/hls-stream.m3u8` ) to a player.
375
+
You must pass a **master playlist(manifest) URL**(e.x. `https://www.hadronepoch.org/?"PATH TO STREAM DIRECTORY"/dash-stream.mpd` or `/PATH_TO_STREAM_DIRECTORY/hls-stream.m3u8` ) to a player.
378
376
See the demo page of these players for more information(**[hls.js Demo](https://hls-js.netlify.app/demo/)**, **[dash.js Demo](https://reference.dashif.org/dash.js/v3.1.2/samples/dash-if-reference-player/index.html)**, **[videojs Demo](https://videojs.com/advanced?video=elephantsdream)** and etc).
379
377
380
378
**My player does not show the quality selector button to change the video quality?**
@@ -386,16 +384,28 @@ If you save your stream content to a cloud(i.e. **[Amazon S3](https://aws.amazon
386
384
**Does [IOS](https://www.apple.com/ios) support the DASH stream?**
387
385
No, IOS does not have native support for DASH. Although there are some libraries such as **[Viblast](https://github.com/Viblast/ios-player-sdk)** and **[MPEGDASH-iOS-Player](https://github.com/MPEGDASHPlayer/MPEGDASH-iOS-Player)** to support this technique, I have never tested them. So maybe some of them will not work properly.
388
386
389
-
See [this page](https://video.aminyazdanpanah.com/python/start?r=faq#faq) for more FAQs.
387
+
See [this page](https://https://www.hadronepoch.org/op/python/ffmpeg-streaming/start?r=faq#faq) for more FAQs.
388
+
389
+
## Support Us
390
+
We greatly appreciate your support in our efforts to contribute to open-source projects. If you're able to, we kindly ask that you take a moment to check out the available options for assisting us. Your help would enable us to maintain our commitment to producing exceptional results. Thank you for your support.
391
+
392
+
### 1. purchasing a service or product
393
+
Our company offers a range of products and services, including video streaming, video-on-demand, video conferencing, and an HR assistance application. If you wish to purchase any of these offerings, kindly direct your inquiries to our email address at **[email protected]**. We will be updating **[our website](https://www.hadronepoch.org)** with further details in the near future.
394
+
395
+
### 2. sponsoring the project or org
396
+
Thank you for considering the option of sponsoring our organization. Your generous donations will greatly assist us in our efforts to enhance and expand our existing libraries, as well as build new ones. There are several options available for sponsorship, including clicking on the **[provided link](https://github.com/sponsors/hadronepoch)** or utilizing alternative methods such as **[crypto](https://hadronepoch.org/support)**, **[Patreon](https://patreon.com/HadronEpoch)**, **[Open Collective](https://opencollective.com/hadronepoch)**, and **[ko-fi](https://ko-fi.com/hadronepoch)**. Your support is greatly appreciated and will help us to continue our mission of providing valuable resources to the community.
390
397
398
+
### 3. Star and Share
399
+
If you find this project to be of value, kindly consider **[starring it](stargazers)** and **sharing it** with those in your network who may benefit from this type of software. Your support would be greatly appreciated and would help to increase visibility and accessibility of this project.
391
400
401
+
Thank you for your consideration.
392
402
## Contributing and Reporting Bugs
393
403
I'd love your help in improving, correcting, adding to the specification. Please **[file an issue](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/issues)** or **[submit a pull request](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/pulls)**.
394
404
- See **[Contributing File](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/blob/master/CONTRIBUTING.md)** for more information.
395
405
- If you discover a security vulnerability within this package, please see **[SECURITY File](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/blob/master/SECURITY.md)** for more information.
0 commit comments