|
|
@ -130,9 +130,10 @@ def make_final_video(
|
|
|
|
verbose=False,
|
|
|
|
verbose=False,
|
|
|
|
threads=multiprocessing.cpu_count(),
|
|
|
|
threads=multiprocessing.cpu_count(),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if settings.config["settings"]["background_audio"]: # background.mp3
|
|
|
|
if settings.config["settings"]["background_audio"]:
|
|
|
|
if not exists(f"assets/mp3/background.mp3"):
|
|
|
|
print('[bold green] Merging background audio with video')
|
|
|
|
print_substep("optional background audio file didn't so skipping.")
|
|
|
|
if not exists(f"assets/backgrounds/background.mp3"):
|
|
|
|
|
|
|
|
print_substep("Cannot find assets/backgrounds/background.mp3 audio file didn't so skipping.")
|
|
|
|
ffmpeg_extract_subclip(
|
|
|
|
ffmpeg_extract_subclip(
|
|
|
|
"assets/temp/temp.mp4",
|
|
|
|
"assets/temp/temp.mp4",
|
|
|
|
0,
|
|
|
|
0,
|
|
|
@ -141,13 +142,14 @@ def make_final_video(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
ffmpeg_merge_video_audio("assets/temp/temp.mp4", "assets/backgrounds/background.mp3", "assets/temp/temp_audio.mp4")
|
|
|
|
ffmpeg_merge_video_audio("assets/temp/temp.mp4", "assets/backgrounds/background.mp3", "assets/temp/temp_audio.mp4")
|
|
|
|
ffmpeg_extract_subclip(
|
|
|
|
ffmpeg_extract_subclip( # check if this gets run
|
|
|
|
"assets/temp/temp_audio.mp4",
|
|
|
|
"assets/temp/temp_audio.mp4",
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
final.duration,
|
|
|
|
final.duration,
|
|
|
|
targetname=f"results/{subreddit}/{filename}",
|
|
|
|
targetname=f"results/{subreddit}/{filename}",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|
|
|
|
print('debug duck')
|
|
|
|
ffmpeg_extract_subclip(
|
|
|
|
ffmpeg_extract_subclip(
|
|
|
|
"assets/temp/temp.mp4",
|
|
|
|
"assets/temp/temp.mp4",
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|