Use raw RGBA NUT pipe instead of 444 YUV pipe for realtime mode

This commit is contained in:
N00MKRAD 2023-12-26 23:28:21 +01:00
parent f4bf63b5a7
commit 0c8b96e560
1 changed files with 4 additions and 2 deletions

View File

@ -89,10 +89,12 @@ namespace Flowframes.Main
if (ffplay)
{
encArgs = $"-pix_fmt yuv444p";
bool useNutPipe = true; // TODO: Make this bool a config flag
encArgs = useNutPipe ? "-c:v rawvideo -pix_fmt rgba" : $"-pix_fmt yuv444p16";
string format = useNutPipe ? "nut" : "yuv4mpegpipe";
return
$"{extraArgsIn} -i pipe: {encArgs} {extraArgsOut} -f yuv4mpegpipe - | ffplay - " +
$"{extraArgsIn} -i pipe: {encArgs} {extraArgsOut} -f {format} - | ffplay - " +
$"-autoexit -seek_interval {VapourSynthUtils.GetSeekSeconds(Program.mainForm.currInDuration)} " +
$"-window_title \"Flowframes Realtime Interpolation ({s.inFps.GetString()} FPS x{s.interpFactor} = {s.outFps.GetString()} FPS) ({s.model.Name})\" ";
}