Last active
March 31, 2016 23:04
Star
You must be signed in to star a gist
Uses ffmpeg to rotate a collection of videos by 180 degrees
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# by Nate Rudolph | |
# Uses ffmpeg to rotate a collection of videos (mov) by 180 degrees | |
# Loop through all movs in current directory | |
for vid in *.mov ; do | |
# Create variable for new filename with new extension | |
newfilename=${vid%.*}_r.mp4 | |
# Use original video as input, rotate by PI (180 degrees), save as new file | |
ffmpeg -i $vid -vf "rotate=PI:bilinear=0" $newfilename | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment