Add Ogg Theora support to MovieWriter

Movie Maker mode can now record files in `.ogv` format, which can be
directly viewed in Godot's VideoStreamPlayer node along with most
video players. This is a lossy format with inter-frame compression,
unlike AVI + MJPEG which only performs intra-frame compression.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Leo de Penning <leo.depenning@illuminoo.com>
This commit is contained in:
Bernat Arlandis
2025-06-07 00:40:41 +02:00
parent 26df04377e
commit a16b04fe07
13 changed files with 774 additions and 53 deletions

View File

@@ -13,7 +13,6 @@ thirdparty_obj = []
if env["builtin_libvorbis"]:
thirdparty_dir = "#thirdparty/libvorbis/"
thirdparty_sources = [
# "analysis.c",
# "barkmel.c",
"bitrate.c",
"block.c",
@@ -35,11 +34,16 @@ if env["builtin_libvorbis"]:
"smallft.c",
"synthesis.c",
# "tone.c",
# "vorbisenc.c",
"vorbisfile.c",
"window.c",
]
if env.editor_build:
thirdparty_sources += [
"analysis.c",
"vorbisenc.c",
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
env_vorbis.Prepend(CPPEXTPATH=[thirdparty_dir])