InterDVDSceneBaker

Inherits: Object

Records an InterDVDCell packed scene to NTSC DVD MPEG-2 plus audio.

Description

Instantiates InterDVDCell.packed_scene in a 720×480 viewport, captures InterDVDCell.duration_sec at 30 fps, and encodes with ffmpeg -target ntsc-dvd. GPU capture uses the scene (or InterDVDCell.bake_camera_path) camera; dummy/headless CPU-rasters common Node2D and Control types. A packed Node3D on the dummy renderer returns @GlobalScope.ERR_UNAVAILABLE. AnimationPlayer / AnimatedSprite2D scenes bake looping motion frames. A root inter_dvd_bake_time(seconds) method is called each captured frame. InterDVDCell.bake_hold_sec or inter_dvd_bake_hold_sec() holds each unique frame. Cache path, AC3, GOP, PiP lead, and warmup come from ProjectSettings / InterDVDProject / InterDVDCell. Fails if the probed MPEG is shorter than the requested duration. Editor-only.

Methods

Error

bake_cell(cell: InterDVDCell, ffmpeg: String = "", auto_find_ffmpeg: bool = true) static

Image

raster_root(root: Node) static


Method Descriptions

Error bake_cell(cell: InterDVDCell, ffmpeg: String = "", auto_find_ffmpeg: bool = true) static 🔗

Bakes cell when a packed scene is set and the cache is missing or dirty. Sets InterDVDCell.encoded_path to the cached MPEG. Encoding is spawned through blazium-toolchain interdvd ffmpeg. ffmpeg and auto_find_ffmpeg are unused.


Image raster_root(root: Node) static 🔗

CPU-raster root and its visible children to a 720×480 Image. Used by headless bake and tests. Does not encode MPEG.