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

after an hour's fiddling…

29 September, 200529 July, 2007

Got GTK+/gtkmm projects compiling under Win32. Eclipse (CDT) doesn’t really know about pkg-config. So in order to get CDT to drive the command line correctly I had to put the `pkg-config –libs gtkmm-2.4` as part of a -l directive to the linker. It doesn’t work as just a link option…

Read More

Functional Fills with Vecto

25 March, 200825 March, 2008

I’ve been wanting to do exclusive-or functional fill in vecto for a while, so tonight I delved in. I added a pixel function to the graphics state and kept the default as the normal alpha-blending it was already doing. The pixel function signature is a bit clumsy, but it was…

Read More

it's old, but it still works!

22 February, 200729 July, 2007

Having played around with DosBox lately, I decided to do some more digging in my archives and found some stuff from the early 90s, pre-university era. Back then I was programming in QuickBASIC, which was awesome at the time. I found a half a dozen programs: a game of Yahtzee…

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