Add files via upload

This commit is contained in:
Akash Bora
2022-12-09 19:59:44 +05:30
committed by GitHub
parent b7ada09f76
commit aef5426c84
6 changed files with 240 additions and 186 deletions

View File

@@ -23,6 +23,7 @@ def mosh(infile, outfile, m, c, n, a, f, k):
audio = a
firstframe = f
kill = k
if filein is None or os.path.exists(filein) == False:
print("> step 0/5: valid input file required!")
print("use -h to see help")
@@ -125,15 +126,33 @@ def mosh(infile, outfile, m, c, n, a, f, k):
# keep first video frame or not
if firstframe:
if mode == "bloom":
if positframes==1:
positframes=2
for x in l[0:positframes]:
if x[2] == 'video':
clean.append(x)
# clean the list by killing "big" frames
for x in l[positframes:]:
if x[1] <= (max_frame_size * kill) :
clean.append(x)
else:
for x in l[0:10]:
if x[2] == 'video':
clean.append(x)
# clean the list by killing "big" frames
for x in l[10:]:
if x[1] <= (max_frame_size * kill) :
clean.append(x)
else:
for x in l:
if x[2] == 'video':
clean.append(x)
break
# clean the list by killing "big" frames
for x in l:
if x[1] <= (max_frame_size * kill) :
clean.append(x)
# clean the list by killing "big" frames
for x in l:
if x[1] <= (max_frame_size * kill) :
clean.append(x)
# FX modes
if mode == "void":
print('> step 3/5 : mode void')