PHP-FFmpeg-video-streaming icon indicating copy to clipboard operation
PHP-FFmpeg-video-streaming copied to clipboard

Handle streams that are rotated 90° or 270°

Open crishoj opened this issue 2 years ago • 0 comments

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #83
License MIT

What's in this PR?

Change getDimensions() in AutoReps to check stream rotation and return effective dimensions, by flipping height/width when rotation is 90° or 270°.

Which problem does the PR fix?

Portrait videos from e.g. iPhones are mistakenly assumed to have landscape orientation, because displaymatrix: rotation of -90.00 degrees is not taken into account in AutoReps.

crishoj avatar Sep 29 '23 13:09 crishoj