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

Skip to content

Commit ac284b7

Browse files
committed
Added separate output dir for boomerangs
1 parent 9b148c3 commit ac284b7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
import os
2323
input_dir = os.path.join(os.path.expanduser('~'), 'Desktop', 'DCIM', '100MSDCF')
2424

25+
# Location of the final boomerang videos
26+
output_dir = os.path.join(input_dir, 'boomerangs')
27+
2528
# Desired video width. Images will be scaled to this. Must be even!
2629
video_width = 1920
2730

video_maker.py

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

88-
video_file = os.path.join(input_dir, f'{set_name}_boomerang.mp4')
88+
video_file = os.path.join(output_dir, f'{set_name}_boomerang.mp4')
8989

9090
ffmpeg = f"{ffmpeg_call} -y -safe 0 -f concat -i \"{concat_file}\" -c copy {video_file} > {dev_null} 2>&1"
9191
print('Concat')

0 commit comments

Comments
 (0)