Someone do me a favor and tell me how to open a bin file on Fedora KDE plskthx.
>>199645
Oh, hi. Sorry, I didn't play this time but I'll give you my ffmpeg line for the future.. This is for vp9 webm. Apparently some browsers and phones still can't see mp4s, lol.
tl;dr script at bottom
Definitions:
yuv420p10le = 10bit 4:2:0. Unless you record in 4:4:4, then you use yuv444p10le. Recording in 4:4:4 takes a lot more power, only use it for old video games with limited colors, like Fallout 2 for example.
-color_primaries, colorspace, color_range = Sets the color flags to bt.709 so they display correctly in the video no matter the display resolution. Video players assume color based on display resolution and if it gets too low it'll change. Everyone is going to record in bt.709 by default for a PC game.
-g 480 = Amount of keyframes. 480 for a 60fps video means 8 gaps between keyframes, I set it to 240 for 30fps to maintain 8 gaps. 480/60 = 8. :)
-crf 30 = quality. The range is like...4 to 60 or something. 30 is decent for posting little clips unless it's a really active scene, then just lower it or check the bitrate that was output and adjust bitrate directly by replacing "-crf 30" with "-b:v 2000k" for example, but your file size is going to increase.
-metadata = Obvious. Change it, delete it, whatever.
I do all of my editing in AviSynthPlus with AvsPmod, so you won't see anything designated trimming or resolution in this script.
Editing program:
AviSynthPlus
https://github.com/AviSynth/AviSynthPlus/releases
AvsPmod
https://github.com/gispos/AvsPmod/releases
L-SMASH-Works (The LWLibAVVideo/AudioSource in pic related). Put the x64 file in the Plugins64 folder in AviSynth.
https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases/
Script (for Windows):
ffmpeg -i "z:\PATH\TO\FILE\file.avs" -pix_fmt yuv420p10le -color_primaries 1 -colorspace 1 -color_range 1 -c:v libvpx-vp9 -g 480 -crf 30 -c:a libopus -b:a 128k -deadline good -row-mt 1 -pass 1 -f webm NUL ^ && ffmpeg -i "z:\PATH\TO\FILE.avs" -metadata title="Unreal Tournament 2004;DM-UCMP Contrast" -metadata year="2023-04-08" -pix_fmt yuv420p10le -color_primaries 1 -colorspace 1 -color_range 1 -c:v libvpx-vp9 -g 480 -crf 30 -c:a libopus -b:a 128k -deadline good -cpu-used 0 -row-mt 1 -pass 2 "z:\PATH\TO\FILE\vp9_s_output.webm"