[~] Refactor
This commit is contained in:
parent
89d901a0db
commit
885ed767bf
@ -1497,6 +1497,7 @@ def kernel_25(images, delay=None):
|
||||
|
||||
t7 = os.path.join(t3, 'output.gif')
|
||||
|
||||
if False:
|
||||
subprocess.check_call(
|
||||
[
|
||||
'convert',
|
||||
@ -1516,6 +1517,7 @@ def kernel_25(images, delay=None):
|
||||
if os.path.exists(t8):
|
||||
os.unlink(t8)
|
||||
|
||||
if False:
|
||||
subprocess.check_call(
|
||||
[
|
||||
'ffmpeg',
|
||||
@ -1524,6 +1526,27 @@ def kernel_25(images, delay=None):
|
||||
t8,
|
||||
]
|
||||
)
|
||||
t9 = os.path.join(t3, 'input.txt')
|
||||
|
||||
with io.open(t9, 'w') as f:
|
||||
f.write(
|
||||
'\n'.join(
|
||||
[
|
||||
'file %s' % o
|
||||
for o in t6
|
||||
]
|
||||
)
|
||||
)
|
||||
subprocess.check_call(
|
||||
[
|
||||
'ffmpeg',
|
||||
'-f',
|
||||
'concat',
|
||||
'-i',
|
||||
'%s' % t9,
|
||||
t8,
|
||||
]
|
||||
)
|
||||
|
||||
def kernel_26(o_18, image_name):
|
||||
t1 = [
|
||||
|
Loading…
Reference in New Issue
Block a user