Update doc

This commit is contained in:
Karl Kroening 2017-05-13 19:50:30 -10:00
parent 67fd50e18b
commit 765054e325

View File

@ -45,14 +45,14 @@ If you're like me and find Python to be powerful and readable, it's easy with `f
``` ```
import ffmpeg import ffmpeg
in_file = ffmpeg.file_input('input.mp4') in_file = ffmpeg.file_input('input.mp4') \
joined = ffmpeg.concat( ffmpeg.concat(
ffmpeg.trim(in_file, start_frame=10, end_frame=20), in_file.trim(start_frame=10, end_frame=20),
ffmpeg.trim(in_file, start_frame=30, end_frame=40), in_file.trim(start_frame=30, end_frame=40),
ffmpeg.trim(in_file, start_frame=50, end_frame=60) in_file.trim(start_frame=50, end_frame=60)
) ) \
out = ffmpeg.file_output(joined, 'output.mp4') .file_output('output.mp4') \
out.run() .run()
``` ```
`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. `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.