Compare commits

...

2 Commits

Author SHA1 Message Date
j 4dcf945a62 keep item in/out 2024-04-18 11:03:17 +02:00
j 3eced0eaef hide banner 2024-04-18 11:03:03 +02:00
2 changed files with 9 additions and 3 deletions

View File

@ -251,6 +251,8 @@ if __name__ == '__main__':
'oshash': clip['streams'][i],
'url': '%s/%s/%sp%s.mp4' % (base_url, clip['item'], stream_resolution, i + 1),
'item': clip['item'],
'item-in': clip['in'],
'item-out': clip['out'],
'annotation': clip.get('annotation'),
'resolution': info['resolution'],
'in': stream_in,

View File

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