mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 19:59:31 +01:00
Fix missing extra encoding args
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Flowframes.Media
|
|||||||
public static string GetFfmpegExportArgsOut (Fraction resampleFps, VidExtraData extraData, Interpolate.OutMode outMode, bool isChunk = false)
|
public static string GetFfmpegExportArgsOut (Fraction resampleFps, VidExtraData extraData, Interpolate.OutMode outMode, bool isChunk = false)
|
||||||
{
|
{
|
||||||
List<string> filters = new List<string>();
|
List<string> filters = new List<string>();
|
||||||
string extraArgs = "";
|
string extraArgs = Config.Get(Config.Key.ffEncArgs);
|
||||||
|
|
||||||
if (resampleFps.GetFloat() >= 0.1f)
|
if (resampleFps.GetFloat() >= 0.1f)
|
||||||
filters.Add($"fps=fps={resampleFps}");
|
filters.Add($"fps=fps={resampleFps}");
|
||||||
@@ -62,7 +62,7 @@ namespace Flowframes.Media
|
|||||||
{
|
{
|
||||||
Logger.Log($"Applying color transfer ({extraData.colorSpace}).", true, false, "ffmpeg");
|
Logger.Log($"Applying color transfer ({extraData.colorSpace}).", true, false, "ffmpeg");
|
||||||
filters.Add($"scale=out_color_matrix={extraData.colorSpace}");
|
filters.Add($"scale=out_color_matrix={extraData.colorSpace}");
|
||||||
extraArgs += $" -colorspace {extraData.colorSpace} -color_primaries {extraData.colorPrimaries} -color_trc {extraData.colorTransfer} -color_range:v \"{extraData.colorRange}\"";
|
extraArgs += $" -colorspace {extraData.colorSpace} -color_primaries {extraData.colorPrimaries} -color_trc {extraData.colorTransfer} -color_range:v {extraData.colorRange.Wrap()}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(extraData.displayRatio) && !extraData.displayRatio.MatchesWildcard("*N/A*"))
|
if (!string.IsNullOrWhiteSpace(extraData.displayRatio) && !extraData.displayRatio.MatchesWildcard("*N/A*"))
|
||||||
|
|||||||
Reference in New Issue
Block a user