Issue
I have to check the video is landscape or portrait before rotate using ffmpge . please help me.
Solution
using ffmpeg we cant check the video is taken landscape mode or portrite mode in iphone.
we need to install mediainfo or exiftool
if we install exiftool use the below commands
exec('exiftool path/to/filename/ | grep Rotation');
from this we can get the rotation of the videos
if rotation is 90° the videos taken in portraite mode in iphone
if rotation is 0° the videos taken in landscape mode in iphone
Answered By - skythanigai Answer Checked By - Mildred Charles (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.