mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 20:59:39 +01:00
Fix VS scaling and realtime pix_fmt
This commit is contained in:
@@ -88,7 +88,7 @@ namespace Flowframes.Main
|
||||
|
||||
if (ffplay)
|
||||
{
|
||||
encArgs = $"-pix_fmt {encArgs.Split("-pix_fmt ").Last()}";
|
||||
encArgs = $"-pix_fmt yuv444p";
|
||||
|
||||
return
|
||||
$"{extraArgsIn} -i pipe: {encArgs} {extraArgsOut} -f yuv4mpegpipe - | ffplay - " +
|
||||
|
||||
@@ -256,6 +256,7 @@ namespace Flowframes.Main
|
||||
Logger.Log($"Un-rounded downscaled size: {(res.Width * factor).ToString("0.###")}x{(res.Height * factor).ToString("0.###")}", true);
|
||||
int width = RoundDivisibleBy((res.Width * factor).RoundToInt(), mod);
|
||||
int height = RoundDivisibleBy((res.Height * factor).RoundToInt(), mod);
|
||||
res = new Size(width, height);
|
||||
|
||||
if (print && factor < 1f)
|
||||
Logger.Log($"Video is bigger than the maximum - Downscaling to {width}x{height}.");
|
||||
|
||||
Reference in New Issue
Block a user