Convert digital camera mov files
Convert those .mov files that your digital camera makes Print E-mail
Written by machiner   
Wednesday, 14 February 2007 02:42
I have a digital camera that creates .mov files for videos. It's terrific but I cannot watch the videos (.MOV) that I capture with the camera on our living-room DVD player. However, like many recent DVD players, it will play .avi files. So I use this handy command that I ripped off in its entirety, some time ago. It will make separate .mp3 and avi files for your enjoyment:

$ for fl in YOURMOVFILE.MOV
 do
   mencoder ${fl} -o ${fl/mov/avi} -oac mp3lame -ovc lavc
   mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile ${fl/mov/mp3} ${fl/mov/avi}
   #rm ${fl/mov/avi}
 done

Output

Of course, you need mplayer and mencoder installed.

ffmpeg is perfectly up to this task as well, although I think mencoder is a little faster. The syntax that I have been using (specifying a 60FPS frame rate) is the following:

$ ffmpeg -i file-name.mov -g 60 -vcodec msmpeg4v2 -acodec pcm_u8 file-name.avi

This works a charm and really shrinks the file size. My original 17 second clip in its original .mov file format weighed in at 8.5MB. Following conversion the avi clip weighed in at 855.5KB.

Of course, the conversion has a degenerative affect on playback, towit, it might look pretty bad stacked up against the original, but that's what you get. If you know a better way, or better ffmpeg conversion syntax, then hook us all up.

ADDENDUM - 12 may 2007: Well, someone recently pointed me to this video converter, WinFF. I tried it out, love it and and am happy to report that it gets the debiantutorials.org seal-of-approval for wickedness. Right on.

--machiner 14 Feb 2007

Last Updated on Monday, 23 June 2008 03:58