FFmpeg: Add more presets

This commit is contained in:
Vicki Pfau 2020-02-02 16:46:42 -08:00
parent 8f1c3172c8
commit 6b12eddfba
3 changed files with 42 additions and 0 deletions

View File

@ -32,6 +32,7 @@ Other fixes:
- Qt: Fix GIF view not allowing manual filename entry - Qt: Fix GIF view not allowing manual filename entry
- Util: Fix crash reading invalid ELFs - Util: Fix crash reading invalid ELFs
Misc: Misc:
- FFmpeg: Add more presets
- Qt: Renderer can be changed while a game is running - Qt: Renderer can be changed while a game is running
- Qt: Fix non-SDL build (fixes mgba.io/i/1656) - Qt: Fix non-SDL build (fixes mgba.io/i/1656)
- Switch: Make OpenGL scale adjustable while running - Switch: Make OpenGL scale adjustable while running

View File

@ -112,6 +112,15 @@ VideoView::VideoView(QWidget* parent)
void VideoView::updatePresets() { void VideoView::updatePresets() {
m_presets.clear(); m_presets.clear();
addPreset(m_ui.preset4K, {
.container = QString(),
.vcodec = QString(),
.acodec = QString(),
.vbr = 0,
.abr = 0,
.dims = maintainAspect(QSize(3840, 2160))
});
addPreset(m_ui.preset1080, { addPreset(m_ui.preset1080, {
.container = QString(), .container = QString(),
.vcodec = QString(), .vcodec = QString(),
@ -177,6 +186,14 @@ void VideoView::updatePresets() {
.abr = 128 .abr = 128
}); });
addPreset(m_ui.presetMP4, {
.container = "MP4",
.vcodec = "h.264",
.acodec = "AAC",
.vbr = 800,
.abr = 128
});
if (m_nativeWidth && m_nativeHeight) { if (m_nativeWidth && m_nativeHeight) {
addPreset(m_ui.presetLossless, { addPreset(m_ui.presetLossless, {
.container = "MKV", .container = "MKV",

View File

@ -133,6 +133,13 @@
</attribute> </attribute>
</widget> </widget>
</item> </item>
<item>
<widget class="QRadioButton" name="presetMP4">
<property name="text">
<string>MP4</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QRadioButton" name="presetLossless"> <widget class="QRadioButton" name="presetLossless">
<property name="text"> <property name="text">
@ -150,6 +157,13 @@
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QRadioButton" name="preset4K">
<property name="text">
<string>4K</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QRadioButton" name="preset1080"> <widget class="QRadioButton" name="preset1080">
<property name="text"> <property name="text">
@ -289,6 +303,11 @@
<string>FFV1</string> <string>FFV1</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>None</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
@ -326,6 +345,11 @@
<string>Uncompressed</string> <string>Uncompressed</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>None</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>