@@ -58,8 +58,8 @@ in_file = ffmpeg.input('input.mp4')
58
58
overlay_file = ffmpeg.input('overlay.png')
59
59
ffmpeg \
60
60
.concat(
61
- in_file.trim(10, 20),
62
- in_file.trim(30, 40),
61
+ in_file.trim(start_frame= 10, end_frame= 20),
62
+ in_file.trim(start_frame= 30, end_frame= 40),
63
63
) \
64
64
.overlay(overlay_file.hflip()) \
65
65
.drawbox(50, 50, 120, 120, color='red', thickness=5) \
@@ -74,5 +74,54 @@ ffmpeg \
74
74
Real-world signal graphs can get a heck of a lot more complex, but ` ffmpeg-python ` handles them with ease.
75
75
76
76
77
- # [ API Reference ] ( https://kkroening.github.io/ffmpeg-python/ )
77
+ ## Installation
78
78
79
+ The easiest way to acquire the latest version of ` ffmpeg-python ` is through pip:
80
+
81
+ ```
82
+ pip install ffmpeg-python
83
+ ```
84
+
85
+ It's also possible to clone the source and make sure it's on your python path (e.g. ` $PYTHONPATH ` , ` sys.path ` , etc.):
86
+ ```
87
+ > git clone git@github.com:kkroening/ffmpeg-python.git
88
+ > export PYTHONPATH=${PYTHONPATH}:ffmpeg-python
89
+ > python
90
+ >>> import ffmpeg
91
+ ```
92
+
93
+ ## API Reference
94
+
95
+ API documentation is automatically generated from python docstrings and hosted on github pages: https://kkroening.github.io/ffmpeg-python/
96
+
97
+ Alternatively, standard python help is available, such as at the python REPL prompt as follows:
98
+ ```
99
+ import ffmpeg
100
+ help(ffmpeg)
101
+ ```
102
+
103
+ ## Custom filters
104
+
105
+ 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:
106
+ ```
107
+ node = ffmpeg.input('dummy.mp4')
108
+ node = FilterNode([node], 'custom_filter', 'a', 'b', kwarg1='c')
109
+ node = ffmpeg.output(node, 'dummy2.mp4')
110
+ ```
111
+
112
+ ## Contributing
113
+
114
+ Please feel free to report any bugs or feature requests.
115
+
116
+ It should be fairly easy to use filters that aren't explicitly built into ` ffmpeg-python ` but if there's a filter you'd really like to see included in the library, don't hesitate to open a feature request in GitHub.
117
+
118
+ Pull requests are welcome as well.
119
+
120
+ ## Additional resources
121
+
122
+ [ FFmpeg Homepage] ( https://ffmpeg.org/ )
123
+ [ FFmpeg Documentation] ( https://ffmpeg.org/ffmpeg.html )
124
+ [ FFmpeg Filters Documentation] ( https://ffmpeg.org/ffmpeg-filters.html )
125
+ [ ffmpeg-python API Reference] ( https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/tests/test_ffmpeg.py )
126
+ [ ffmpeg-python Filters] ( https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py )
127
+ [ ffmpeg-python Tests] ( https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/tests/test_ffmpeg.py )
0 commit comments