Skip to content

Commit 7aa812b

Browse files
update readme
1 parent 18a7d0e commit 7aa812b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The best way to learn how to use this library is to review ****[the examples](ht
4242
There are two ways to open a file:
4343
#### 1. From a Local Path
4444
```python
45-
video = '/var/www/media/videos/test.mp4'
45+
video = '/var/www/media/videos/video.mp4'
4646
```
4747

4848
#### 2. From Clouds
@@ -89,7 +89,7 @@ rep_1440 = Representation(width=2560, height=1440, kilo_bitrate=6096)
8989
.dash(video, adaption='"id=0,streams=v id=1,streams=a"')
9090
.format('libx265')
9191
.add_rep(rep_144, rep_240, rep_360, rep_480, rep_720, rep_1080, rep_1440)
92-
.package('/var/www/media/videos/dash/test.mpd')
92+
.package('/var/www/media/videos/dash/dash-stream.mpd')
9393
)
9494

9595
```
@@ -111,7 +111,7 @@ import ffmpeg_streaming
111111
.hls(video, hls_time=10, hls_allow_cache=1)
112112
.format('libx264')
113113
.auto_rep()
114-
.package('/var/www/media/videos/hls/test.m3u8')
114+
.package('/var/www/media/videos/hls/hls-stream.m3u8')
115115
)
116116
```
117117

@@ -129,7 +129,7 @@ rep_720 = Representation(width=1280, height=720, kilo_bitrate=2048)
129129
.hls(video, hls_time=10, hls_allow_cache=1)
130130
.format('libx264')
131131
.add_rep(rep_360, rep_480, rep_720)
132-
.package('/var/www/media/videos/hls/test.m3u8')
132+
.package('/var/www/media/videos/hls/hls-stream.m3u8')
133133
)
134134
```
135135
**NOTE:** You cannot use HEVC(libx265) and VP9 formats for HLS packaging.
@@ -147,7 +147,7 @@ import ffmpeg_streaming
147147
.encryption('https://www.aminyazdanpanah.com/keys/enc.key', '/var/www/my_website_project/keys/enc.key')
148148
.format('libx264')
149149
.auto_rep(heights=[480, 360, 240])
150-
.package('/var/www/media/videos/hls/test.m3u8')
150+
.package('/var/www/media/videos/hls/hls-stream.m3u8')
151151
)
152152
```
153153
**NOTE:** It is very important to protect your key on your website using a token or a session/cookie(****It is highly recommended****).
@@ -173,7 +173,7 @@ def progress(percentage, ffmpeg):
173173
.hls(video)
174174
.format('libx264')
175175
.auto_rep()
176-
.package('/var/www/media/videos/hls/test.m3u8', progress=progress)
176+
.package('/var/www/media/videos/hls/hls-stream.m3u8', progress=progress)
177177
)
178178
```
179179
Output of the progress:
@@ -190,7 +190,7 @@ You can pass a local path to the `package` method. If there was no directory in
190190
.hls(video)
191191
.format('libx264')
192192
.auto_rep()
193-
.package('/var/www/media/videos/hls/test.m3u8', progress=progress)
193+
.package('/var/www/media/videos/hls/hls-stream.m3u8', progress=progress)
194194
)
195195
```
196196
It can also be null. The default path to save files is the input path.
@@ -241,7 +241,7 @@ You can extract the metadata of video file using the following code:
241241
```python
242242
from ffmpeg_streaming import FFProbe
243243

244-
ffprobe = FFProbe('/var/www/media/test.mp4')
244+
ffprobe = FFProbe('/var/www/media/video.mp4')
245245
```
246246
**NOTE:** You can save these metadata to your database.
247247

@@ -266,7 +266,7 @@ You can use these libraries to play your streams.
266266
- DASH and HLS: **[VLC media player](https://github.com/videolan/vlc)**
267267

268268

269-
**NOTE:** You should pass a manifest of stream(e.g. `https://www.aminyazdanpanah.com/videos/dash/lesson-1/test.mpd` or `/videos/hls/lesson-2/test.m3u8` ) to these players.
269+
**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.
270270

271271
## Contributing and Reporting Bugs
272272
I'd love your help in improving, correcting, adding to the specification.

0 commit comments

Comments
 (0)