mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Fix audio with VFR encodes, add WMV to format whitelist, better ascii char warning
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Flowframes.IO
|
||||
{
|
||||
class Formats
|
||||
{
|
||||
public static string[] supported = { ".mp4", ".m4v", ".gif", ".mkv", ".mpg", ".webm", ".avi", ".ts", ".bik" }; // Supported formats
|
||||
public static string[] supported = { ".mp4", ".m4v", ".gif", ".mkv", ".mpg", ".webm", ".avi", ".wmv", ".ts", ".bik" }; // Supported formats
|
||||
public static string[] noEncodeSupport = { ".bik" }; // Files that have no encode support, but decode
|
||||
public static string[] preprocess = { ".gif" }; // Files that get converted to MP4 first for compat reasons
|
||||
}
|
||||
|
||||
@@ -80,10 +80,11 @@ namespace Flowframes.Main
|
||||
else
|
||||
{
|
||||
await FFmpegCommands.FramesToMp4(framesPath, outPath, h265, crf, fps, "", false, -1, ext); // Create video
|
||||
await MergeAudio(i.lastInputPath, outPath);
|
||||
}
|
||||
|
||||
if (looptimes > 0)
|
||||
await Loop(outPath, looptimes);
|
||||
}
|
||||
await MergeAudio(i.lastInputPath, outPath);
|
||||
|
||||
if (changeFps > 0)
|
||||
{
|
||||
|
||||
@@ -135,11 +135,16 @@ namespace Flowframes.Main
|
||||
|
||||
public static void PathAsciiCheck (string inpath, string outpath)
|
||||
{
|
||||
if (OSUtils.HasNonAsciiChars(inpath))
|
||||
Logger.Log("Warning: Input path includes non-ASCII characters. This might cause problems.");
|
||||
bool shownMsg = false;
|
||||
|
||||
if (OSUtils.HasNonAsciiChars(outpath))
|
||||
Logger.Log("Warning: Output path includes non-ASCII characters. This might cause problems.");
|
||||
if (OSUtils.HasNonAsciiChars(inpath))
|
||||
{
|
||||
ShowMessage("Warning: Input path includes non-ASCII characters. This might cause problems.");
|
||||
shownMsg = true;
|
||||
}
|
||||
|
||||
if (!shownMsg && OSUtils.HasNonAsciiChars(outpath))
|
||||
ShowMessage("Warning: Output path includes non-ASCII characters. This might cause problems.");
|
||||
}
|
||||
|
||||
public static void GifCompatCheck (Interpolate.OutMode outMode, float fpsOut, int targetFrameCount)
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace Flowframes
|
||||
if (!hasShownError && line.ToLower().Contains("modulenotfounderror"))
|
||||
{
|
||||
hasShownError = true;
|
||||
InterpolateUtils.ShowMessage($"A python module is missing. Check {logFilename} for details.\n\n{line}", "Error");
|
||||
InterpolateUtils.ShowMessage($"A python module is missing. Check {logFilename} for details.\n\n{line}\n\nIf you don't want to install it yourself, use the Python package from the Package Installer.", "Error");
|
||||
}
|
||||
|
||||
if (!hasShownError && line.ToLower().Contains("no longer supports this gpu"))
|
||||
|
||||
Reference in New Issue
Block a user