Skip to content

Commit

Permalink
MainMenu: Configure Tile flags only for AV1
Browse files Browse the repository at this point in the history
- Fix encoding issue when selected codec are not AV1
  • Loading branch information
Nicklas373 committed Apr 27, 2024
1 parent def8014 commit 76305bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Hana Media Encoder/Form/MainMenu.vb
Original file line number Diff line number Diff line change
Expand Up @@ -3216,23 +3216,23 @@ Public Class MainMenu
TileRows = TileRowsUpDown1.Value
If TileRowsUpDown1.Value > 0 Then
If TileColumnUpDown1.Value > 0 Then
If mediaenginestate = "NVENCC" Then
If mediaenginestate = "NVENCC" And ComboBox2.Text = "AV1" Then
TileFlags = " --tile-columns " & TileColumnUpDown1.Value & " --tile-rows " & TileRowsUpDown1.Value
Else
ElseIf ComboBox2.Text = "AV1" Then
TileFlags = " -tile-columns " & TileColumnUpDown1.Value & " -tile-rows " & TileRowsUpDown1.Value
End If
Else
If mediaenginestate = "NVENCC" Then
If mediaenginestate = "NVENCC" And ComboBox2.Text = "AV1" Then
TileFlags = " --tile-columns auto " & " --tile-rows " & TileRowsUpDown1.Value
Else
ElseIf ComboBox2.Text = "AV1" Then
TileFlags = " -tile-columns -1 " & " -tile-rows " & TileRowsUpDown1.Value
End If
End If
Else
If mediaenginestate = "NVENCC" Then
TileFlags = " "
Else
If mediaenginestate = "NVENCC" And ComboBox2.Text = "AV1" Then
TileFlags = " --tile-columns -1 " & " --tile-rows -1 "
ElseIf ComboBox2.Text = "AV1" Then
TileFlags = " -tile-columns -1 " & " -tile-rows -1 "
End If
End If
If HwAccelDev = "cuda" Then
Expand Down

0 comments on commit 76305bc

Please sign in to comment.