pablovela5620 Claude Fable 5 commited on
Commit
c89f8d5
·
1 Parent(s): c1a73af

Re-vendor fdanyone at the B-frame-free encoder

Browse files

Picks up the pipeline's own `bf=0` on `write_video`, so the mp4s on disk
carry no B-frames in the first place. Belt and braces: the Rerun reader
strips them anyway on the way into a VideoStream, but a target video that
never had them is one fewer transcode and one fewer thing to reason about.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files changed (2) hide show
  1. PROVENANCE.md +2 -2
  2. fdanyone/video.py +2 -1
PROVENANCE.md CHANGED
@@ -6,8 +6,8 @@
6
  | --- | --- |
7
  | Source repository | <https://github.com/pablovela5620/4DAnyone-5090> |
8
  | Branch | `space-streaming` |
9
- | Commit | `0cc334c2b260ff19b23d423ac8123d318ed602ff` |
10
- | Synced | 2026-08-27T05:15:32Z |
11
 
12
  ## Excluded from the copy
13
 
 
6
  | --- | --- |
7
  | Source repository | <https://github.com/pablovela5620/4DAnyone-5090> |
8
  | Branch | `space-streaming` |
9
+ | Commit | `8ac42505d39533e01504b7749ca36474f60fba44` |
10
+ | Synced | 2026-08-27T16:27:49Z |
11
 
12
  ## Excluded from the copy
13
 
fdanyone/video.py CHANGED
@@ -442,7 +442,8 @@ def write_video(
442
  stream.width = width
443
  stream.height = height
444
  stream.pix_fmt = "yuv420p"
445
- stream.options = {"crf": str(crf), "preset": preset}
 
446
  for index, rgb in enumerate(itertools.chain((first,), iterator)):
447
  if rgb.shape != first.shape:
448
  raise VideoContractError(f"Frame {index} has shape {rgb.shape}, expected {first.shape}.")
 
442
  stream.width = width
443
  stream.height = height
444
  stream.pix_fmt = "yuv420p"
445
+ # No B-frames: Rerun's web VideoStream decoder cannot reorder them.
446
+ stream.options = {"crf": str(crf), "preset": preset, "bf": "0"}
447
  for index, rgb in enumerate(itertools.chain((first,), iterator)):
448
  if rgb.shape != first.shape:
449
  raise VideoContractError(f"Frame {index} has shape {rgb.shape}, expected {first.shape}.")