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

Auto Roration #635

Open
tengotengo opened this issue Mar 17, 2019 · 2 comments
Open

Auto Roration #635

tengotengo opened this issue Mar 17, 2019 · 2 comments

Comments

@tengotengo
Copy link

tengotengo commented Mar 17, 2019

Q A
Bug? yes
New Feature? no
Version Used ffprobe version 4.1.1-static
FFmpeg Version ffmpeg version 4.1.1-static
OS Ubuntu 16.04 LTS

I run:

$video = $ffmpeg->open($file);
$video
    ->filters()
    ->resize(new FFMpeg\Coordinate\Dimension(640, 480), FFMpeg\Filters\Video\ResizeFilter::RESIZEMODE_INSET)
    ->synchronize();

$video->save(new \FFMpeg\Format\Video\X264('aac'), 'j3.mp4');

when $file is a path to video shot on Android - everything converts like it should.
I read tags of that file and see: ["handler_name"]=>
string(11) "VideoHandle"
["rotate"]=>
string(2) "90"

now when $file is a video shot on iOS device, it rotates incorrectly automatically.
It seems like it rotates it first and then resizes, breaking the aspect ratio.
tags on that MOV video:
["handler_name"]=>
string(16) "Core Media Video"
["rotate"]=>
string(2) "90"

Both videos were shot in the same landscape orientation, while phones were rotated 90°.

Another opened issue #177

@codecybe
Copy link

hard to know I'm not using ubuntu

@jonasva
Copy link

jonasva commented Sep 23, 2020

Having the same problem with iOS videos.
#564 about this as well

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

No branches or pull requests

3 participants