feat: make media inspection progressive
This commit is contained in:
@@ -80,11 +80,15 @@ frames meet the threshold. The documented ffmpeg.wasm input ceiling is 2 GiB,
|
||||
but real limits can be substantially lower on mobile or memory-constrained
|
||||
browsers.
|
||||
|
||||
Source inspection has a bounded, size-aware watchdog: 30 seconds for small
|
||||
files, a two-MiB-per-second scan budget for larger files, and a five-minute
|
||||
ceiling. Recognized local audio/video can begin browser playback from its
|
||||
temporary object URL while that worker inspection continues; completed probe
|
||||
metadata remains authoritative for editing and export.
|
||||
Import does not start FFmpeg. Recognized local audio/video can begin browser
|
||||
playback from its temporary object URL while a native media element reads
|
||||
lightweight duration/dimensions. Detailed FFprobe inspection starts only when
|
||||
requested or required for an export and has a bounded, size-aware watchdog:
|
||||
30 seconds for small files, a two-MiB-per-second budget for larger files, and a
|
||||
five-minute ceiling. A detailed-inspection timeout is nonfatal; browser
|
||||
playback and basic file information remain available. Completed probe metadata
|
||||
remains authoritative for stream mapping, remux safety, chapters, tags,
|
||||
subtitles/attachments and export validation.
|
||||
|
||||
Lowering resolution, duration, frame rate, passes and output count reduces
|
||||
work. MT can be faster but consumes more memory/CPU and requires isolation; ST
|
||||
|
||||
Reference in New Issue
Block a user