-
-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mob][photos] Fix bug in parsing rotation metadata from video using F…
…FProbe (#2595) ### Description Parse width and height of video correctly using FFProbe by - Considering both `coded_height` & `height` + `coded_width` + `width` keys to parse height and width of video. Came across two videos where `coded_width` and `coded_height` were both `0` where as `height` and `width` had the correct values. - Parse `rotation` from `side_data_list` and consider `rotation` for accurate (i.e, not flipped) dimensions. Have made sure the correct height and width of the video is shown on the video's file info. Sometimes there could be a slight difference from what a user would expect, if the `coded_side` is different from `side` (`side` is `width` or `height`). Will be fixing this in future. Ref: https://superuser.com/questions/1523944/whats-the-difference-between-coded-width-and-width-in-ffprobe
- Loading branch information
Showing
5 changed files
with
105 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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