Using handbrake-cli to flip or rotate a video
Ocassionally I shoot a video on my phone or camera that is up-side-down, and I need to rotate it so that it plays back properly in XBMC on my TV. You can do this using the popular video encoding tool HandBrake - but it's not an option in the gui. You have to use the command-line.
If you're on linux (I currently am), you'll need to make sure handbrake-cli is installed:
sudo apt-get install handbrake-cli
Then execute the following:
HandBrakeCLI -i /path/to/source.mp4 -o /path/to/destination.mp4 --preset=Normal --rotate --vb 8000
where 8000 is the target bitrate. (I try to aim for a filesize that is similar to my source).
Happy flipping.
Comments
No Comments for this post yet...
Leave a comment
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>