-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] Added orientation metadata to iOS recorded videos. #1452
[camera] Added orientation metadata to iOS recorded videos. #1452
Conversation
This has fixed the issue of video captured in Landscape being rotated 90 degrees in iOS when using the camera plugin. |
@mklim @bparrishMines |
I'll drop this here while we wait for the PR review, it's a fix for the camera plugin and video plugin recording quality and rotation issues. For people interested in a fix have a look at the discussion on this issue: flutter/flutter#29951 Copy-paste, for more fixes (like issues with aspect ratio) check the previous link:
I created a branch with those 4 fixes merged together, I suggest you try this branch first and see if it works on your side: You can use it by adding this in your pubspec.yaml:
|
Thank you for the contribution! Since we are still deciding on the direction of the camera plugin (including writing tests), current and new features are not properly covered by tests. In order to maintain a quality bar for flutter/plugins we are going to avoid adding new features or substantial changes that aren't critical. Our best recommendation for now would be to fork the current version of the plugin. (As it looks like you are doing already). Once we make a decision for the camera plugin, we'll update all related issues and PRs. |
* Skip flaky firebase_performance driver tests
@quentinleguennec ty so much for the fix! The orientation metadata is there now, but I've noticed with your version my video recording quality is much worse. I wonder if there was another fix for that in the master branch after? Do you have plans for updating your pr with the latest? I can try to take a stab, but some of the code is foreign to me. |
Hi @pajama To be honest I wrote this fix a year ago, things must have changed a lot from master since then, especially since Google wanted to do a big refactoring of the camera plugin (see bparrishMines comment of 5 Jun 2019 above). Did you try the branch I created which contained this fix and a few others? I was trying to fix a few issues at the time, can't remember all of them from the top of my head ^^'. See my comment from 21 May 2019 above. This branch will be very out of date with the current state of the camera plugin on master though, you will need to see if it doesn't break anything on your side. |
This problem still exists. How can i solve this problem when shooting video horizontally in ios, the camera version is 0.5.8+2 |
Problem still exists! Please, fix it |
Currently using the ff
Issue still persists |
I'm having the same issue with recording video in landscape mode. @quentinleguennec, there are also several conflicts here that need to be resolved. |
@yurijdvornyk We currently have a separate team working on updating and improving the camera plugin. This requires many structural changes and implementing the federated plugin model. Due to this, it may be better to close this PR and create a new one from the improved implementation of the plugin. However, I still can't give an estimate on when the bug will be worked on. |
@quentinleguennec, @yurijdvornyk, we have reimplemented this pull request (a long with some other orientation issues related to Android and iOS) as part of #3390. These also adhere to the new structural changes mentioned by @bparrishMines. I will therefore be closing this pull request in favour of tracking progress in #3390. |
Description
This adds rotation metadata to recorded videos on iOS (they are already here in Android). It also ensure that videos recorded on Android and iOS will have the same metadata (as seen with
ffprobe -show_streams
).By achieving consistency of recorded video metadata between platform we can ensure consistency when reading video recorded from multiple platform with the video_player. But the video player still need a fix on iOS, which is addressed in this other PR: #1451
Related Issues
flutter/flutter#27201
flutter/flutter#29951
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?