Skip to content

How can I prove that uneven motion comes from source timing rather than the swap?

Compare consecutive presentation-time gaps in the exact source and output files, then inspect the suspicious action interval at normal speed. A nominal frame-rate field cannot show where uneven spacing occurs. This audit identifies a timing pattern worth reviewing; it does not prove that a generated gesture matches the source, and it does not require converting every variable-frame-rate clip to a constant rate.

MEDIA DIAGNOSTICS: FILES, STREAMS AND CLOCKSAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial worksheet excerpt: Source; Output; Player check. See the complete table and sources below.
Editorial worksheet excerpt: Source; Output; Player check. See the complete table and sources below.

Cadence review worksheet

There are two independent questions: whether pictures are scheduled unevenly and whether their content depicts uneven movement. A regular timestamp sequence may still contain duplicated-looking poses. An irregular source can also play smoothly. The artifact is a small frame-time CSV paired with an action note, so the editor can separate timing evidence from appearance. The existing source-conversion decision remains separate: only create a constant-rate copy when a documented downstream need or a reproducible issue justifies it.

Build the evidence

  1. 01

    Collect the presentation timestamps

    Run ffprobe on the selected moving video stream and preserve JSON as the raw input. Use best_effort_timestamp_time for a decoded-frame review where supplied. Keep the same actual file versions throughout. The Python example ignores frames without that value, counts those omissions explicitly and compares adjacent returned times. It does not silently claim that omitted data proves a gap in the media.

  2. 02

    Make a local interval table

    Write frame position, timestamp and the gap from the preceding returned timestamp. Work in seconds and retain adequate precision. A value of zero, a negative change or a long interval deserves examination, but none has a universal visual-failure threshold. Check whether the file or inspection path supplied duplicate information before concluding that an encoded frame was duplicated or lost.

  3. 03

    Connect the numbers to a visible event

    Find the action around a flagged interval in a frame-capable editor, then watch the passage normally. For an output comparison, locate the corresponding gesture rather than assuming matching seconds show matching poses. Record whether the source already contains the cadence change, whether only the result does, or whether the discrepancy exists only in a particular player. Keep these conclusions separate in the worksheet.

A bounded example

Illustrative decision: the source's maximum-reach gesture spans several unequal frame intervals, while an output has evenly spaced timestamps but a visibly repeated pose. The first finding describes scheduling; the second concerns picture content. A constant-rate conversion could change the first pattern while leaving the second limitation unresolved. The supplied CSV analysis is a documented local diagnostic recipe, not a measured success-rate study of AISwapLab motion preservation. Include the original frame JSON with the CSV. A reviewer should be able to rerun the analysis and distinguish a missing inspector field from a real discontinuity.

Local diagnostic commands

Documentation example only. ffprobe was unavailable locally; the probe-and-CSV recipe has not been executed against real input. Review the JSON schema and a small known file before applying it to a production batch.

shell
ffprobe -v error -select_streams V:0 -show_frames -show_entries frame=best_effort_timestamp_time -of json source.mp4 > frames.json
# Save the following as frame_deltas.py, then run: python frame_deltas.py
import json, csv
from decimal import Decimal
data = json.load(open("frames.json", encoding="utf-8"))["frames"]
values = [Decimal(f["best_effort_timestamp_time"]) for f in data
          if "best_effort_timestamp_time" in f]
with open("frame-deltas.csv", "w", newline="", encoding="utf-8") as output:
    writer = csv.writer(output)
    writer.writerow(["returned_frame", "pts_seconds", "delta_seconds"])
    for i, value in enumerate(values):
        writer.writerow([i, str(value), "" if i == 0 else str(value-values[i-1])])
print("frames_without_timestamp", len(data)-len(values))

Cadence review worksheet

FileTiming findingPicture finding
SourceConsecutive timestamp gapsGesture at flagged interval
OutputIts own gaps and durationCorresponding action, not assumed same second
Player checkReproducible playback environmentStutter only here or in decoded media

Acceptance evidence

  • Keep source and output CSV files labeled with their respective identities.
  • Report missing timestamp entries rather than concealing them.
  • Inspect flagged intervals in picture before classifying an error.
  • Do not turn a single average-rate comparison into a VFR diagnosis.

Stop condition

Stop before any conversion if the audit finds no relevant visible timing fault and the downstream workflow accepts the source. If the source and output depict different action pacing, do not hide that by interpolating timestamps. Use event-based review and decide whether the generated result satisfies the actual brief.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example