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
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ This package uses the **[FFmpeg](https://ffmpeg.org)** to package media content
17
17
-[HLS](#hls)
18
18
-[Encrypted HLS](#encrypted-hls)
19
19
-[Progress](#progress)
20
-
-[Probe](#probe)
21
20
-[Saving Files](#saving-files)
21
+
-[Probe](#probe)
22
22
-[Several Open Source Players](#several-open-source-players)
23
23
-[Contributing and Reporting Bugs](#contributing-and-reporting-bugs)
24
24
-[Credits](#credits)
@@ -48,7 +48,7 @@ video = '/var/www/media/videos/test.mp4'
48
48
#### 2. From Clouds
49
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.
50
50
51
-
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.
51
+
Please visit **[this page](https://video.aminyazdanpanah.com/python/start/open-clouds)** to see more examples and usage of these clouds.
52
52
```python
53
53
video = (google_cloud, download_options, None)
54
54
```
@@ -156,7 +156,7 @@ You can get realtime information about transcoding by passing callable methods t
156
156
import sys
157
157
import ffmpeg_streaming
158
158
159
-
defprogress(percentage, ffmpeg, media):
159
+
defprogress(percentage, ffmpeg):
160
160
# You can update a field in your database
161
161
# You can also create a socket connection and show a progress bar to users
You can extract the metadata of video file using the following code:
179
-
```python
180
-
from ffmpeg_streaming import FFProbe
181
-
182
-
ffprobe = FFProbe('/var/www/media/test.mp4')
183
-
```
184
-
**NOTE:** You can save these metadata to your database.
185
-
186
-
See the **[example](https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming/blob/master/examples/probe.py)** for more information.
187
177
### Saving Files
188
178
There are several options to save your files.
189
179
@@ -213,7 +203,7 @@ It can also be null. The default path to save files is the input path.
213
203
#### 2. To Clouds
214
204
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
205
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.
206
+
Please visit **[this page](https://video.aminyazdanpanah.com/python/start/save-clouds)** to see more examples and usage of these clouds.
217
207
```python
218
208
(
219
209
ffmpeg_streaming
@@ -235,6 +225,21 @@ A path can also be passed to save a copy of files on your local machine.
235
225
progress=progress)
236
226
)
237
227
```
228
+
**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.
0 commit comments