|
|
@ -320,11 +320,15 @@ def make_final_video(
|
|
|
|
old_percentage = pbar.n
|
|
|
|
old_percentage = pbar.n
|
|
|
|
pbar.update(status - old_percentage)
|
|
|
|
pbar.update(status - old_percentage)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
path = f"results/{subreddit}/{filename}"
|
|
|
|
|
|
|
|
path = path[:251]
|
|
|
|
|
|
|
|
path = path + ".mp4"
|
|
|
|
|
|
|
|
|
|
|
|
with ProgressFfmpeg(length, on_update_example) as progress:
|
|
|
|
with ProgressFfmpeg(length, on_update_example) as progress:
|
|
|
|
ffmpeg.output(
|
|
|
|
ffmpeg.output(
|
|
|
|
background_clip,
|
|
|
|
background_clip,
|
|
|
|
audio,
|
|
|
|
audio,
|
|
|
|
f"results/{subreddit}/{filename}.mp4",
|
|
|
|
path,
|
|
|
|
f="mp4",
|
|
|
|
f="mp4",
|
|
|
|
**{
|
|
|
|
**{
|
|
|
|
"c:v": "h264",
|
|
|
|
"c:v": "h264",
|
|
|
|