Drag and Drop Apple Script to Convert Video
My parents were kind enough to get us a JVC Everio digital video camera after our son was born. The camera has incredible picture quality, loads of features and fits in the palm of your hand. We shot loads of video of his first few weeks and soon enough it came time to make our first DVD to send to friends and relatives.
It turns out the Everio cameras create .mod files, which are similar to MPG files, but.. um.. aren’t. I’m guessing this was a way to avoid paying royalties for MPG compression, but this does leave a little bit of leg work for the user. (And *no*, you can’t just rename them to .mpg, I have no idea why most websites suggest that as they are not compatable.)
After some quick digging, I found ffmpegx for the mac which provides a nice GUI to convert various video types. This is all well and good, but we had become quite the shutterbugs and I was not about to use a GUI to process a hundred individual clips (this was especially difficult seeing that your settings need to be re-done each time).
Luckily, ffmpegx also ships with the command line interface, ffmpeg2. Now we’re getting somewhere. I start playing around with a recursive AppleScript script that would process nested folders of .mod video files and converting them to .dv files (which are the default/preferred format for iMovie HD).
The results are as follows. This script is licensed under the do-what-ever-you-want-with-it license. Enjoy.
Comments
3 Responses to “Drag and Drop Apple Script to Convert Video”
Leave a Reply

Uhm… I think I know what an applet is, but I’m obviously doing something wrong because I have no idea how to drop a file onto one. I copied and pasted that script into AppleScripts, changing the location of where ffmpegX is (Applications/ffmpegx).
I clicked “Run” on the script, got that little pop-up box, clicked OK, it closed, and I found myself sitting here looking like a dumbass not knowing what to do next. Am I missing something?
Maybe worth mentioning - I didn’t see anything mentioning ffmpeg2 when I downloaded it, and I don’t know what a command line is.
Is there something simple I’m just not doing?
não consigo converter nem reproduzir nenhum video
no wmv, e ele me pede os codecs
¿Qué? Desafortunadamente no hablo español.