Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91fe623

Browse files
committed
Create output directory
1 parent ac284b7 commit 91fe623

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

video_maker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def get_output(cmd: str) -> str:
8585
f.write(f'file {fwd}\n')
8686
f.write(f'file {rev}\n')
8787

88+
os.makedirs(output_dir, exist_ok=True)
8889
video_file = os.path.join(output_dir, f'{set_name}_boomerang.mp4')
8990

9091
ffmpeg = f"{ffmpeg_call} -y -safe 0 -f concat -i \"{concat_file}\" -c copy {video_file} > {dev_null} 2>&1"

0 commit comments

Comments
 (0)