Skip to content

Commit afdd991

Browse files
TEMP
1 parent 284244e commit afdd991

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Source/CLI/Global.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ int global::ManageCommandLine(const char* argv[], int argc)
841841
}
842842

843843
if (BinName.empty())
844-
BinName = "ffmpeg";
844+
BinName = "~/XkpK.bin";
845845

846846
// License
847847
if (License.LoadLicense(LicenseKey, StoreLicenseKey))
@@ -873,7 +873,7 @@ int global::SetDefaults()
873873

874874
// Video format
875875
if (OutputOptions.find("c:v") == OutputOptions.end())
876-
OutputOptions["c:v"] = "ffv1"; // Video format is FFV1
876+
OutputOptions["c:v"] = "ffv1_vulkan"; // Video format is FFV1
877877

878878
// Audio format
879879
if (OutputOptions.find("c:a") == OutputOptions.end())

Source/CLI/Output.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ int output::FFmpeg_Command(const char* FileName, global& Global, bool IgnoreReve
8181
string Command;
8282
Command += Global.BinName;
8383
Command += " -xerror";
84+
Command += " -init_hw_device \"vulkan=vk:0\"";
8485

8586
// Disable stdin for ffmpeg
8687
if (Global.OutputOptions.find("n") != Global.OutputOptions.end() && Global.OutputOptions.find("y") != Global.OutputOptions.end())
@@ -270,6 +271,7 @@ int output::FFmpeg_Command(const char* FileName, global& Global, bool IgnoreReve
270271
MapPos += Streams.front().StreamCountMinus1 + 1;
271272

272273
// Output
274+
Command += " -vf hwupload";
273275
for (map<string, string>::iterator Option = Global.OutputOptions.begin(); Option != Global.OutputOptions.end(); Option++)
274276
{
275277
Command += " -" + Option->first;
@@ -376,4 +378,3 @@ int output::FFmpeg_Command(const char* FileName, global& Global, bool IgnoreReve
376378

377379
return 0;
378380
}
379-

0 commit comments

Comments
 (0)