Repository navigation
fix(render): probe side data in a way ffprobe 4.4 accepts - #233
Open
TheeCoderAhmed wants to merge 1 commit into
Open
TheeCoderAhmed wants to merge 1 commit into
TheeCoderAhmed wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #232.
is_portrait_sourceasks ffprobe forstream_side_data=rotation. ffprobe 4.4 (the Ubuntu 22.04 package) has nostream_side_datasection, so it rejects the whole-show_entriesoption. The function catches the non-zero exit and returnsFalse, so portrait footage on 4.4 renders at the wrong size, with no error.This asks for
stream_side_data_listinstead. The parser already readsside_data_list, so nothing else changes.How I checked it:
CalledProcessErrorwhen the option namesstream_side_data=, as 4.4 does. It fails onmainand passes here. The existing helper asserted the old option string, so I updated that line too."rotation": 90inside_data_list, the same shape as before.Summary by cubic
Fixes portrait-video orientation detection on ffprobe 4.4 (Ubuntu 22.04), which rejected the
stream_side_data=rotationprobe option and silently defaulted portrait footage to landscape.stream_side_data_listinstead; the existing parser already handles this shape, so output parsing is unchanged.Written for commit 2fba357. Summary will update on new commits.