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

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa602a3

Browse files
committed
Update readme
1 parent 7bffe96 commit aa602a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ 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)
19+
```
20+
21+
Or if you prefer a fluent interface:
22+
```
23+
import ffmpeg
1524
ffmpeg \
1625
.input('input.mp4') \
1726
.hflip() \
1827
.output('output.mp4') \
1928
.run()
2029
```
2130

22-
Or if you prefer a non-fluent interface:
23-
```
24-
import ffmpeg
25-
node = ffmpeg.input('input.mp4')
26-
node = ffmpeg.hflip(node)
27-
node = ffmpeg.output(node)
28-
ffmpeg.run(node)
29-
```
30-
3131
## Complex filter graphs
3232
FFmpeg is extremely powerful, but its command-line interface gets really complicated really quickly - especially when working with signal graphs and doing anything more than trivial.
3333

0 commit comments

Comments
 (0)
0