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(DASH and HLS)
8
+
## Overview
9
+
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 clouds and save files to them as well.
9
10
10
11
**Contents**
11
12
-[Requirements](#requirements)
@@ -17,6 +18,7 @@ This package uses the **[FFmpeg](https://ffmpeg.org)** to package media content
17
18
-[Encrypted HLS](#encrypted-hls)
18
19
-[Progress](#progress)
19
20
-[Probe](#probe)
21
+
-[Saving Files](#saving-files)
20
22
-[Several Open Source Players](#several-open-source-players)
21
23
-[Contributing and Reporting Bugs](#contributing-and-reporting-bugs)
22
24
-[Credits](#credits)
@@ -43,15 +45,14 @@ There are two ways to open a file:
43
45
video ='/var/www/media/videos/test.mp4'
44
46
```
45
47
46
-
#### 2. From a cloud
47
-
```python
48
-
from ffmpeg_streaming.from_clouds import from_url
48
+
#### 2. From Clouds
49
+
You can open a file from a cloud by passing a tuple of cloud configuration to the method. There are some options to open a file from **[Amazon Web Services (AWS)](https://aws.amazon.com/)**, **[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.
Please **[visit the 'open a file from a cloud' page](https://video.aminyazdanpanah.com/python/start/open-clouds)** to see more examples and usage of these clouds.
52
+
```python
53
+
video = (google_cloud, download_options, None)
52
54
```
53
-
**NOTE:** This package uses **[Requests](https://2.python-requests.org/en/master/)** to send and receive files.
54
-
55
+
55
56
### DASH
56
57
**[Dynamic Adaptive Streaming over HTTP (DASH)](https://dashif.org/)**, also known as MPEG-DASH, is an adaptive bitrate streaming technique that enables high quality streaming of media content over the Internet delivered from conventional HTTP web servers.
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)
145
134
146
-
You need to pass both `URL to the key` and `path to save a random key` to the `encryption` method:
135
+
You need to pass both `URL to the key` and `a path to save a random key on your local machine` to the `encryption` method:
It can also be null. The default path to save files is the input path.
202
+
```python
203
+
(
204
+
ffmpeg_streaming
205
+
.hls(video)
206
+
.format('libx264')
207
+
.auto_rep()
208
+
.package(progress=progress)
209
+
)
210
+
```
211
+
**NOTE:** If you open a file from cloud and did not pass a path to save a file, you will have to pass a local path to the `package` method.
213
212
213
+
#### 2. To Clouds
214
+
You can save your files to clouds by passing a array of cloud configuration to the `package` method. There are some options to save files to **[Amazon Web Services (AWS)](https://aws.amazon.com/)**, **[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.
215
+
216
+
Please **[visit the 'save files to clouds' page](https://video.aminyazdanpanah.com/python/start/save-clouds)** to see more examples and usage of these clouds.
@@ -237,10 +261,9 @@ I'd love your help in improving, correcting, adding to the specification.
237
261
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)**.
238
262
- Please see **[Contributing File](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/blob/master/CONTRIBUTING.md)** for more information.
239
263
- If you have any questions or you want to report a bug, please just **[file an issue](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/issues)**
240
-
- 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 to help with that.
241
-
242
-
**NOTE:** If you have any questions about this package or FFMpeg, please **DO NOT** send an email to me or submit the contact form on my website. Emails related to these issues **will be ignored**.
264
+
- 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.
243
265
266
+
**NOTE:** If you have any questions about this package or FFmpeg, please **DO NOT** send an email to me (or submit the contact form on my website). Emails regarding these issues **will be ignored**.
0 commit comments