PHP-FFmpeg-video-streaming
PHP-FFmpeg-video-streaming copied to clipboard
Handle streams that are rotated 90° or 270°
| 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.