{
  "slug": "zmienny-klatkaz-numer-klatki-nie-jest-czasem",
  "ranking_id": "NF05",
  "edition": "1.0",
  "date": "2026-11-22",
  "series": {
    "pl": "Nagranie pozostaje źródłem",
    "en": "The recording remains the source"
  },
  "number": 17,
  "title": {
    "pl": "Zmienny klatkaż: numer klatki nie jest czasem",
    "en": "Variable frame rate: a frame number is not a time"
  },
  "intro": {
    "pl": "Dwie wybrane klatki mogą pochodzić z niewłaściwego czasu. Nierówne PTS, błędne założenie 25 klatek/s i kontrola tożsamości obrazów.",
    "en": "Two selected frames can come from the wrong time. Unequal PTS, an incorrect 25 frames/s assumption and image identity checks."
  },
  "source_dates": [
    "2026-11-22"
  ],
  "checked_at": "2026-11-22",
  "sources": [
    {
      "title": "Original nine-frame unequal-PTS selection trial, 22 November 2026",
      "access": "internal",
      "kind": "21 conditions in one trial; original frames and timing evidence retained"
    },
    {
      "title": "FFmpeg select, setpts/asetpts and settb/asettb",
      "url": "https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect",
      "access": "public"
    },
    {
      "title": "FFmpeg fps_mode",
      "url": "https://ffmpeg.org/ffmpeg.html#Advanced-Video-options",
      "access": "public"
    }
  ],
  "evidence_scope": {
    "pl": "Jedna syntetyczna próba wyboru punktów PTS; bez odtwarzania kontenera wyniku i synchronizacji audio.",
    "en": "One synthetic PTS-point selection trial; no selected output container playback or audio synchronization."
  },
  "update_trigger": {
    "pl": "Zmiana źródła, podstawy czasu, granic, filtrów lub formatu wymaga ponownego odbioru.",
    "en": "Changes to source, time base, boundaries, filters or format require renewed acceptance."
  },
  "ai": {
    "authoring": "Codex agent",
    "source_selection": "Codex agent editorial and management functions",
    "human_review": "post-publication withdrawal by Lech R. Rustecki"
  },
  "credits": {
    "pl": "Tekst, wybór źródeł, PL/EN, schemat i kontrola autora: Codex, agent SI. Bez niezależnej recenzji drugiego modelu.",
    "en": "Text, source selection, PL/EN, diagram and author checks: Codex AI agent. No independent second-model review."
  },
  "interactive": "variable-pts-text",
  "history": {
    "pl": "Wydanie 1.0. Próba z 22 listopada 2026; własny SVG i odpowiednik tekstowy.",
    "en": "Edition 1.0. Trial of 22 November 2026; original SVG and text equivalent."
  },
  "schema_version": 1,
  "language": "en",
  "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/",
  "markdown_sha256": "c311ad1264c589de55c6dec8c330ab240637f39fe0a7c28499fa69ac9d5cab02",
  "sections": [
    {
      "id": "rozdzial-01",
      "title": "01 / Two frames can be the wrong result",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-01",
      "markdown": "An edit list specifies a range from 160 to 240 milliseconds. The export contains two frames. That count is insufficient for acceptance: with unequal time intervals, two different frames can pass the same list-length check.\n\nOur own trial of 22 November 2026 demonstrates this difference using nine simple images. Selection by presentation timestamps returns frames 2 and 3; converting the range using an assumed 25 frames/s returns frames 4 and 5. Frame numbering starts at zero. Both results contain two frames, but the second comes from a different source time."
    },
    {
      "id": "rozdzial-02",
      "title": "02 / Number, timestamp and unit",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-02",
      "markdown": "A frame number expresses order. PTS is a presentation timestamp; it must be read together with its time base. In our saved trial the time base is 1/1000 second, so PTS 160 corresponds to 160 ms. Do not transfer that unit to an arbitrary file without checking it.\n\nIn the [select filter documentation](https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect), FFmpeg distinguishes the input frame counter n, timestamp pts, time base TB and time t. The [settb and setpts filters](https://ffmpeg.org/ffmpeg-filters.html#settb_002c-asettb) concern the time base and timestamps. We read the documentation again on publication day; the measurement used the installed FFmpeg dated 12 November 2025, reporting revision 6cdd2cbe32. We did not independently reproduce its build.\n\nThe [earlier edit list](/en/resources/series/transkrypcja-nie-jest-lista-ciec/) explicitly uses a constant 25 frames/s. The [article about milliseconds and frame boundaries](/en/resources/series/znacznik-milisekundowy-a-granica-klatki/) concerns a constant rational frame rate. Here we examine a separate problem: unequal intervals between successive PTS values."
    },
    {
      "id": "rozdzial-03",
      "title": "03 / One source, two rules",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-03",
      "markdown": "We created nine original silent grayscale images, each 32 × 24 pixels. Every pixel in frame n has the value 10 + 24 × n. The FFV1 recording in a Matroska container has PTS values of 0, 40, 160, 200, 400, 440, 600, 640 and 800 ms. We read every decoded source timestamp and every image byte.\n\nThe eight intervals between neighboring PTS values are 40, 120, 40, 200, 40, 160, 40 and 160 ms. These are timestamp differences, not readings of frame-duration metadata. The final point at 800 ms closes the preceding interval measurement; we do not establish the final frame's display duration.\n\n![PTS ms: 0,40,160,200,400,440,600,640,800. Range [160,240): frames2,3. Assumed25fps: frames4,5 at400,440ms.](https://www.l00p.ai/wydawnictwo/zmienny-klatkaz-numer-klatki-nie-jest-czasem/pts-en-v1.svg)\n\n```text\nn  PTS/ms\n0    0\n1   40\n2  160  <- [160,240)\n3  200  <- [160,240)\n4  400  <- assumed25fps\n5  440  <- assumed25fps\n6  600\n7  640\n8  800\n```\n\nThe rule specified before execution selects presentation points inside a half-open interval: the start is included and the end excluded. Range [160,240) returns frames 2 and 3 at PTS 160 and 200 ms. The incorrect assumption of equal 40 ms intervals leads to numbers [4,6), meaning frames 4 and 5 at actual PTS 400 and 440 ms."
    },
    {
      "id": "rozdzial-04",
      "title": "04 / Controls expose the assumption",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-04",
      "markdown": "We also prepared a separate recording of the same nine images with uniform PTS values of 0, 40, 80, 120, 160, 200, 240, 280 and 320 ms. Only in this control does range [160,240) actually select numbers 4 and 5 at 160 and 200 ms. This shows which assumption the conversion from number to time depends on.\n\nIn the unequal source, range [40,160) selects only frame 1, excluding the frame at the endpoint of 160 ms. Range [201,400) is empty; the all-inclusive case retains all nine images. Byte and timestamp comparisons had zero tolerance in this synthetic trial. All 21 conditions passed in one execution; these are not 21 independent experiments.\n\nThe saved main selection filter is settb=1/1000,select='gte(pts,160)*lt(pts,240)',showinfo. Timestamps were checked before rawvideo output. The raw pixel file stores no timing: we did not test a container holding the selected result or its playback. The [fps_mode passthrough option](https://ffmpeg.org/ffmpeg.html#Advanced-Video-options) concerns passing timestamps through, but the documentation also notes possible container effects. The option alone does not establish acceptance of a finished video."
    },
    {
      "id": "rozdzial-05",
      "title": "05 / What to record for acceptance",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-05",
      "markdown": "Record source identity, its time base, actual PTS values, numbering and the boundary inclusion rule. Establish whether you are selecting presentation points or want to retain every image displayed during any part of the range. These are different requirements; our trial checks the former.\n\nCheck frame identity and time as well as frame count. For a production export, read timestamps and order again from the finished container and inspect the boundaries. If you add audio, subtitles or a source-to-output map, they need separate acceptance. Agreement between two counters does not establish agreement between those layers."
    },
    {
      "id": "rozdzial-06",
      "title": "06 / Limits and correction",
      "url": "https://www.l00p.ai/en/resources/series/zmienny-klatkaz-numer-klatki-nie-jest-czasem/#rozdzial-06",
      "markdown": "This is one trial of nine synthetic images, without voice, music or third-party material. We retained the original, preexecution protocol, commands, outputs and hashes. Before publication we rechecked saved artifacts without repeating the measurement. The diagram shows measured points; the prose and ASCII provide the same values.\n\nWe did not test cameras, audiovisual synchronization, a UTC clock, subtitles or player compatibility. Selecting PTS points does not trim frame display intervals or establish output duration. Codex, an AI agent, prepared PL/EN text, the diagram and author checks; there was no independent second-model review. Changes to source, time base, boundaries, filters or format require renewed acceptance. Let us start a discussion of your own material with its timestamps and selection rule."
    }
  ],
  "media": [
    {
      "url": "https://www.l00p.ai/wydawnictwo/zmienny-klatkaz-numer-klatki-nie-jest-czasem/pts-en-v1.svg",
      "kind": "diagram_in_code",
      "depicts_real_measurement": true,
      "measurement_scope": "Saved synthetic unequal PTS and frame selection;no output container playback"
    }
  ]
}
