Video export, image export, audio-only export, transparent stacked-alpha export, FFmpeg WASM intermediates, named export presets, and FCPXML interchange.
The export panel currently exposes three live encoder paths:
webcodecsfor the fast frame-by-frame pipelinehtmlvideofor the precise HTML-video-seeking pipelineffmpegfor the CPU FFmpeg WASM pipeline
FCPXML is exposed as a selectable export container for NLE interchange.
- A sticky summary bar at the top shows compact badges plus the primary export button.
- Clicking a summary badge smooth-scrolls to the related control group and briefly highlights it.
- A compact command row above
Basiccontains a project-persistent preset list plusLoad,Update, andSave. - The workflow picker (
WebCodecs,HTMLVideo,FFmpeg) is its own section aboveBasic. Basiccontains output naming and container selection. The container row is grouped byVideo,Image,Audio, andXML, and switches output mode by selecting a deliverable directly.- The
Videogroup contains codec selection, resolution, frame rate, bitrate/rate controls, stacked-alpha, and range toggles. - In
Imagemode the same middle group becomes anImagepanel with format-aware resolution and quality controls, and it exports only the current playhead frame. - The
Audiogroup contains sample rate, bitrate, normalization, and audio-only range controls. - Lower in the panel, legacy
Advanced Video,Advanced Audio, andRange & Summarysections still exist for raw-value access. - Export settings and preset selection now live in a shared store, so changes inside the Export tab participate in global undo/redo and are restored with the project.
- Presets are stored per project, not in browser-only local storage.
Saveprompts for a name and creates a new preset or overwrites an existing preset with the same name.Updateoverwrites the currently selected preset without asking for a new name.Loadrestores the selected preset back into the live export settings.- Presets and the current export settings are written into the project UI state and restored with the project.
FrameExporter is used for both the WebCodecs and HTMLVideo export buttons.
Canvas-backed sources such as text, solids, and Lottie are re-rendered for every export frame before capture, so the exported frame matches the current timeline time instead of reusing a stale first-frame texture.
- Uses WebCodecs sequential decoding for a single clip.
- Uses
ParallelDecodeManagerwhen multiple clips are present in the export range. - Parses source media with MP4Box.
- Prefetches frames ahead of the render position.
- Can fall back to HTMLVideo-based precise export on specific decode or file-size failures.
- Uses detached
HTMLVideoElementinstances and browser seeking. - Tries to wait for ready state and a fresh frame before export captures.
- Is slower than fast mode, but it is the compatibility fallback when fast mode fails.
- Large source media can bypass fast mode and switch directly to precise mode.
- Fast mode also retries precise mode on known decode / buffer / unsupported-file failures.
- Single source file limit: 1.5 GB
- Total source files limit: 2 GB
These are current code limits, not generic recommendations.
Supported containers:
- MP4
- WebM
Supported codecs are checked at runtime:
- H.264
- H.265
- VP9
- AV1
- WebM is limited to VP9 or AV1.
- MP4 accepts the full codec list, but browser support is still checked with
VideoEncoder.isConfigSupported(). - Unsupported combinations are not silently promised by the docs; they must pass the runtime checks or be remapped by the encoder logic.
- The selected bitrate is passed into
VideoEncoder, but in the WebCodecs path it is still a target, not a guaranteed final file bitrate. rateControl = cbrmaps toVideoEncoderConfig.bitrateMode = "constant"and falls back to variable bitrate if constant mode is rejected during encoder configuration.- Browser encoders can still undershoot the requested bitrate on simple material, so the panel treats file size as a target estimate rather than an exact promise.
stackedAlpha is supported in the WebCodecs / HTMLVideo export path.
- The export canvas height is doubled.
- The top half contains RGB.
- The bottom half contains alpha as grayscale.
OutputPipelinemode2andExportCanvasManagerhandle the stacked-alpha render path.
- This is a stacked-alpha format, not a conventional single-layer transparent video container.
Audio export is handled separately from the video encoder.
- Audio is extracted from the selected timeline range.
AudioExportPipelinerenders the mixed audio.- WebCodecs export can mux the audio chunks into the final file.
- AAC is used for MP4 when supported.
- Opus is used for WebM when supported.
- If the browser cannot encode a usable audio format, the export can proceed without audio.
- The docs should not promise every container will always carry audio. The code checks support first and may disable audio for unsupported browsers or containers.
Image export renders a single composited frame at the current playhead position.
- PNG
- JPG
- WebP
- BMP
- The export does not use the In/Out range. It always renders only the current playhead frame.
- Custom resolution still applies before the image is written.
- PNG and BMP are exported losslessly.
- JPG and WebP expose a quality control in the panel.
- Audio is ignored while image export is active.
The FFmpeg path is a separate CPU-based export pipeline.
- Loads the FFmpeg core from the local
/ffmpegpath on demand. - Uses a single synchronous
callMain()execution model. - Blocks the UI while encoding is running.
- Reports progress from FFmpeg log output where possible.
- ProRes
- DNxHR / DNxHD family
- FFV1
- UTVideo
- MJPEG
- MOV
- MKV
- AVI
- MXF
- HAP is not available in this build.
- This build does not expose a shared decoder pool.
- Multi-threaded mode is only reported as a capability check; the exported core path is still synchronous.
callMain()blocks while encoding, so it is not the same runtime profile as the WebCodecs path.
FCPXML export is available through the container chooser as .fcpxml.
- Timeline structure
- Clip timing and track layout
- Basic audio placement
- Compositions are skipped
- Text clips are skipped
- The XML points back to media by file reference, so it is an interchange file, not a self-contained rendered deliverable
- This is useful for NLE round-tripping, not for final media delivery.
The PNG frame export action reads the current composited frame from the GPU.
engine.readPixels()reads the frame back from GPU memory.- The pixels are copied into a canvas.
- The canvas is then exported as a PNG file.
- This path is a CPU readback. It is correct, but it is not a zero-copy route.
- Prepare clips and runtimes for the selected export mode.
- Seek all clips to each export time.
- Build layers for that frame.
- Render through the GPU engine.
- Capture a
VideoFramefrom the export canvas when possible, otherwise fall back to pixel readback. - Encode and mux the file.
- Render each frame through the GPU engine.
- Read pixels from the GPU.
- Collect frames in memory.
- Extract audio if enabled.
- Run FFmpeg encoding.
- Neither path is background rendering. Both depend on the current browser session.
- Preview and export are separate pipelines, even though they reuse the same engine.
- Precise export still depends on browser media readiness and seek behavior.
- FFmpeg export is blocking.
- The exporter does not currently provide a true multi-pass render pipeline.
Key implementation files:
src/components/export/ExportPanel.tsxsrc/components/export/useExportState.tssrc/components/export/exportHelpers.tssrc/engine/export/FrameExporter.tssrc/engine/export/ClipPreparation.tssrc/engine/export/VideoSeeker.tssrc/engine/export/VideoEncoderWrapper.tssrc/engine/export/codecHelpers.tssrc/engine/managers/ExportCanvasManager.tssrc/engine/pipeline/OutputPipeline.tssrc/services/export/fcpxmlExport.tssrc/engine/ffmpeg/FFmpegBridge.tssrc/engine/ffmpeg/codecs.ts