hide banner

This commit is contained in:
j 2024-04-18 11:03:03 +02:00
parent 3f603ae136
commit 3eced0eaef

View file

@ -122,6 +122,7 @@ for clip in edit:
] ]
cmd = [ cmd = [
'ffmpeg', 'ffmpeg',
'-hide_banner',
'-nostats', '-loglevel', 'error', '-nostats', '-loglevel', 'error',
] + audio + [ ] + audio + [
'-ss', str(clip['in']), '-ss', str(clip['in']),
@ -160,9 +161,12 @@ for clip in edit:
txt = output + '.txt' txt = output + '.txt'
with open(txt, 'w') as fd: with open(txt, 'w') as fd:
fd.write('file ' + '\nfile '.join(files)) fd.write('file ' + '\nfile '.join(files))
cmd = ['ffmpeg', cmd = [
'ffmpeg',
'-hide_banner',
'-nostats', '-loglevel', 'error', '-nostats', '-loglevel', 'error',
'-y', '-f', 'concat', '-safe', '0', '-i', txt, '-c', 'copy', output] '-y', '-f', 'concat', '-safe', '0', '-i', txt, '-c', 'copy', output
]
run(cmd) run(cmd)
os.unlink(txt) os.unlink(txt)