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
Copy file name to clipboardExpand all lines: README.md
+45-31Lines changed: 45 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@
8
8
## Overview
9
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.
10
10
11
+
- The best way to learn how to use this library is to review ****[the examples](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/tree/master/examples)**** and browse the source code.
12
+
- Cloud dependencies are deprecated now and will be removed in a future release. For using clouds such as **[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, please visit **[this page](https://video.aminyazdanpanah.com/python/start/clouds)**
The best way to learn how to use this library is to review ****[the examples](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/tree/master/examples)**** and browse the source code.
40
42
41
43
### opening a file
42
44
There are two ways to open a file:
@@ -46,13 +48,14 @@ video = '/var/www/media/videos/video.mp4'
46
48
```
47
49
48
50
#### 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.
51
+
You can open a file from a cloud by passing a tuple of cloud configuration to the method.
52
+
53
+
In **[this page](https://video.aminyazdanpanah.com/python/start/clouds?r=open)**, you will find 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.
50
54
51
55
```python
52
56
video = (google_cloud, download_options, None)
53
57
```
54
58
55
-
Please visit **[this page](https://video.aminyazdanpanah.com/python/start/open-clouds)** to see more examples and usage of these clouds.
56
59
57
60
### DASH
58
61
**[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.
@@ -76,19 +79,20 @@ You can also create representations manually:
@@ -206,7 +210,9 @@ It can also be null. The default path to save files is the input path.
206
210
**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.
207
211
208
212
#### 2. To Clouds
209
-
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.
213
+
You can save your files to clouds by passing a array of cloud configuration to the `package` method.
214
+
215
+
In **[this page](https://video.aminyazdanpanah.com/python/start/clouds?r=save)**, you will find 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.
210
216
211
217
```python
212
218
(
@@ -230,7 +236,6 @@ A path can also be passed to save a copy of files on your local machine.
230
236
)
231
237
```
232
238
233
-
Please visit **[this page](https://video.aminyazdanpanah.com/python/start/save-clouds)** to see more examples and usage of these clouds.
234
239
235
240
**NOTE:** You can open a file from your local machine(or a cloud) and save files to a local path or a cloud(or multiple clouds) or both.
236
241
@@ -250,21 +255,30 @@ See the **[example](https://github.com/aminyazdanpanah/python-ffmpeg-video-strea
250
255
## Several Open Source Players
251
256
You can use these libraries to play your streams.
252
257
-**WEB**
253
-
- DASH and HLS: **[video.js](https://github.com/videojs/video.js)**
254
-
- DASH and HLS: **[DPlayer](https://github.com/MoePlayer/DPlayer)**
255
-
- DASH and HLS: **[Plyr](https://github.com/sampotts/plyr)**
256
-
- DASH and HLS: **[MediaElement.js](https://github.com/mediaelement/mediaelement)**
257
-
- DASH and HLS: **[Clappr](https://github.com/clappr/clappr)**
258
-
- DASH and HLS: **[Flowplayer](https://github.com/flowplayer/flowplayer)**
259
-
- DASH and HLS: **[Shaka Player](https://github.com/google/shaka-player)**
260
-
- DASH and HLS: **[videojs-http-streaming (VHS)](https://github.com/videojs/http-streaming)**
- **[VLC media player](https://github.com/videolan/vlc)**
268
282
269
283
**NOTE:** You should pass a manifest of stream(e.g. `https://www.aminyazdanpanah.com/PATH_TO_STREAM_DIRECTORY/dash-stream.mpd` or `/PATH_TO_STREAM_DIRECTORY/hls-stream.m3u8` ) to these players.
0 commit comments