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
330fe09fea
commit
e14e9e5a35
16
README.md
16
README.md
@ -22,10 +22,10 @@ ffmpeg \
|
|||||||
Or if you prefer a non-fluent interface:
|
Or if you prefer a non-fluent interface:
|
||||||
```
|
```
|
||||||
import ffmpeg
|
import ffmpeg
|
||||||
in = ffmpeg.input('input.mp4')
|
node = ffmpeg.input('input.mp4')
|
||||||
flipped = ffmpeg.hflip(in)
|
node = ffmpeg.hflip(node)
|
||||||
out = ffmpeg.output(flipped)
|
node = ffmpeg.output(node)
|
||||||
ffmpeg.run(out)
|
ffmpeg.run(node)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Complex filter graphs
|
## Complex filter graphs
|
||||||
@ -90,7 +90,7 @@ It's also possible to clone the source and make sure it's on your python path (e
|
|||||||
>>> import ffmpeg
|
>>> import ffmpeg
|
||||||
```
|
```
|
||||||
|
|
||||||
## API Reference
|
## [API Reference](https://kkroening.github.io/ffmpeg-python/)
|
||||||
|
|
||||||
API documentation is automatically generated from python docstrings and hosted on github pages: https://kkroening.github.io/ffmpeg-python/
|
API documentation is automatically generated from python docstrings and hosted on github pages: https://kkroening.github.io/ffmpeg-python/
|
||||||
|
|
||||||
@ -100,12 +100,12 @@ import ffmpeg
|
|||||||
help(ffmpeg)
|
help(ffmpeg)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom filters
|
## Custom Filters
|
||||||
|
|
||||||
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')
|
node = ffmpeg.input('dummy.mp4')
|
||||||
node = FilterNode([node], 'custom_filter', 'a', 'b', kwarg1='c')
|
node = ffmpeg.filter_(node, 'custom_filter', 'a', 'b', kwarg1='c')
|
||||||
node = ffmpeg.output(node, 'dummy2.mp4')
|
node = ffmpeg.output(node, 'dummy2.mp4')
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ It should be fairly easy to use filters that aren't explicitly built into `ffmpe
|
|||||||
|
|
||||||
Pull requests are welcome as well.
|
Pull requests are welcome as well.
|
||||||
|
|
||||||
## Additional resources
|
## Additional Resources
|
||||||
|
|
||||||
- [FFmpeg Homepage](https://ffmpeg.org/)
|
- [FFmpeg Homepage](https://ffmpeg.org/)
|
||||||
- [FFmpeg Documentation](https://ffmpeg.org/ffmpeg.html)
|
- [FFmpeg Documentation](https://ffmpeg.org/ffmpeg.html)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user