File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ ffmpeg.run(stream)
23
23
Or if you prefer a fluent interface:
24
24
``` python
25
25
import ffmpeg
26
- (ffmpeg
26
+ (
27
+ ffmpeg
27
28
.input(' input.mp4' )
28
29
.hflip()
29
30
.output(' output.mp4' )
@@ -54,7 +55,8 @@ import ffmpeg
54
55
55
56
in_file = ffmpeg.input(' input.mp4' )
56
57
overlay_file = ffmpeg.input(' overlay.png' )
57
- (ffmpeg
58
+ (
59
+ ffmpeg
58
60
.concat(
59
61
in_file.trim(start_frame = 10 , end_frame = 20 ),
60
62
in_file.trim(start_frame = 30 , end_frame = 40 ),
@@ -127,7 +129,8 @@ ffmpeg.run(stream)
127
129
128
130
Or fluently:
129
131
``` python
130
- (ffmpeg
132
+ (
133
+ ffmpeg
131
134
.input(' dummy.mp4' )
132
135
.filter_(' fps' , fps = 25 , round = ' up' )
133
136
.output(' dummy2.mp4' )
@@ -137,7 +140,8 @@ Or fluently:
137
140
138
141
Arguments with special names such as ` -qscale:v ` can be specified as a keyword-args dictionary as follows:
139
142
``` python
140
- (ffmpeg
143
+ (
144
+ ffmpeg
141
145
.input(' dummy.mp4' )
142
146
.output(' dummy2.mp4' , ** {' qscale:v' : 3 })
143
147
.run()
You can’t perform that action at this time.
0 commit comments