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
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,22 +12,22 @@ There are tons of Python FFmpeg wrappers out there but they seem to lack complex
12
12
Flip a video horizontally:
13
13
```
14
14
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
15
24
ffmpeg \
16
25
.input('input.mp4') \
17
26
.hflip() \
18
27
.output('output.mp4') \
19
28
.run()
20
29
```
21
30
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
-
31
31
## Complex filter graphs
32
32
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.
0 commit comments