Skip to content

Instantly share code, notes, and snippets.

@zcot
Last active May 26, 2018 16:16
Show Gist options
  • Save zcot/11e71c3cf3d6cbee2e38e8beccb75226 to your computer and use it in GitHub Desktop.
Save zcot/11e71c3cf3d6cbee2e38e8beccb75226 to your computer and use it in GitHub Desktop.
Create rotated version of a video using vlc...
#!/bin/bash
#1. save this entire file to current directory as a file named rotatevid
#2. then make it executable from current directory with command: chmod +x rotatevid
#3. then run a conversion in current directory with command like this: ./rotatevid yourfilename.mp4
#4. the converted file will be called OutputFile.mp4 in current directory
#
# Options for --transform-type below are: 90,180,270,hflip,vflip
vlc --no-repeat --no-loop -I dummy $1 --transform-type=270 --sout="#transcode{vfilter=transform}:std{access=file,mux=mp4,dst=OutputFile.mp4}" vlc://quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment