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",
str(rbh),
"-c:v",
"vp9",
"h264",
"-c:a",
"libopus",
"-pix_fmt",
"yuv420p",
"-vf",
"fade=in:0:d=22",
"-cpu-used",
"5",
"-deadline",
"realtime",
"-tune",
"stillimage",
"-preset",
"ultrafast",
"-shortest",
"-movflags",
"frag_keyframe+empty_moov+faststart",
"-t",
"104",
"-y",
"-f",
"webm",
"mp4",
"pipe:1",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,