mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Added x265 to FFmpeg video codec list
This commit is contained in:
parent
3253897282
commit
4fa5bfd7b3
4 changed files with 7 additions and 4 deletions
|
@ -69,7 +69,9 @@ public enum FFmpegVideoCodec
|
|||
[Description("VP8 (WebM)")]
|
||||
libvpx,
|
||||
[Description("Xvid")]
|
||||
libxvid
|
||||
libxvid,
|
||||
[Description("x265")]
|
||||
libx265
|
||||
}
|
||||
|
||||
public enum FFmpegPreset
|
||||
|
|
|
@ -178,6 +178,7 @@ private void cboVideoCodec_SelectedIndexChanged(object sender, EventArgs e)
|
|||
switch (Options.FFmpeg.VideoCodec)
|
||||
{
|
||||
case FFmpegVideoCodec.libx264:
|
||||
case FFmpegVideoCodec.libx265:
|
||||
txtExtension.Text = "mp4";
|
||||
break;
|
||||
case FFmpegVideoCodec.libvpx:
|
||||
|
|
|
@ -246,8 +246,7 @@ If the output looks good, then try a higher value and if it looks bad then choos
|
|||
<value>3</value>
|
||||
</data>
|
||||
<data name="cbPreset.ToolTip" xml:space="preserve">
|
||||
<value>The default preset is "Medium".
|
||||
A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize).
|
||||
<value>A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize).
|
||||
This means that, for example, if you target a certain file size or constant bit rate, you will achieve better quality with a slower preset.
|
||||
Similarly, for constant quality encoding, you will simply save bitrate by choosing a slower preset.</value>
|
||||
</data>
|
||||
|
@ -714,7 +713,7 @@ Similarly, for constant quality encoding, you will simply save bitrate by choosi
|
|||
<value>1</value>
|
||||
</data>
|
||||
<data name="tpX264.Text" xml:space="preserve">
|
||||
<value>x264</value>
|
||||
<value>x264 / x265</value>
|
||||
<comment>@Invariant</comment></data>
|
||||
<data name=">>tpX264.Name" xml:space="preserve">
|
||||
<value>tpX264</value>
|
||||
|
|
|
@ -144,6 +144,7 @@ public string GetFFmpegArgs(bool isCustom = false)
|
|||
switch (FFmpeg.VideoCodec)
|
||||
{
|
||||
case FFmpegVideoCodec.libx264: // https://trac.ffmpeg.org/wiki/Encode/H.264
|
||||
case FFmpegVideoCodec.libx265: // https://trac.ffmpeg.org/wiki/Encode/H.265
|
||||
args.AppendFormat("-crf {0} ", FFmpeg.x264_CRF);
|
||||
args.AppendFormat("-preset {0} ", FFmpeg.x264_Preset);
|
||||
args.AppendFormat("-tune {0} ", "zerolatency");
|
||||
|
|
Loading…
Reference in a new issue