mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-06 04:15:44 +08:00
Update readme
This commit is contained in:
parent
aa602a372f
commit
0d75357ceb
14
README.md
14
README.md
@ -12,10 +12,10 @@ There are tons of Python FFmpeg wrappers out there but they seem to lack complex
|
|||||||
Flip a video horizontally:
|
Flip a video horizontally:
|
||||||
```
|
```
|
||||||
import ffmpeg
|
import ffmpeg
|
||||||
node = ffmpeg.input('input.mp4')
|
v = ffmpeg.input('input.mp4')
|
||||||
node = ffmpeg.hflip(node)
|
v = ffmpeg.hflip(v)
|
||||||
node = ffmpeg.output(node)
|
v = ffmpeg.output(v)
|
||||||
ffmpeg.run(node)
|
ffmpeg.run(v)
|
||||||
```
|
```
|
||||||
|
|
||||||
Or if you prefer a fluent interface:
|
Or if you prefer a fluent interface:
|
||||||
@ -104,9 +104,9 @@ help(ffmpeg)
|
|||||||
|
|
||||||
Don't see the filter you're looking for? `ffmpeg-python` is a work in progress, but it's easy to use any arbitrary ffmpeg filter:
|
Don't see the filter you're looking for? `ffmpeg-python` is a work in progress, but it's easy to use any arbitrary ffmpeg filter:
|
||||||
```
|
```
|
||||||
node = ffmpeg.input('dummy.mp4')
|
v = ffmpeg.input('dummy.mp4')
|
||||||
node = ffmpeg.filter_(node, 'fps', fps=25, round='up')
|
v = ffmpeg.filter_(v, 'fps', fps=25, round='up')
|
||||||
node = ffmpeg.output(node, 'dummy2.mp4')
|
v = ffmpeg.output(v, 'dummy2.mp4')
|
||||||
```
|
```
|
||||||
|
|
||||||
When in doubt, refer to the [existing filters](https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py) and/or the [official ffmpeg documentation](https://ffmpeg.org/ffmpeg-filters.html).
|
When in doubt, refer to the [existing filters](https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py) and/or the [official ffmpeg documentation](https://ffmpeg.org/ffmpeg-filters.html).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user