-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFMPEG autorotates source images without user control #1260
Comments
Supposedly there is an option for recent ffmpeg |
For some reason, I don't see this |
Ok , I see in doc: |
(Feel free to reopen if PR fix fails in your case.) |
…ject#1260) (nerfstudio-project#1261) use -noautorotate option to avoid discrepancies
…ject#1260) (nerfstudio-project#1261) use -noautorotate option to avoid discrepancies
FFMPEG autorotates images with Orientation EXIF tag. It happens automatically without user control during the first usage of FFMPEG.
In many cases, this does not influence data processing (because of the behavior described below). We need to have ways to control this behavior.
This behavior can give more issues and unexpected results, especially for data import (RealityCapture as an example)
Note: FFMPEG autorotates images with the Orientation EXIF tag only the first time. All images that are already saved with FFMPEG have removed part of the EXIF tags including the Orientation tag. So it does not autorotate already saved images.
The current behavior in the case of using source images :
This bug forces to use FFMPEG here with crop_border_pixels=0 in copy_images_list. This is not expected behavior. BUT this is a "lucky" bug that prevents nerfsudio data processing to be broken :) If we just fix it we can get data inconsistency (different image orientation) between the original and downscaled folders. At the current moment all are consistent because we use FFMPEG with the original image in any case.
3. We need to fix the bug above and decide how to control autorotation
4. I made several tests but unfortunately don't find any practical way to switch off autorotation in FFMPEG for images (tested in Windows). Please give me an idea of how to switch autorotation off if anybody have success with this.
5. As a possible option we can control Orientation EXIF tag. We can add a function to remove this tag in copied images. And also function to check Orientation EXIF tag status. PIL can read EXIF or we can use exiftool utility for this as a subprocess.
The text was updated successfully, but these errors were encountered: