You'll need avconv, which I believe is standard in Ubuntu, as well as the libavcodec-extra-53 package.
rotate-video-90-degrees:
#!/bin/bash if [ "$1" = "" ]; then echo "Syntax: $0 filename(s)" echo "rotates all videos and puts them in a subdirectory named rotated/" exit 1 fi for f in $* do echo echo "*** $f --> rotated/$f ***" avconv -i $f -c:v libx264 -c:a copy -vf "transpose=1" rotated/$f done
No comments:
Post a comment