mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-22 19:29:24 +01:00
Config bools for keeping video color space & aspect ratio
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Flowframes.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -22,6 +23,9 @@ namespace Flowframes.Data
|
||||
{
|
||||
string[] lines = ffprobeOutput.SplitIntoLines();
|
||||
|
||||
if (!Config.GetBool("keepColorSpace", true))
|
||||
return;
|
||||
|
||||
foreach (string line in lines)
|
||||
{
|
||||
if (line.Contains("color_range"))
|
||||
@@ -48,7 +52,7 @@ namespace Flowframes.Data
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.Contains("display_aspect_ratio"))
|
||||
if (line.Contains("display_aspect_ratio") && Config.GetBool("keepAspectRatio", true))
|
||||
{
|
||||
displayRatio = line.Split('=').LastOrDefault();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user