mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Update README.md
This commit is contained in:
parent
ae4b6a964d
commit
ce06215af5
12
README.md
12
README.md
@ -23,7 +23,8 @@ ffmpeg.run(stream)
|
||||
Or if you prefer a fluent interface:
|
||||
```python
|
||||
import ffmpeg
|
||||
(ffmpeg
|
||||
(
|
||||
ffmpeg
|
||||
.input('input.mp4')
|
||||
.hflip()
|
||||
.output('output.mp4')
|
||||
@ -54,7 +55,8 @@ import ffmpeg
|
||||
|
||||
in_file = ffmpeg.input('input.mp4')
|
||||
overlay_file = ffmpeg.input('overlay.png')
|
||||
(ffmpeg
|
||||
(
|
||||
ffmpeg
|
||||
.concat(
|
||||
in_file.trim(start_frame=10, end_frame=20),
|
||||
in_file.trim(start_frame=30, end_frame=40),
|
||||
@ -127,7 +129,8 @@ ffmpeg.run(stream)
|
||||
|
||||
Or fluently:
|
||||
```python
|
||||
(ffmpeg
|
||||
(
|
||||
ffmpeg
|
||||
.input('dummy.mp4')
|
||||
.filter_('fps', fps=25, round='up')
|
||||
.output('dummy2.mp4')
|
||||
@ -137,7 +140,8 @@ Or fluently:
|
||||
|
||||
Arguments with special names such as `-qscale:v` can be specified as a keyword-args dictionary as follows:
|
||||
```python
|
||||
(ffmpeg
|
||||
(
|
||||
ffmpeg
|
||||
.input('dummy.mp4')
|
||||
.output('dummy2.mp4', **{'qscale:v': 3})
|
||||
.run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user