spelling and add docstring
This commit is contained in:
parent
bd1a2fc718
commit
c6bbc47376
@ -1,9 +1,9 @@
|
|||||||
# Custom Filters
|
# Custom Filters
|
||||||
|
|
||||||
Sdd your one filters here. They must have the correct file naming:
|
Add your one filters here. They must have the correct file naming:
|
||||||
- for audio filter: a_[filter name].py
|
- for audio filter: a_[filter name].py
|
||||||
- for video filter: v_[filter name].py
|
- for video filter: v_[filter name].py
|
||||||
|
|
||||||
The file it self should contain only one filter in a function named `def filter(prope):`
|
The file itself should contain only one filter in a function named `def filter(prope, type):`
|
||||||
|
|
||||||
Check **v_addtext.py** for example.
|
Check **v_addtext.py** for example.
|
||||||
|
@ -5,6 +5,9 @@ from ffplayout.utils import _text
|
|||||||
|
|
||||||
|
|
||||||
def filter(probe):
|
def filter(probe):
|
||||||
|
"""
|
||||||
|
extract title from file name and overlay it
|
||||||
|
"""
|
||||||
font = ''
|
font = ''
|
||||||
source = os.path.basename(probe.src)
|
source = os.path.basename(probe.src)
|
||||||
match = re.match(_text.regex, source)
|
match = re.match(_text.regex, source)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user