Skip to content

Commit

Permalink
FFmpeg svt-av1: Switch to CRF #143
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Jan 25, 2024
1 parent 81ab565 commit 375cb26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NotEnoughAV1Encodes/MainWindow.xaml
Expand Up @@ -381,7 +381,7 @@
<Label Content="{Binding ElementName=SliderQualitySVTAV1FFMPEG, Path=Value, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" HorizontalAlignment="Right" Width="78" Canvas.Left="664" Canvas.Top="75"/>
<Label Content="{lex:Loc LabelQualityMode}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="108" Height="28" Canvas.Left="18" Canvas.Top="12"/>
<ComboBox x:Name="ComboBoxQualityModeSVTAV1FFMPEG" SelectedIndex="{Binding SVTAV1FFMPEGQualityMode}" HorizontalAlignment="Left" Margin="131,10,0,0" VerticalAlignment="Top" Width="140" Height="30" SelectionChanged="ComboBoxQualityModeSVTAV1FFMPEG_SelectionChanged">
<ComboBoxItem Content="Constant Quality"/>
<ComboBoxItem Content="CRF - Constant Rate Factor"/>
<ComboBoxItem Content="Bitrate"/>
</ComboBox>
<Label Content="{lex:Loc LabelQuantizer}" IsEnabled="{Binding ElementName=SliderQualitySVTAV1FFMPEG, Path=IsEnabled, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="20,73,0,0" VerticalAlignment="Top" Width="106" Height="30"/>
Expand Down
4 changes: 2 additions & 2 deletions NotEnoughAV1Encodes/MainWindow.xaml.cs
Expand Up @@ -2211,8 +2211,8 @@ private string GenerateSvtAV1FFmpegCommand()
// Quality / Bitrate Selection
string quality = ComboBoxQualityModeSVTAV1FFMPEG.SelectedIndex switch
{
0 => " -rc 0 -qp " + SliderQualitySVTAV1FFMPEG.Value,
1 => " -rc 1 -b:v " + TextBoxBitrateSVTAV1FFMPEG.Text + "k",
0 => " -crf " + SliderQualitySVTAV1FFMPEG.Value,
1 => " -b:v " + TextBoxBitrateSVTAV1FFMPEG.Text + "k",
_ => ""
};

Expand Down

0 comments on commit 375cb26

Please sign in to comment.