Skip to content

Commit

Permalink
Presets: Add MKV (h.264) sw/hw presets (OpenShot#4637)
Browse files Browse the repository at this point in the history
- Clone every `format_mp4_x64*.xml` preset into an equivalent
  `format_mkv_x264*.xml` preset, with only the title and
  container format changed.
  • Loading branch information
ferdnyc authored Feb 7, 2022
1 parent e61fd9f commit fb549e8
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MKV (h.264)</title>
<videoformat>mkv</videoformat>
<videocodec>libx264</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264_dx.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MKV (h.264 dx)</title>
<videoformat>mkv</videoformat>
<videocodec>h264_dxva2</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264_hw.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MP4 (h.264 va)</title>
<videoformat>mkv</videoformat>
<videocodec>h264_vaapi</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264_nv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MKV (h.264 nv)</title>
<videoformat>mkv</videoformat>
<videocodec>h264_nvenc</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264_qsv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MKV (h.264 qsv)</title>
<videoformat>mkv</videoformat>
<videocodec>h264_qsv</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>
20 changes: 20 additions & 0 deletions src/presets/format_mkv_x264_vtb.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
<type translatable="True">All Formats</type>
<title translatable="True">MKV (h.264 videotoolbox)</title>
<videoformat>mkv</videoformat>
<videocodec>h264_videotoolbox</videocodec>
<audiocodec>aac</audiocodec>
<audiochannels>2</audiochannels>
<audiochannellayout>3</audiochannellayout>
<videobitrate
low="384 kb/s"
med="5 Mb/s"
high="15.00 Mb/s"></videobitrate>
<audiobitrate
low="96 kb/s"
med="128 kb/s"
high="192 kb/s"></audiobitrate>
<samplerate>48000</samplerate>
</export-option>

0 comments on commit fb549e8

Please sign in to comment.