This commit is contained in:
stax76
2017-04-24 17:30:33 +02:00
parent 2547645322
commit e6dc00a5a0
25 changed files with 455 additions and 231 deletions
+5
View File
@@ -67,6 +67,11 @@ Public Class NVIDIAEncoder
End Property
Overrides Sub Encode()
If OutputExt = "h265" Then
Dim codecs = ProcessHelp.GetStdOut(Package.NVEncC.Path, "--check-hw").Right("Codec(s)")
If Not codecs?.ToLower.Contains("hevc") Then Throw New ErrorAbortException("NVEncC Error", "H.265/HEVC isn't supported by the graphics card.")
End If
p.Script.Synchronize()
Dim batchPath = p.TempDir + p.TargetFile.Base + "_NVEncC.bat"
Dim batchCode = Proc.WriteBatchFile(batchPath, Params.GetCommandLine(True, True))