# Validated AAC packet-copy delivery

> Validated AAC packet-copy delivery in the Edith ed command line reference. Back to Studio · All CLI commands

- Canonical URL: https://getedith.pro/docs/cli/studio/audio-copy
- Updated: 2026-12-02

[Back to Studio](https://getedith.pro/docs/cli/studio) · [All CLI commands](https://getedith.pro/docs/cli)

Native video rendering can preserve a previously approved AAC soundtrack's
compressed packets without decoding or re-encoding that soundtrack:

```sh
ed studio edit render demo.openscreen --output delivery.mp4 \
  --audio-codec copy --audio-copy-track AUDIO_TRACK_ID \
  --audio-sample-rate 48000 --audio-channels 2 --json
```

H.264 and HEVC use MP4; ProRes uses MOV. The same flags are available through
`edith_studio_edit_render`. The selected independent track's processed audio
reference takes precedence over its original source. Its source may be an
audio-only file or a video container, but must contain exactly one AAC stream.
FFmpeg must be available through Studio engine detection; ffprobe is not used.

Preflight runs before creating delivery files. Copy requires:

- Exactly one audible independent track, explicitly selected by ID.
- Any attached clip audio muted or absent.
- Source offset zero and output start zero, unity rate/gain, no loop, fades,
  gain envelope, audio joins, or other audible tracks.
- Complete source-stream duration matching both soundtrack and video timing.
- Matching sample rate and channel options, with no resampling or downmix.
- No `--start-frame` or `--end-frame` selection. Partial stream copies are
  currently rejected, even if a requested cut might align to a packet.

The full AAC stream need not have a duration divisible by 1024 samples. Encoder
priming, final partial packet durations, skip-sample records, and trailing
padding are supported and preserved. Full-stream copy is distinct from cutting
a partial AAC packet. Native AAC may retain a full final encoded packet whose
discard padding brings its presented end to the stream duration; sources whose
final packet duration already expresses the trim are also supported only when
that duration plus discard padding equals the full sample duration established
by the preceding packets. A full final packet must end at the declared stream
duration after subtracting padding. Ambiguous packet geometry is rejected. Padding
must be nonnegative, smaller than the last packet, and confined to the stream
end. Encoder-delay skips are confined to the first packet and must match preroll.
Ambiguous timestamps, gaps, overlapping packets, missing
codec configuration, multiple audio streams and unaccounted preroll are rejected.

Video is rendered through the existing native pipeline into temporary video-only
media. FFmpeg then remuxes that native video with the approved soundtrack using
stream copy. A shared rational movie timescale preserves source sample timing.
Before atomic publication, native AVAssetReader verification compares every
packet's SHA-256, PTS, DTS, duration and skip/padding metadata, plus codec
configuration, sample rate, channels, timebase and presentation bounds. Native verification also checks the
video frame count and canvas. The final report includes `audioPassthrough` with
the source hash, packet count, timebase and `packetDataAndTimingVerified: true`.

There is no silent encoding fallback. Unsupported requests return
`invalid_audio_copy`; backend and verification failures have separate error
codes. The normal source/project destination protections and atomic overwrite
rules also apply. Audio bitrate is unused for packet copy.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
