Skip to content
Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

Why is a raven like a writing desk?

Thoughts both confusing and enlightening.

RotateAVI

elbeno, 11 September, 200629 July, 2007

Your new digital camera takes great videos, right? And you have a nice 2GB flash/SD/whatever card in there so you can take plenty. But there’s one problem: you have lots of movies in portrait format, where you were holding the camera on its side, because after all that is how the major axis of a person is oriented. And when you import them onto your PC, rotating them is not easy. (I’m talking to Windows users here; personally I use mencoder under Linux, no problem, but Mrs Elbeno won’t let me replace Windows on her laptop, and to the in-laws I might as well be talking Martian).

Enter RotateAVI. (download the beta)

I wrote this program because I had exactly this problem. I know there are ways to rotate movies, sure, but they aren’t simple. Either you use Windows Movie Maker to do one movie at a time (with multiple clicks & drags) or you brave the complexity of VirtualDub.

Features of RotateAVI:

  • Rotate 90, 180, 270 degrees, or mirror X or Y. That’s kind of why I wrote it.
  • Batch processing. Choose multiple input files, an output directory, and off you go. Percentage and remaining files are displayed in the titlebar, and disk access uses a big buffer, so you can go do something else.
  • It’s “lossless”. Not really lossless, but the output format is pretty much exactly what your camera would have (should have?) produced, rather than compressed by some other video codec. MJPEG in, MJPEG out, so you can consider rotated versions as good as the originals. Any meta-information (camera data) in the file is preserved.

Limitations:

  • It only works with MJPEG avis. Which is what most (if not all) digital cameras produce since they are very easy to make from still JPEG files.
  • It’s not super fast. But it’s not that slow. It’s pretty much bound by the speed of the JPEG codec, I think. It processes one of my files, 164MB (1:32 of video) in 1:35. And as I mentioned, you’re not expected to sit there watching a progress bar.
  • Untested other than having run it on my files (off a Canon Powershot A700). This is a beta!

So if anyone who passes by my blog wants to give it a try and report back bugs (or praise!), or suggest other features, I’m all ears.

Programming

Post navigation

Previous post
Next post

Related Posts

“Smart and Gets Things Done”?

29 January, 200828 February, 2008

I work for a big games company as a senior programmer, and I’m a regular on the interview loop. While I’d love to hire candidates who are smart and get things done, the reality of the situation is that more often than not I also have to hire candidates with…

Read More

How to print anything in C++ (part 1)

1 February, 201530 June, 2015

Part 1 Part 2 Part 3 Part 4 Part 5 Postscript I thought I’d have a go at writing some code that could print things. A pretty-printer, if you like. What I want to be able to do is this: // Print x correctly, where x is ANY type. cout

Read More

RIP drm

13 October, 201113 October, 2011

This week, Dennis M. Ritchie, co-creator of C and Unix, died. His death has not made the front page like Steve Jobs’ did. But although the non-tech world had never heard of him, he was more important than Jobs. I can still remember buying my copy of K&R, that slim…

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2026 Why is a raven like a writing desk? | WordPress Theme by SuperbThemes