InterDVDProject๏
Inherits: Resource < RefCounted < Object
Authoring graph for a VIDEO_TS / AUDIO_TS disc.
Description๏
Compiled disc graph consumed by the IFO writer. Prefer an InterDVDDisc scene tree; export calls InterDVDDisc.build_project(). A saved .tres still works when blazium/inter_dvd/project is set. Encode fields on this resource are used during bake/mux.
Properties๏
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods๏
add_title_from_video(path: String) |
|
add_chapter_from_video(title_n: int, path: String) |
|
add_title_from_scene(scene: PackedScene, duration_sec: float = 4.0) |
|
ensure_first_play(title_n: int = 1) |
|
language_be16(language: String) static |
|
sanitize_volume_id(id: String) static |
|
void |
|
void |
Property Descriptions๏
AC3 encode bitrate in kbps. Used during bake/mux.
AC3 channel count (1โ6). Used during bake/mux.
float pip_blackdetect_sec = 2.5 ๐
Seconds scanned for PiP lead-in black.
float pip_blackdetect_pix_th = 0.12 ๐
PiP black-detect pixel threshold.
String audio_language = "en" ๐
Default ISO 639-1 code for title audio attributes.
int bake_warmup_frames = 2 ๐
Viewport frames skipped before the first captured bake frame.
Human title written into TXTDT_MGI (libdvdnav get_title_string).
InterDVDPGC first_play ๐
void set_first_play(value: InterDVDPGC)
InterDVDPGC get_first_play()
Optional First Play PGC (FPC). Use ensure_first_play() to write JumpTT to the main title. If empty, export jumps to the title menu when one has buttons, otherwise to title 1.
MPEG GOP size passed to ffmpeg -g.
ISO 639-1 code written on VMGM/VTSM PGCI_UT language units.
void set_menus(value: Array[InterDVDMenu])
Array[InterDVDMenu] get_menus()
InterDVDMenu.MENU_TITLE menus are concatenated into VIDEO_TS.VOB (VMGM). Other menus mux into VTS_NN_0.VOB for InterDVDMenu.title_set_nr.
Default parental level.
String provider_id = "BLAZIUM INTER-DVD" ๐
32-byte VMGI provider identifier.
Region mask written into the VMG.
Optional disc serial string (max 15 characters) stored with TXTDT.
String subtitle_language = "en" ๐
Default ISO 639-1 code for subtitle attributes when SPU PES is muxed.
int title_safe_bottom = 432 ๐
NTSC title-safe bottom scanline for HLI clamp (buttons below this are lifted).
Array[InterDVDPGC] titles = [] ๐
void set_titles(value: Array[InterDVDPGC])
Array[InterDVDPGC] get_titles()
Title PGCs (one VTS). Every cell on each title is muxed; use add_title_from_video() to add a clip.
String volume_id = "BLAZIUM_DVD" ๐
ISO9660 volume label written into disc.interdvd.json and the toolchain ISO volume.
Disc metadata author (blazium.interdvd.meta/v1).
Optional AUTORUN.INF icon path.
String autorun_label = "" ๐
Optional AUTORUN.INF label.
Optional AUTORUN.INF open target.
Copyright text packed by the toolchain.
String copyright_file = "" ๐
Copyright file copied onto the disc root.
Credits text packed by the toolchain.
Credits file copied onto the disc root.
PackedStringArray extras = PackedStringArray() ๐
void set_extras(value: PackedStringArray)
PackedStringArray get_extras()
Host paths to pack beside VIDEO_TS, each host or host:disc.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
Host folder whose children are merged onto the disc root.
License text packed by the toolchain.
License file copied onto the disc root.
ISO9660 publisher identifier.
Readme text packed by the toolchain.
Readme file copied onto the disc root.
Studio name in disc metadata.
Disc version string.
Studio or product website.
Method Descriptions๏
InterDVDPGC add_title_from_video(path: String) ๐
Creates a title PGC with one cell whose InterDVDCell.source_path is path, appends it to titles, and returns the title.
Array[InterDVDPGC] add_titles_from_videos(paths: PackedStringArray) ๐
Calls add_title_from_video() for each non-empty path and returns the titles that were added.
InterDVDCell add_chapter_from_video(title_n: int, path: String) ๐
Appends a video cell (chapter) to title title_n (1-based). 0 means the last title. If there are no titles yet, creates title 1 from path.
InterDVDPGC add_title_from_scene(scene: PackedScene, duration_sec: float = 4.0) ๐
Creates a title PGC with one cell that bakes scene for duration_sec seconds and appends it to titles.
Appends a VMGM InterDVDMenu.MENU_TITLE menu (still time 0) with a Play button that jumps to title 1.
Appends a VLC-safe title PGC named Menu with a Jump Title button to title 1. Prefer this over JumpSS/CallSS from the title domain when returning to a menu.
InterDVDPGC ensure_first_play(title_n: int = 1) ๐
Creates or updates first_play so First Play JumpTT goes to title_n (the main title). Returns the First Play PGC.
int language_be16(language: String) static ๐
Packs an ISO 639-1 code into the 16-bit IFO language field (en is 0x656E).
String sanitize_volume_id(id: String) static ๐
Uppercase ISO9660 volume label: A-Z0-9_, max 32 characters. Empty input becomes BLAZIUM_DVD.
void reset_encode_defaults() ๐
Resets encode and region fields to engine defaults (region 1, AC3 192 kbps stereo, GOP 15, title-safe 432, warmup 2).
void seed_from_project_settings() ๐
Alias of reset_encode_defaults().