From 830c743faf74e16b75f924ddc6e95a02e2edad9a Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 11 Jan 2023 20:51:08 -0600 Subject: itoddlers need h.264 --- comedyGenerator | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comedyGenerator b/comedyGenerator index a5206b1..3e31e95 100755 --- a/comedyGenerator +++ b/comedyGenerator @@ -221,7 +221,7 @@ for tags in args.tags: name = name[0:200] name = name.replace('"', "") outputPath = args.output + tags + " - " + name + "." + urlsplit[len(urlsplit)-1] - convertedOutputPath = args.output + tags + " - " + name + "." + "webm" + convertedOutputPath = args.output + tags + " - " + name + "." + "mp4" if args.verbose: print("name read as: " + name) if os.path.exists(outputPath): @@ -231,7 +231,8 @@ for tags in args.tags: urllib.request.urlretrieve(video, outputPath) if args.verbose: print("converting " + outputPath + " to " + convertedOutputPath) - os.system("ffmpeg -i \"" + outputPath + "\" \"" + convertedOutputPath + "\"") + os.system("ffmpeg -y -i \"" + outputPath + "\" \"" + convertedOutputPath + "\"") + os.remove(outputPath) if args.verbose: print("converting complete!") if args.jobs > 1 and args.noDownload == False: -- cgit v1.2.3