Skip to content
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 v2.7 auto rotation feature breaks scaling #177

Open
sujayjaju opened this issue Sep 2, 2015 · 6 comments
Open

FFMpeg v2.7 auto rotation feature breaks scaling #177

sujayjaju opened this issue Sep 2, 2015 · 6 comments
Labels

Comments

@sujayjaju
Copy link
Contributor

Starting v2.7 FFmpeg automatically rotates videos based on metadata
So if a rotated video is converted using a resize filter, the aspect ratio gets inverted.

Please let me know if more information is required on this.

@QuingKhaos
Copy link
Member

@sujayjaju Docs in FFmpeg documenting this automatic rotate? Has FFmpeg a flag/option to disable it?

@sujayjaju
Copy link
Contributor Author

Under change log: https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog it says:
version 2.7:
...

  • Automatically rotate videos based on metadata in ffmpeg
    ...

Thats the only documentation I found.

There is a "-noautorotate" option to disable it.

@QuingKhaos
Copy link
Member

There is a "-noautorotate" option to disable it.
Thanks, this should be automatically incorporated, depending if the installed ffmpeg supports it to keep BC and maybe a autorotate filter or similar if autorotate is really needed..

@tengotengo
Copy link

was it ever fixed?

@jens1o
Copy link
Member

jens1o commented Mar 22, 2019

It doesn't seem so. @tengotengo Could you please send me any file you can reproduce with(preferably Public Domain)?

@philipp-doblhofer
Copy link
Contributor

It is possible to disable the autorotation with this library already without changes.
As mentioned in the README, it is possible, to add custom parameters.
In this case, the following snippet will disable the autorotation:

$format = new FFMpeg\Format\Video\X264();
$format->setInitialParameters(array('-noautorotate'));
$video->save($format, 'video.avi');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants