LVPE: Processing a Bunch of Photos for Cinelerra
(this post is part of the Linux Video Production Experience series, which chronicles my experiences with creating a high-quality home movie almost entirely in open source software.)
I often augment my video productions with still imagery, since I always manage to take a lot of neat shots on both cameras while I'm on vacation. When I did my editing in iMovie, it was trivial to bring in photos from iPhoto right into my productions. I still use iPhoto to organize my pictures, since I primarily bring my Apple laptop on trips with me, but now that I edit in Cinelerra on my Linux desktop machine, I need to take a slightly different approach to getting images into my videos.
First of all, your average digital photo nowadays is going to be some thousands of pixels wide and tall. My camera can easily shoot 1600x1200 pixel images, and I know it can go a little higher. Importing this huge image, unchanged, into Cinelerra will slow down the rendering of this image, both in previews and in the final render, because Cinelerra now has a lot of pixel data it needs to scale/throw away. Now, if you have one or two photos, you can use The GIMP to scale a picture down, probably to no more than 1000px on the image's longest side, and then import that into Cinelerra. However, I typically use about one or two photos overall for every minute of footage in the movie. This latest movie used a little less -- only about 10 photos -- but I still didn't like the idea of scaling 10 photos, one at a time, in The GIMP, especially since I have such easy access to ImageMagick. :)
Make sure a fairly new version of ImageMagick is installed. Take all of your photos, touch them up individually as necessary, and stick them in a folder, unresized, called "Images". Create another folder along side, not inside, "Images" called "ResizedImages". Now, open a bash shell and cd to the directory that contains these two folders and run this script:
for i in Images/*; do filename=$(expr "$i" : '^.*/(.*)$') convert "$i" -filter Lanczos -resize "1000x1000>" -quality 80 "ResizedImages/$filename" done
This will scale each image down to be no more than 1000px on its longest side, keeping the original file format (most likely JPEG), and with a quality setting of 80. It will scale the images using the Lanczos filter, which is pretty good at keeping sharp areas sharp when shrinking images. This should give you enough pixel data to make high-quality Camera & Projector moves in Cinelerra, while keeping down the rendering time. If the photo doesn't look good after the scaling process, use The GIMP to scale it and use the Bicubic filter when scaling and see if that does a nicer job.
Before importing any images into Cinelerra, hop over to the Settings -> Preferences window and, under Recording -> Images, enable the checkbox next to "Import images with a duration of" and set the duration to something reasonable, like 5 seconds. Otherwise, your images will be imported with a length of one frame. It's true!
One additional problem: if you're editing a movie in 16:9 aspect ratio, and you import an image that's 4:3, it'll be stretched. You can fix that using Cinelerra's Scale filter on that track (I find it's best to keep my photos to one track only, so I can easily apply the Scale filter to that track and so I can more easily manage the Camera & Projector). Set the X Scale to 0.8880 and the Y Scale to 1 and your pictures will look just fine. This is not an issue if your video is 4:3. I'm not much of a fan of using ImageMagick to adjust the aspect ratio of the images. The Scale filter works just fine for me.
See what else is here...
- Jasmine and Vim, a happy pairing
- Fast JavaScript and CoffeeScript Unit Testing with jasmine-headless-webkit
- Actually Throwing One Away
- Slice and dice Cucumber run-times
- Site migrated and future plans
- Bash magic: convert a high-res PNG to a small PDF with convert and sam2p
- Bash magic: Get the chronological Originals contents from an iPhoto library that will fit on a CD
- What's the deal with "johncoswell"?
- Flex 3: Better SWF Embedding
- Ustreaming your desktop on Ubuntu Intrepid Ibex
- Mom's Delicious Pizza Dough Recipe
- LVPE: Avidemux and JPEG Photo AVI files not working?
- Guest strip!
- Dawn's Dictionary Drama is back!
- Video: The DC Conspiracy at Beyond Comics for Free Comic Book Day
- Joining the cartoon party: Myself as a Teen
- Quick Drying Paint: Profiling Inkscape using Valgrind
- LVPE: Encoding High Bitrate 24p Footage for DVD
- LVPE: Rendering and Exporting Video & Audio from Cinelerra
- LVPE: Processing a Bunch of Photos for Cinelerra
- LVPE: Color Correction in Cinelerra
- LVPE: Capturing & Deinterlacing DV Footage
- A Linux Video Production Experience
- Tons of .msp files in C:\Windows\Installer?
- A Moment of Inkscape Screenshots!
- The Amelia Rules! Charity Auction this Veterans Day
- PayPal and Visa: One card per account, ever?
- A Moment of Clarity Volume 2 Chapter 1 Reviewed!
- The Inkscape Perfect-Bound Cover Template Generator
- Freedom Dance wins in the 2007 Peer Awards!
- Untwisting the Spine of Perfect-Bound Books
- Small Press Expo 2007
- AMoC in Prismacolors and Brush Pens!
- Xinerama/TwinView + Single Screen + GTK = FAIL
- Baltimore Comic-Con
- ImageMagick: A simple, and kind of overkill, way to resize and pad an image
- Comics and Time Management
- Practical Inkscape for Comic Artists: The Right-Handed Illustration Keyboard Layout
- Red Hat High 2007 Update
- Cinelerra DV Rendering Problems? Try JPEG Photo
- Red Hat High 2007
- Freedom Dance!!
- One Reason Why Drawing Comics in Vector is Better Than in Bitmap
- Ogg Theora/Vorbis Conversion Information
- Linux iPod Video Conversion Information
- Libre Graphics Meeting 2007 - Creating Comics in Inkscape Presentation Video
- More Cinelerra and Mencoder fun!
- Libre Graphics Meeting 2007 - The Coswell Productions Report
- Libre Graphics Meeting 2007 - Wallpapers and Shirts!
- Indy Comic Review reviews A Moment of Clarity Volume 1
- Libre Graphics Meeting 2007
- Comics in Inkscape 0.45 with John Bintz
- Cinelerra Hints for Rendering
- Automating WinTV-PVR/ivtv captures in Ubuntu Edgy
- Inkscape 0.45 About Screen Content Entry
- Staircase Visualization for Volume 2
- Digital Minicomic Production - Using Free Software to Do Inexpensive Digital Paste-Up
- Blue Dot Television Commercial - A New Face
- Marylanders in Snow (Animation)
- Slippie Slide
- Blue Dot Television Commercial - Warm Up with Blue Dot
- TP Monitor
- Virus