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 |