Add a video export quality choice: Small file, Standard or High

A Quality dropdown under Video on Setup, --video-quality on the command
line, and "quality" in a project's video settings (written only when it is
not Standard). One table, videoQualities(), holds the ffmpeg settings per
codec; Standard is what every video was written with before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Si
2026-09-26 19:41:00 +02:00
co-authored by Claude Opus 5.5
parent 1b30a079e6
commit 6df4bcb079
10 changed files with 160 additions and 10 deletions
+5
View File
@@ -553,6 +553,11 @@ void testVideo(Gtk::Window& window, const std::filesystem::path& dir) {
stack->set_visible_child("setup");
pump(100);
check(preset->is_drawable() && duration->is_drawable(), "and its preset and length");
auto* quality = named<Gtk::DropDown>(window, "video-quality");
check(quality != nullptr && quality->is_drawable() &&
effector::videoQualities().at(quality->get_selected()).key ==
effector::kDefaultVideoQuality,
"and its file quality, standard to begin with");
preset->set_selected(1); // Instagram story, the first preset
pump(200);