@@ -95,7 +95,7 @@ private class Settings
95
95
public Color BackgroundColor { get ; set ; } = Color . Black ;
96
96
public string BackgroundImageFilename { get ; set ; }
97
97
public PreviewSettings Preview { get ; } = new ( ) { Enabled = true , Frameskip = 1 } ;
98
- public EncodeSettings EncodeVideo { get ; } = new ( ) { Enabled = false } ;
98
+ public EncodeSettings EncodeVideo { get ; } = new ( ) { Enabled = false , VideoCodec = "h264" , AudioCodec = "aac" } ;
99
99
public int RenderThreads { get ; set ; } = Environment . ProcessorCount ;
100
100
101
101
public MasterAudioSettings MasterAudio { get ; } = new ( ) { IsAutomatic = true , ApplyReplayGain = true } ;
@@ -110,6 +110,8 @@ public class MasterAudioSettings
110
110
public class EncodeSettings
111
111
{
112
112
public bool Enabled { get ; set ; }
113
+ public string VideoCodec { get ; set ; }
114
+ public string AudioCodec { get ; set ; }
113
115
}
114
116
115
117
public class PreviewSettings
@@ -138,6 +140,8 @@ public void FromControls(SidWizPlusGui form)
138
140
Preview . Enabled = form . PreviewCheckBox . Checked ;
139
141
Preview . Frameskip = ( int ) form . PreviewFrameskip . Value ;
140
142
EncodeVideo . Enabled = form . EncodeCheckBox . Checked ;
143
+ EncodeVideo . VideoCodec = form . VideoCodec . Text ;
144
+ EncodeVideo . AudioCodec = form . AudioCodec . Text ;
141
145
MasterAudio . IsAutomatic = form . AutogenerateMasterMix . Checked ;
142
146
MasterAudio . ApplyReplayGain = form . MasterMixReplayGain . Checked ;
143
147
MasterAudio . Path = form . MasterAudioPath . Text ;
@@ -161,6 +165,8 @@ public void ToControls(SidWizPlusGui form)
161
165
form . PreviewCheckBox . Checked = Preview . Enabled ;
162
166
form . PreviewFrameskip . Value = Preview . Frameskip ;
163
167
form . EncodeCheckBox . Checked = EncodeVideo . Enabled ;
168
+ form . VideoCodec . Text = EncodeVideo . VideoCodec ;
169
+ form . AudioCodec . Text = EncodeVideo . AudioCodec ;
164
170
form . AutogenerateMasterMix . Checked = MasterAudio . IsAutomatic ;
165
171
form . MasterMixReplayGain . Checked = MasterAudio . ApplyReplayGain ;
166
172
form . MasterAudioPath . Text = MasterAudio . Path ;
@@ -809,7 +815,9 @@ private void RenderButton_Click(object sender, EventArgs e)
809
815
_settings . Height ,
810
816
_settings . FrameRate ,
811
817
_programSettings . FfmpegExtraParameters ,
812
- _settings . MasterAudio . Path ) ) ;
818
+ _settings . MasterAudio . Path ,
819
+ _settings . EncodeVideo . VideoCodec ,
820
+ _settings . EncodeVideo . AudioCodec ) ) ;
813
821
}
814
822
}
815
823
0 commit comments