shading and shearing

This commit is contained in:
shweet committed 2026-08-20 20:03:12 -04:00
1 parent 5e27111b21
commit b7c24fad99
24 files changed
+850 -394

No files matched your search

+8
View File
@@ -82,6 +82,9 @@ namespace anm2ed
case render::WEBM:
audioOutputArguments = "-c:a libopus -b:a 160k -shortest";
break;
case render::OGV:
audioOutputArguments = "-c:a libvorbis -q:a 4 -shortest";
break;
case render::MP4:
audioOutputArguments = "-c:a aac -b:a 192k -shortest";
break;
@@ -121,6 +124,11 @@ namespace anm2ed
if (!audioOutputArguments.empty()) command += " " + audioOutputArguments;
command += std::format(" \"{}\"", pathString);
break;
case render::OGV:
command += " -vf \"format=yuv420p,scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libtheora -q:v 7";
if (!audioOutputArguments.empty()) command += " " + audioOutputArguments;
command += std::format(" \"{}\"", pathString);
break;
case render::MP4:
command += " -vf \"format=yuv420p,scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libx265 -crf 20 -preset slow"
" -tag:v hvc1 -movflags +faststart";