JOIN READINESS LAB

Same dimensions, different join: inspect audio and time bases before concat

Two 320 × 180 clips can still carry different audio structures. Compare actual stream fields, inspect bounded timing evidence, and generate a deliberate SDR normalization plan.

A photographed video editing timeline shows many picture clips above layered green audio tracks
Illustrative stock photo: Alex Fu / Pexels. The photo is not a screenshot demonstrating the steps in this guide.
AT A GLANCE

Our two clips had the same video dimensions and frame rate, but different audio sample rates and channel layouts. A direct copy join exited successfully with no decoder errors yet reported 4.377 seconds. That is a reason to inspect the result, not proof that matching visible settings makes every join safe.

A merge button cannot supply a missing decision

You export two clips with the same picture size and frame rate, then expect them to concatenate without surprises. Those visible settings leave out audio sample rate, channel layout, stream order, codec configuration and time bases. They also say nothing about whether the receiving application interprets every timestamp as intended.

The video merger arranges two to six short SDR clips and exports a joined MP4 in the browser. Choose a canvas, frame rate and first-track audio or silence. It normalizes the streams before joining and checks the output settings, duration and decode. This re-encodes picture; it is not a lossless preservation export.

Established applications already perform metadata comparison and compatibility checks. Our purpose is to connect a difference to an explicit next action and a reproducible example. A creator should be able to explain why the plan adds silence, omits an alternate soundtrack or re-encodes the picture before running it.

A small test with a hidden audio difference

We generated two synthetic clips using desktop FFmpeg 8.1.1. Both have two seconds of 320 × 180 H.264 video at 30 fps. Clip A has mono AAC at 44.1 kHz; Clip B has stereo AAC at 48 kHz. The video headings look alike, but their soundtracks describe different sample clocks and channel arrangements.

Inspected fieldClip AClip B
Video dimensions320 × 180320 × 180
Video frame rate30 fps30 fps
Audio sample rate44,100 Hz48,000 Hz
Audio channels1 · mono2 · stereo

We joined those two with the concat demuxer and stream copying. The mux command returned exit code 0 with no warning lines. A subsequent decode also returned exit code 0 with no error lines. However, ffprobe reported 4.376961 seconds for the resulting container. Command success and a clean decoder log were not enough to establish the intended boundary timing.

This is not a claim that every audio mismatch creates this duration difference, nor that this particular file contains a perceptually measured failure. We did not score audible sync or pinpoint a causal mechanism by changing only one audio variable. The experiment shows why a join needs structural inspection and a measured output check.

Clip A · Clip B · Measured commands and result details

Conceptual diagram for Matching dimensions are only the start.
Original ToolWillow diagram. Illustrated concept, not measured product results.

What the workbench compares—and what it cannot know

The report compares stream order and count, codecs and profiles, coded dimensions, pixel formats, sample aspect ratios, rational time bases, audio sample rates and channel layouts. When ffprobe exposes codec-configuration hashes, those are compared too. Display rotation and color tags are shown because two similarly sized frames can still have different presentation requirements.

A codec-configuration mismatch is a finding; an absent hash is incomplete evidence. Similarly, missing essential fields cannot be treated as a confirmed match. The report explains why a subtitle, data stream or extra soundtrack needs deliberate mapping instead of silently treating it as disposable.

The first up to 300 video packets provide a separate timing sample. Presentation timestamps are sorted before interval comparison because decode order can differ when B-frames are present. An irregular sample reports observed variable spacing. A regular sample does not prove that the rest of the file is CFR, and a different average-frame-rate metadata value alone is not used as a hard mismatch verdict. None of those checks diagnoses the content’s intended lip sync.

Normalize only after accepting the handoff losses

The plan is available for an explicitly confirmed SDR workflow. Known HDR-related markers block it, and an absence of such markers does not automatically establish SDR. Use a color-managed editor for uncertain HDR/log material or a color-critical master.

Choose a landscape 720p/1080p or portrait 720 × 1280 canvas and an output frame rate. The commands account for non-square input pixels, fit and pad the picture to the selected canvas, then encode H.264 with square pixels. They retain the first video and first soundtrack. A source with no sound gets a stereo silent track. Audio becomes 48 kHz stereo AAC.

Starts are deliberately rebased, and audio is padded or trimmed to the video segment duration. This can erase an intentional inter-track offset or discard an audio tail. Subtitles, extra soundtracks, data streams and source metadata are omitted. Those are acceptable choices for some simple listening copies and unacceptable for others. If you need more than the first soundtrack, make the intended mix with the audio handoff builder first or use a desktop editor with deliberate mapping.

Our normalized three-clip result

For the second experiment we added a third clip: two seconds of silent 640 × 360 video at 25 fps. The generated plan converted all three to 1280 × 720 at 30 fps and supplied the silent clip with 48 kHz stereo sound. It then copied the normalized streams into the final joined MP4.

The final container measured 6.021333 seconds, with one 1280 × 720 H.264 video stream and one stereo 48 kHz AAC stream. A full desktop decode produced no error output. Its byte size was 1,535,255. The small duration overhead belongs to this encoded/container result; it is not a promise that every normalized join has the same overhead.

Third silent input · Normalized three-clip output · Full source/output measurements and commands

These are synthetic desktop measurements, not a named-version editor test or a comparison against every other joiner. The browser merger fits and retimes decoded inputs, joins their picture and sound, then encodes once with the veryfast preset. The measurements above used the earlier desktop normalization plan and medium preset. In a separate pinned-engine test under Node, the browser merge command processed the clips in B, silent, A order. Its first-track-audio output was 1,403,248 bytes and 6.000 seconds at 1280 × 720; its all-silent output was 1,339,164 bytes. Both passed the decoder check. Audio RMS measurements confirmed the middle segment stayed silent, and the silent-output mode stayed silent in all three sampled segments. These generated fixtures do not establish subjective quality or synchronization on arbitrary recordings.

Pinned-engine merged output · Silent merged output · Exact merge commands, hashes and measured results

Check the completed join at every boundary

  1. Work in a new folder and copy each original under the safe alias listed in the plan. Keep originals intact.
  2. Run each normalization command before concatenating the normalized files. Renaming the source alone does not normalize it.
  3. Decode-check the finished file with ffmpeg -v error -i joined.mp4 -f null -.
  4. Compare the final duration with the expected segment sum, allowing for known audio/container framing behavior.
  5. Play around every boundary: inspect motion, rotation, framing, speech, silence and any intended overlap.
  6. Open the delivery in the actual receiving application. A local decode check does not certify that application’s handling.

For a browser export, choose clips in the merger, inspect them, set the desired canvas, rate and sound, then merge and download. The desktop commands in the measurement record remain available for reproducing this experiment. For the broader distinction between a rough copy join and re-encoding, see the earlier mismatch experiment.

Common questions

Does “inspected metadata matches” mean I can safely copy-join?

No. It describes only the fields and timestamp sample inspected. Validate the actual join’s decoding, duration, boundaries and audio in the receiving workflow.

Why not call every average-frame-rate difference a failure?

Averages can differ without proving a copy join will fail. The report treats that as a review signal and keeps sampled timestamp observations separate.

Does the generated plan preserve every soundtrack and subtitle?

No. It retains the first video and first audio, adds silence when audio is absent, and omits extra tracks, subtitles and metadata. Those choices must fit your intended handoff.

Sources & further reading

Written for ToolWillow with original explanations and examples. Consult current product documentation for controls that vary by version.

Try the free browser tools →