Skip to content

[bug] macOS Firefox fails HEVC progressive-remux resume at an open-GOP boundary #658

Closed

Description

@blurbery

What happened

On macOS Firefox, resuming a copied HEVC progressive remux can fail in the platform decoder even though the same source plays from the beginning.

I reproduced this with Firefox 153.0.4 on macOS using Silo's current server_remux_progressive timeline behavior. The server reanchored the source at the preceding keyframe, the player retained the required player_start_seconds seek, and Firefox failed with MEDIA_ERR_DECODE before decoding a frame.

The affected source was a 2160p HEVC Main 10 Matroska file with an open GOP. It also carried Dolby Vision Profile 7, so I applied the same complete HDR10 base-layer isolation in both A/B arms. That keeps the separate DV7 correction in #657 out of the variable under test.

The only A/B difference was the initial leading-picture filter:

baseline:    dovi_rpu=strip=1,filter_units=remove_types=63
filter-only: noise=drop=lt(pts\,startpts)*not(key),dovi_rpu=strip=1,filter_units=remove_types=63

With the filter-only stream, Firefox completed the same saved-position seek, entered playing, decoded 59 frames with none dropped, and reported no media error. This means the client-side workaround that skips player_start_seconds is unnecessary and would resume early.

Steps to reproduce

  1. Use current main (edd919c5f7de7a0362f3d9d84f5145c7dd428771) and its normal progressive timeline behavior.
  2. In headed Firefox 153.0.4 on macOS, attach an HTTP/1.1 200 chunked, non-range fMP4 generated from a non-zero input seek into an open-GOP HEVC MKV.
  3. Assign video.currentTime = 1.042, matching the plan's saved position relative to the resolved keyframe origin, and call play().
  4. Observe the Apple VideoToolbox decode error and zero decoded frames.
  5. Repeat with the same source, timestamp, transport, browser seek, and muxing flags, adding noise=drop=lt(pts\,startpts)*not(key) before the existing copy filters.
  6. Observe that the seek completes and playback advances without a decoder error.

The test used an isolated local HTTP harness and the installed headed Firefox build so the macOS hardware decoder path was active. Headless Firefox was not used for the result.

Expected behavior

A resumed HEVC copy remux should preserve the v3 timeline contract, complete the exact player_start_seconds seek, and play without falling back to an encoded lower-resolution route.

Environment

  • Silo commit: edd919c5f7de7a0362f3d9d84f5145c7dd428771
  • Deployment: Docker
  • Client: Web UI
  • Browser: Firefox 153.0.4
  • Platform: macOS
  • Transport: server_remux_progressive, chunked fMP4, no byte ranges

Relevant logs

Raw browser events from the unfiltered arm:

{"type":"assigned-current-time","detail":1.042,"current_time":1.042,"ready_state":0,"quality":{"dropped":0,"total":0},"error":null}
{"type":"loadedmetadata","current_time":0.793,"ready_state":1,"quality":{"dropped":0,"total":0},"error":null}
{"type":"error","current_time":0.793,"ready_state":1,"quality":{"dropped":0,"total":0},"error":{"code":3,"message":"void mozilla::AppleVTDecoder::OnDecodeError(OSStatus): OnDecodeError:ffffbae2"}}

Raw browser events/result from the filter-only arm:

{"type":"seeked","current_time":0.793,"ready_state":4,"quality":{"dropped":0,"total":0},"error":null}
{"type":"playing","current_time":0.793,"ready_state":4,"quality":{"dropped":0,"total":0},"error":null}
{"currentTime":3.259037,"paused":false,"readyState":4,"quality":{"dropped":0,"total":59},"error":null}

Raw harness process results:

{"variant": "baseline", "returncode": 0, "stderr": ""}
{"variant": "filtered", "returncode": 0, "stderr": ""}

All hostnames, addresses, paths, item IDs, session IDs, and media titles are intentionally omitted. The event and process lines above are otherwise raw copy-paste output.

Suggested scope

  • Model this as a named, versioned server transformation rather than a client-supplied FFmpeg expression or an unadvertised boolean.
  • Probe and advertise the required noise bitstream filter so local and remote executors fail closed.
  • Scope it to evidenced macOS Firefox HEVC copy playback and execute it only for non-zero server seeks.
  • Preserve player_start_seconds; do not include the old browser-side seek suppression.
  • Keep zero-start playback, other codecs/platforms, route ordering, and video-transcode paths unchanged.

AI Disclosure

  • Tool(s): OpenAI Codex
  • Model(s): gpt-5
  • Involvement: fully AI-generated, with human-provided playback context and approval
  • Adversarial review: A pre-implementation review rejected the existing fork patch because it combined route ordering, client seek suppression, and an unadvertised server filter. The isolated A/B kept exact resume behavior and changed only the server filter; it proved the filter-only arm plays while the baseline reaches the macOS decoder error. No implementation diff exists yet.

Confirmations

  • I reproduced this myself on a real deployment
  • Logs above are raw copy-paste, not AI-summarized

AI involvement in this report

AI-generated, human verified the original real-deployment failure and successful production playback. The isolated A/B was executed by OpenAI Codex with the human-approved server and local Firefox environment.

AI tool + model

OpenAI Codex / gpt-5

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions