fix spelling

This commit is contained in:
jb-alvarado 2021-03-30 14:10:35 +02:00
parent b4c4d15541
commit 0a7b19dae4
6 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
"""
cunstom audio filter, which get loaded automatically
custom audio filter, which get loaded automatically
"""
from ffplayout.utils import get_float, stdin_args

View File

@ -31,7 +31,7 @@ from ffplayout.utils import (is_advertisement, lower_third, messenger, pre,
# ------------------------------------------------------------------------------
# building filters,
# when is needed add individuell filters to match output format
# when is needed add individual filters to match output format
# ------------------------------------------------------------------------------
@ -133,7 +133,7 @@ def fade_filter(duration, seek, out, track=''):
def overlay_filter(duration, advertisement, ad_last, ad_next):
"""
overlay logo: when is an ad don't overlay,
when ad is comming next fade logo out,
when ad is coming next fade logo out,
when clip before was an ad fade logo in
"""
logo_filter = '[v]null'
@ -234,7 +234,7 @@ def realtime_filter(duration, track=''):
def split_filter(filter_type):
"""
this filter splits the media input in multiple outputs,
to be able to have differnt streaming/HLS outputs
to be able to have different streaming/HLS outputs
"""
map_node = []
prefix = ''

View File

@ -1,5 +1,5 @@
"""
cunstom video filter, which get loaded automatically
custom video filter, which get loaded automatically
"""
import os

View File

@ -36,7 +36,7 @@ def clean_ts():
"""
this function get all *.m3u8 playlists from config,
read lines from them until it founds first *.ts file,
then it checks if files on harddrive are older then this first *.ts
then it checks if files on hard drive are older then this first *.ts
and if so delete them
"""
m3u8_files = [p for p in playout.hls_output if 'm3u8' in p]
@ -65,7 +65,7 @@ def clean_ts():
def output():
"""
this output is hls output, no preprocess is needed.
this output is hls output, no pre-process is needed.
"""
year = get_date(False).split('-')[0]
sync_op.realtime = True

View File

@ -113,7 +113,7 @@ def timed_source(node, last):
if (total_delta > node['out'] - node['seek'] and not last) \
or stdin_args.loop or not playlist.length:
# when we are in the 24 houre range, get the clip
# when we are in the 24 hour range, get the clip
node_ = src_or_dummy(node)
elif total_delta <= 0:
@ -398,7 +398,7 @@ class GetSourceFromPlaylist:
handle except playlist end
"""
if stdin_args.loop and self.node:
# when loop paramter is set and playlist node exists,
# when loop parameter is set and playlist node exists,
# jump to playlist start and play again
self.list_start = self.last_time + 1
self.node = None

View File

@ -112,7 +112,7 @@ def get_time(time_format):
get different time formats:
- full_sec > current time in seconds
- stamp > current date time in seconds
- else > current time in HH:MM:SS
- or current time in HH:MM:SS
"""
date_time = datetime.today()
@ -267,7 +267,7 @@ playout.hls_output = _cfg['out']['hls_output'].split(' ')
class CustomFormatter(logging.Formatter):
"""
Logging Formatter to add colors and count warning / errors
Logging formatter to add colors and count warning / errors
"""
grey = '\x1b[38;1m'
@ -436,7 +436,7 @@ class Mailer:
def check_if_new(self, msg):
"""
send messege only when is new or the rate_limit is pass
send message only when is new or the rate_limit is pass
"""
if os.path.isfile(self.temp_msg):
mod_time = os.path.getmtime(self.temp_msg)
@ -580,12 +580,12 @@ def validate_ffmpeg_libs():
# ------------------------------------------------------------------------------
# probe media infos
# probe media info's
# ------------------------------------------------------------------------------
class MediaProbe:
"""
get infos about media file, similare to mediainfo
get info's about media file, similar to mediainfo
"""
def __init__(self):
@ -598,7 +598,7 @@ class MediaProbe:
def load(self, file):
"""
load media file with ffprobe and get infos out of it
load media file with ffprobe and get info's out of it
"""
self.src = file
self.format = None
@ -693,7 +693,7 @@ def terminate_processes(watcher=None):
def ffmpeg_stderr_reader(std_errors, decoder):
"""
read fmpeg stderr decoder and encoder instance
read ffmpeg stderr decoder and encoder instance
and log the output
"""
if decoder:
@ -828,7 +828,7 @@ def set_length(duration, seek, out):
def loop_input(source, src_duration, target_duration):
"""
loop filles n times
loop files n times
"""
loop_count = math.ceil(target_duration / src_duration)
messenger.info(f'Loop "{source}" {loop_count} times, '
@ -839,7 +839,7 @@ def loop_input(source, src_duration, target_duration):
def gen_dummy(duration):
"""
generate a dummy clip, with black color and empty audiotrack
generate a dummy clip, with black color and empty audio track
"""
color = '#121212'
# IDEA: add noise could be an config option