8000 Update doc · Powercoder64/ffmpeg-python@765054e · GitHub
[go: up one dir, main page]

Skip to content

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 765054e

Browse files
committed
Update doc
1 parent 67fd50e commit 765054e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ If you're like me and find Python to be powerful and readable, it's easy with `f
4545
```
4646
import ffmpeg
4747
48-
in_file = ffmpeg.file_input('input.mp4')
49-
joined = ffmpeg.concat(
50-
ffmpeg.trim(in_file, start_frame=10, end_frame=20),
51-
ffmpeg.trim(in_file, start_frame=30, end_frame=40),
52-
ffmpeg.trim(in_file, start_frame=50, end_frame=60)
53-
)
54-
out = ffmpeg.file_output(joined, 'output.mp4')
55-
out.run()
48+
in_file = ffmpeg.file_input('input.mp4') \
49+
ffmpeg.concat(
50+
in_file.trim(start_frame=10, end_frame=20),
51+
in_file.trim(start_frame=30, end_frame=40),
52+
in_file.trim(start_frame=50, end_frame=60)
53+
) \
54+
.file_output('output.mp4') \
55+
.run()
5656
```
5757

5858
`ffmpeg-python` takes care of running `ffmpeg` with the command-line arguments that correspond to the above filter diagram, and it's easy to what's going on and make changes as needed.

0 commit comments

Comments
 (0)
0