PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, May 15, 2022

[FIXED] how to check if video is landscape or portrait using ffmpeg php?

 May 15, 2022     ffmpeg, php, ubuntu     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing