Use h264 instead of vp9 because speed
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s

This commit is contained in:
Nexus 2024-06-11 23:46:32 +01:00
parent 0aba58cdb2
commit d3a2adbbe0
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -260,23 +260,25 @@ class FFMeta(commands.Cog):
"-i", "-i",
str(rbh), str(rbh),
"-c:v", "-c:v",
"vp9", "h264",
"-c:a", "-c:a",
"libopus", "libopus",
"-pix_fmt", "-pix_fmt",
"yuv420p", "yuv420p",
"-vf", "-vf",
"fade=in:0:d=22", "fade=in:0:d=22",
"-cpu-used", "-tune",
"5", "stillimage",
"-deadline", "-preset",
"realtime", "ultrafast",
"-shortest", "-shortest",
"-movflags",
"frag_keyframe+empty_moov+faststart",
"-t", "-t",
"104", "104",
"-y", "-y",
"-f", "-f",
"webm", "mp4",
"pipe:1", "pipe:1",
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,