Handling video in Linux

video exif tool
sudo apt-get install libimage-exiftool-perl

display video's rotation exif
exiftool -Rotation 20151024_132350.mp4

rotate the exif metadata only
ffmpeg -i 20151024_132350.mp4 -metadata:s:v rotate="0" -vf "hflip,vflip" -c:v libx264 -crf 23 -acodec copy 20151024_132350b.mp4

resize to 720p
ffmpeg -i IMG_0001.MOV -vf scale=-1:720 IMG_0001-720p.MOV

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.