From 765054e3255e5a0455df44cb29c7d4db993eadab Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Sat, 13 May 2017 19:50:30 -1000 Subject: [PATCH] Update doc --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 90e0da6..9d9f334 100644 --- a/README.md +++ b/README.md @@ -45,14 +45,14 @@ If you're like me and find Python to be powerful and readable, it's easy with `f ``` import ffmpeg -in_file = ffmpeg.file_input('input.mp4') -joined = ffmpeg.concat( - ffmpeg.trim(in_file, start_frame=10, end_frame=20), - ffmpeg.trim(in_file, start_frame=30, end_frame=40), - ffmpeg.trim(in_file, start_frame=50, end_frame=60) -) -out = ffmpeg.file_output(joined, 'output.mp4') -out.run() +in_file = ffmpeg.file_input('input.mp4') \ +ffmpeg.concat( + in_file.trim(start_frame=10, end_frame=20), + in_file.trim(start_frame=30, end_frame=40), + in_file.trim(start_frame=50, end_frame=60) + ) \ + .file_output('output.mp4') \ + .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.