8000 Update readme · Powercoder64/ffmpeg-python@0d75357 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d75357

Browse files
committed
Update readme
1 parent aa602a3 commit 0d75357

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ There are tons of Python FFmpeg wrappers out there but they seem to lack complex
1212
Flip a video horizontally:
1313
```
1414
import ffmpeg
15-
node = ffmpeg.input('input.mp4')
16-
node = ffmpeg.hflip(node)
17-
node = ffmpeg.output(node)
18-
ffmpeg.run(node)
15+
v = ffmpeg.input('input.mp4')
16+
v = ffmpeg.hflip(v)
17+
v = ffmpeg.output(v)
18+
ffmpeg.run(v)
1919
```
2020

2121
Or if you prefer a fluent interface:
@@ -104,9 +104,9 @@ help(ffmpeg)
104104

105105
Don't see the filter you're looking for? `ffmpeg-python` is a work in progress, but it's easy to use any arbitrary ffmpeg filter:
106106
```
107-
node = ffmpeg.input('dummy.mp4')
108-
node = ffmpeg.filter_(node, 'fps', fps=25, round='up')
109-
node = ffmpeg.output(node, 'dummy2.mp4')
107+
v = ffmpeg.input('dummy.mp4')
108+
v = ffmpeg.filter_(v, 'fps', fps=25, round='up')
109+
v = ffmpeg.output(v, 'dummy2.mp4')
110110
```
111111

112112
When in doubt, refer to the [existing filters](https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py) and/or the [official ffmpeg documentation](https://ffmpeg.org/ffmpeg-filters.html).

0 commit comments

Comments
 (0)
0