Skip to content

fix(render): probe side data in a way ffprobe 4.4 accepts - #233

Open
TheeCoderAhmed wants to merge 1 commit into
browser-use:mainfrom
TheeCoderAhmed:fix/ffprobe-4-side-data
Open

TheeCoderAhmed wants to merge 1 commit into
browser-use:mainfrom
TheeCoderAhmed:fix/ffprobe-4-side-data

Conversation

@TheeCoderAhmed

@TheeCoderAhmed TheeCoderAhmed commented Nov 3, 2026 •

Copy link
Copy Markdown

Fixes #232.

is_portrait_source asks ffprobe for stream_side_data=rotation. ffprobe 4.4 (the Ubuntu 22.04 package) has no stream_side_data section, so it rejects the whole -show_entries option. The function catches the non-zero exit and returns False, so portrait footage on 4.4 renders at the wrong size, with no error.

This asks for stream_side_data_list instead. The parser already reads side_data_list, so nothing else changes.

How I checked it:

  • Added a test where a fake ffprobe raises CalledProcessError when the option names stream_side_data=, as 4.4 does. It fails on main and passes here. The existing helper asserted the old option string, so I updated that line too.
  • Ran the new option on a real clip with ffprobe 9.0.2 and a 90 degree display matrix. It returns "rotation": 90 in side_data_list, the same shape as before.
  • I don't have ffprobe 4.4 here. sinmi-hub confirmed the same option on 4.4.2 in the issue.

Summary by cubic

Fixes portrait-video orientation detection on ffprobe 4.4 (Ubuntu 22.04), which rejected the stream_side_data=rotation probe option and silently defaulted portrait footage to landscape.

  • Probes stream_side_data_list instead; the existing parser already handles this shape, so output parsing is unchanged.
  • Adds a test simulating ffprobe 4.4 rejecting the old option, and updates the mock assertion to match the new option string.

Written for commit 2fba357. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_portrait_source returns False for every source on ffmpeg 4.4 (stream_side_data section not supported)

1 participant