diff --git a/README.md b/README.md index 6143fc0..d00dba3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,15 @@ There are tons of Python FFmpeg wrappers out there but they seem to lack complex Flip a video horizontally: ``` import ffmpeg +node = ffmpeg.input('input.mp4') +node = ffmpeg.hflip(node) +node = ffmpeg.output(node) +ffmpeg.run(node) +``` + +Or if you prefer a fluent interface: +``` +import ffmpeg ffmpeg \ .input('input.mp4') \ .hflip() \ @@ -19,15 +28,6 @@ ffmpeg \ .run() ``` -Or if you prefer a non-fluent interface: -``` -import ffmpeg -node = ffmpeg.input('input.mp4') -node = ffmpeg.hflip(node) -node = ffmpeg.output(node) -ffmpeg.run(node) -``` - ## Complex filter graphs 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.