Skip to content

Commit

Permalink
v1.6: Changed some flags that will be deprecated soon.
Browse files Browse the repository at this point in the history
  • Loading branch information
moisespr123 committed Apr 12, 2020
1 parent 34420dc commit e4f6c32
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions svt-av1_gui/Form1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions svt-av1_gui/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -249,24 +249,24 @@ Public Class Form1
UpdateLog("Encoding Video")
Using svtav1Process As New Process()
svtav1Process.StartInfo.FileName = "SvtAv1EncApp.exe"
Dim SVTAV1CommandLineString As String = "-enc-mode " + My.Settings.speed.ToString() + " -q " + My.Settings.quantizer.ToString() + " -tile-rows " + My.Settings.TilingRows.ToString() + " -tile-columns " + My.Settings.TilingColumns.ToString()
If My.Settings.HME Then SVTAV1CommandLineString += " -hme 1 " Else SVTAV1CommandLineString += " -hme 0 "
If My.Settings.HME0 Then SVTAV1CommandLineString += " -hme-l0 1 " Else SVTAV1CommandLineString += " -hme-l0 0 "
If My.Settings.HME1 Then SVTAV1CommandLineString += " -hme-l1 1 " Else SVTAV1CommandLineString += " -hme-l1 0 "
If My.Settings.HME2 Then SVTAV1CommandLineString += " -hme-l2 1 " Else SVTAV1CommandLineString += " -hme-l2 0 "
If My.Settings.ClosedGOP Then SVTAV1CommandLineString += " -irefresh-type 2"
Dim SVTAV1CommandLineString As String = "--preset " + My.Settings.speed.ToString() + " -q " + My.Settings.quantizer.ToString() + " --tile-rows " + My.Settings.TilingRows.ToString() + " --tile-columns " + My.Settings.TilingColumns.ToString()
If My.Settings.HME Then SVTAV1CommandLineString += " --hme 1 " Else SVTAV1CommandLineString += " --hme 0 "
If My.Settings.HME0 Then SVTAV1CommandLineString += " --hme-l0 1 " Else SVTAV1CommandLineString += " --hme-l0 0 "
If My.Settings.HME1 Then SVTAV1CommandLineString += " --hme-l1 1 " Else SVTAV1CommandLineString += " --hme-l1 0 "
If My.Settings.HME2 Then SVTAV1CommandLineString += " --hme-l2 1 " Else SVTAV1CommandLineString += " --hme-l2 0 "
If My.Settings.ClosedGOP Then SVTAV1CommandLineString += " --irefresh-type 2"
If SourceFrameNum = String.Empty And SourceFrameDen = String.Empty Then
SVTAV1CommandLineString += " -fps " + SourceFrameRate
SVTAV1CommandLineString += " --fps " + SourceFrameRate
Else
SVTAV1CommandLineString += " -fps-num " + SourceFrameNum + " -fps-denom " + SourceFrameDen
SVTAV1CommandLineString += " --fps-num " + SourceFrameNum + " --fps-denom " + SourceFrameDen
End If
If SecondPassEnabled Then
If Not SecondPass Then
UpdateLog("Performing First Pass Encoding")
SVTAV1CommandLineString += " -enc-mode-2p " + My.Settings.speed.ToString() + " " + My.Settings.AdditionalArguments + " -n " + SourceFrameCount + " -w " + SourceWidth + " -h " + SourceHeight + " -i ""\\.\pipe\in.y4m"" -output-stat-file """ + My.Settings.tempFolder + "/OutputStatFile"""
SVTAV1CommandLineString += " --enc-mode-2p " + My.Settings.speed.ToString() + " " + My.Settings.AdditionalArguments + " -n " + SourceFrameCount + " -w " + SourceWidth + " -h " + SourceHeight + " -i ""\\.\pipe\in.y4m"" --output-stat-file """ + My.Settings.tempFolder + "/OutputStatFile"""
Else
UpdateLog("Performing Second Pass Encoding")
SVTAV1CommandLineString += " -enc-mode-2p " + My.Settings.speed.ToString() + " " + My.Settings.AdditionalArguments + " -n " + SourceFrameCount + " -w " + SourceWidth + " -h " + SourceHeight + " -i ""\\.\pipe\in.y4m"" -input-stat-file """ + My.Settings.tempFolder + "/OutputStatFile"" -b """ + Output_File + """"
SVTAV1CommandLineString += " --enc-mode-2p " + My.Settings.speed.ToString() + " " + My.Settings.AdditionalArguments + " -n " + SourceFrameCount + " -w " + SourceWidth + " -h " + SourceHeight + " -i ""\\.\pipe\in.y4m"" --input-stat-file """ + My.Settings.tempFolder + "/OutputStatFile"" -b """ + Output_File + """"
End If
Else
SVTAV1CommandLineString += " " + My.Settings.AdditionalArguments + " -n " + SourceFrameCount + " -w " + SourceWidth + " -h " + SourceHeight + " -i ""\\.\pipe\in.y4m"" -b """ + Output_File + """"
Expand Down
4 changes: 2 additions & 2 deletions svt-av1_gui/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.5.0.0")>
<Assembly: AssemblyFileVersion("1.5.0.0")>
<Assembly: AssemblyVersion("1.6.0.0")>
<Assembly: AssemblyFileVersion("1.6.0.0")>

0 comments on commit e4f6c32

Please sign in to comment.