Last night on the way to
anniemal's after rehearsal,
I started thinking about camera-phone video shot from a bumpy, moving
car. I was wondering how easily the bumps and jitters could be
removed from the video by splitting it into individual frames,
re-registering each frame so that a feature of the car -- say a
mark on the dashboard -- was at the same location within each frame,
cropping each frame to the area common to all the tranlated frames,
and reassembling them into a video file.
So, since I was sitting in the passenger seat, I shot a bunch of video clips to play with later, either by trying to figure out how to automatically indentify the reference feature in each frame and feed the location to ImageMagick, or by Googling for existing software already designed to de-shake phone video.
This morning I considered my to-do list and asked, "What was I thinking? When am I going to get around to that?" Whoops.
But I still need to figure out how to split a 3GPP MPEG file into individual frames (or convert it directly to an abnimated GIF) for a completely separate, much smaller project. ImageMagick, at least the versions I've got handy, doesn't seem to like 3GPP video. And a shareware tool advertised as doing what I want insisted that I needed to install a new codec even though the Windows machine I was running it on could display the video already (implying that the right codec was already present on the machine) and even after I tried downloading another codec from the web site mentioned in the error message. (I'm trying to compile another tool now.)
[Update: the tool I said I was trying to compile failed to compile under Cygwin/WinXP but did compile -- and do exactly what I had hoped it would do -- under Mac OS X. I hope it also runs at my house in case I need it again in the future -- my guess is that its working correctly on the first try under Linux is more likely than not. Now to re-read the ImageMagick 'convert' man page...]
(no subject)
(no subject)
I've got mplayer on my Debian box at home, but I think I'll wait until I get home to play with it even if it turna out to have a command-line interface for those tricks, rather than shuffling video files back and forth. (Though I could try it from here if there's a CLI -- there's a [consumer grade] broadband connection at each end ... Hmmmmm....)
(no subject)
mencoder
Google is your friend.
Re: mencoder
Huh. I just telnetted home to the Debian box for a peek, and the man page lists both mplayer and mencoder, but 'which mencoder' doesn't find mencoder on my path. Odd. It does see mplayer in /usr/bin.
Re: mencoder
So now I'm thinking about how to maintain coherency of environment across at least three different operating systems in two geographical locations on machines where I'm a guest as well as ones I own. (I'm not sure whether to count different versions of Windows, or different distros of Linux, as separate operating systems when it comes to counting how many environments I'm trying to coordinate -- and then there's the whole Windows-native versus Cygwin thang.)
Re: mencoder
But I know what you mean. In my house, my spouse and our housemate use Windows (2K and XP), as do I at work. I use Fedora for my main machine and our household fileserver. Our main web/mail/shell server uses FreeBSD, and I also have a couple NetBSD servers (running MRTG/Apache, secondary mail service, and DNS).
Going back to the topic, though... I would think mencoder/mplayer should be able to handle that video (they steal a lot of codecs from Windows, look for separate codec packages like "all-20050412.tar.bz2" or "essential-20061022.tar.bz2"). And, I'm not sure why you might have mplayer but not mencoder. I think they're usually in the same package. Could you have run out of disk space during the install? Did you install from binary package, or source, or repository (aptget or whatever)?
Re: mencoder
Mplayer and mencoder share a single man page (out of curiousity, on your system are they separate binaries or two links to the same file?) I've no idea why mencoder should be missing -- mplayer was either on the box when I got it, or I added it using aptitude later; I'm sure I had to either upgrade or re-install it using aptitude at some point (I've had a couple of apt-mishaps on that box, and occasionally it decides to remove packages that I'd been using regularly).
Re: mencoder
percheron(685)% ls -l `which mplayer ; which mencoder`
-rwxr-xr-x 1 root root 5376264 Dec 11 2005 /usr/bin/mencoder
-rwxr-xr-x 1 root root 6027784 Dec 11 2005 /usr/bin/mplayer
I installed mine via yum, probably from the instructions on this page.
Re: mencoder
(no subject)
If I ever get it to work for my application, it might work for yours as well.
(BTW, don't be confused by the funky pseudo-anon identity -- we've chatted and jammed at cons. Perhaps I'm the only Irish harpist you've ever formed an impromptu blues trio with, though I'm not counting on it.)