8000 Update README.md · ruanbl/ffmpeg-python@2db3c4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2db3c4a

Browse files
authored
Update README.md
1 parent bde72f4 commit 2db3c4a

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The latest version of `ffmpeg-python` can be acquired via a typical pip install:
8484
pip install ffmpeg-python
8585
```
8686

87-
Or clone the source and install locally:
87+
Or the source can be cloned and installed from locally:
8888
```bash
8989
git clone git@github.com:kkroening/ffmpeg-python.git
9090
pip install -e ./ffmpeg-python
@@ -111,7 +111,7 @@ See the [Examples README](https://github.com/kkroening/ffmpeg-python/tree/master
111111

112112
## Custom Filters
113113

114-
Don't see the filter you're looking for? `ffmpeg-python` includes shorthand notation for some of the most commonly used filters (such as `concat`), but it's easy to use any arbitrary ffmpeg filter:
114+
Don't see the filter you're looking for? While `ffmpeg-python` includes shorthand notation for some of the most commonly used filters (such as `concat`), all filters can be referenced via the `.filter` operator:
115115
```python
116116
stream = ffmpeg.input('dummy.mp4')
117117
stream = ffmpeg.filter(stream, 'fps', fps=25, round='up')
@@ -140,11 +140,23 @@ Arguments with special names such as `-qscale:v` can be specified as a keyword-a
140140
)
141141
```
142142

143+
Filters that take multiple input streams can be specified by passing the input streams as an array to `ffmpeg.filter`:
144+
```python
145+
main = ffmpeg.input('main.mp4')
146+
logo = ffmpeg.input('logo.png')
147+
stream = (
148+
ffmpeg
149+
.filter([main, logo], 'overlay', 10, 10)
150+
.output('out.mp4')
151+
.run()
152+
)
153+
```
154+
143155
When in doubt, refer to the [existing filters](https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py), [examples](https://github.com/kkroening/ffmpeg-python/tree/master/examples), and/or the [official ffmpeg documentation](https://ffmpeg.org/ffmpeg-filters.html).
144156

145157
## Frequently asked questions
146158

147-
**Why do I get an import/attribute/etc error from `import ffmpeg`?**
159+
**Why do I get an import/attribute/etc. error from `import ffmpeg`?**
148160

149161
Make sure you ran `pip install ffmpeg-python` and not `pip install ffmpeg` or `pip install python-ffmpeg`.
150162

@@ -168,7 +180,7 @@ As usual, take a look at the [examples](https://github.com/kkroening/ffmpeg-pyth
168180

169181
<img align="right" src="https://raw.githubusercontent.com/kkroening/ffmpeg-python/master/doc/logo.png" alt="ffmpeg-python logo" width="20%" />
170182

171-
One of the best things you can do to help make `ffmpeg-python` better is to answer [open questions](https://github.com/kkroening/ffmpeg-python/labels/question) in the issue tracker. The questions that are answered will be tagged and eventually incorporated into the documentation, examples, and other learning resources.
183+
One of the best things you can do to help make `ffmpeg-python` better is to answer [open questions](https://github.com/kkroening/ffmpeg-python/labels/question) in the issue tracker. The questions that are answered will be tagged and incorporated into the documentation, examples, and other learning resources.
172184

173185
If you notice things that could be better in the documentation or overall development experience, please say so in the [issue tracker](https://github.com/kkroening/ffmpeg-python/issues). And of course, feel free to report any bugs or submit feature requests.
174186

0 commit comments

Comments
 (0)
0