mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 03:39:26 +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.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
@@ -22,6 +23,9 @@ namespace Flowframes.Data
|
|||||||
{
|
{
|
||||||
string[] lines = ffprobeOutput.SplitIntoLines();
|
string[] lines = ffprobeOutput.SplitIntoLines();
|
||||||
|
|
||||||
|
if (!Config.GetBool("keepColorSpace", true))
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (string line in lines)
|
foreach (string line in lines)
|
||||||
{
|
{
|
||||||
if (line.Contains("color_range"))
|
if (line.Contains("color_range"))
|
||||||
@@ -48,7 +52,7 @@ namespace Flowframes.Data
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.Contains("display_aspect_ratio"))
|
if (line.Contains("display_aspect_ratio") && Config.GetBool("keepAspectRatio", true))
|
||||||
{
|
{
|
||||||
displayRatio = line.Split('=').LastOrDefault();
|
displayRatio = line.Split('=').LastOrDefault();
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user