Make ffmpeg less verbose

hightide
Dan Howe 5 years ago
parent ea517114f9
commit dac4fa17c7

@ -222,16 +222,11 @@ def create_video():
mp4_name = os.path.join(current_hightide_dir, f'{timestamp}_{height}.mp4') mp4_name = os.path.join(current_hightide_dir, f'{timestamp}_{height}.mp4')
now.strftime('%Y-%m-%d_%H-%M') now.strftime('%Y-%m-%d_%H-%M')
command = [ command = [
'ffmpeg', 'ffmpeg', '-hide_banner', '-loglevel', 'panic', '-pattern_type',
'-pattern_type', 'glob', '-framerate', '10', '-i', current_hightide_dir + '/jpg/*.jpg',
'glob', mp4_name
'-framerate',
'10',
'-i',
current_hightide_dir + '/jpg/*.jpg',
mp4_name,
] ]
subprocess.run(command, stdout=subprocess.DEVNULL) subprocess.run(command)
# Create counter # Create counter

Loading…
Cancel
Save