Of movie making and control

Of movie making and control


I discovered Virtualdub back in the days when DivX was a ripped-off Microsoft experimental beta codec. Since then, I have used it to do some small captures, but also to recover some bad quality films that could gain major improvement through a carefully weighted application of filters.

Free software isn’t found on *NIX systems alone

The useful free software you can’t do without

Developed pretty much single-handedly by Avery Lee, Virtualdub is a linear video capture and editing tool which is aimed at one thing: getting one video stream, selecting the images you want to keep in it, and applying filters to the rest of it.

It is not a Premiere killer. Rather, it is a video repair kit: some filters like the blur, resize, rotation or deinterlace ones allow such a fine tuning of a video that I can personally attest to having been able to recycle a badly captured cartoon from a low quality VHS tape to an almost DVD quality—and almost real time.

Now, Virtualdub runs on Windows only—for one simple reason: it has tight ties with Windows’ audio capture and codec system—and, as such, all those wonderful filters are pretty much lost to us when we boot under our system of choice, whether it be GNU/Linux, FreeBSD or OpenSolaris...

I should mention, though, that I managed to actually run Virtualdub under Wine at one time, and even to make it use some codecs compiled for win32 that I had installed. However, due to it falling back to GDI rendering (overlays led to black screens and DirectDraw crashed), I had to be extremely patient to accomplish anything at all with it—and the source had to use installable codecs (those had to run under Wine too) or be MPEG1 (since Vdub has an integrated MPEG1 decoder built-in due to Microsoft’s not being accessible through the ACM architecture).

Of a strange state of things

Virtualdub is covered under the GPL; as a matter of fact, several forks have appeared, to enable people to do things with Virtualdub that Avery didn’t intend to integrate, or were a bit too close to ripping for comfort. One such port has become Virtualdubmod, which allows several sound streams and subtitles to be integrated into a project, and which provides Ogg and Matroska export (on top of Audio Video Interleave—AVI).

I may not have looked right, but I have been unable to find a *NIX port or at least a compressor able to make use of all those filters with all their settings in the *NIX world.

I do XVID backups of my DVDs. Not only because I feel safer watching copies and keeping the original protected, but also because I have a DVD-less laptop and I sometimes like to watch a movie when I’m on the move.

And here Virtualdub is sweet: coupled with Avisynth, it allows me to get the video and compress it at very high frame rates, with its colours recalibrated, the image resized and deinterlaced when needed, all that with a single-pass quality-based compression.

GNU/Linux tools I’ve found may have required a bit less hassle to set up (there are nice GUIs to hide mencoder settings for example), but as far as I could find none allowed me to stream the video, deinterlace, crop and resize it on the fly before sending it to the compressor while setting it up to use quality based, quarter pixel, Trellis sampled etc. encoding.

Of course, I could learn all the commands that Mencoder provides; I could play with pipes too so as to do resize and cropping; I could hand-edit Xvid’s default settings.

You know what? If I could do it through ’Virtualdub for Linux’ GUI, I’d enjoy it a lot more. However Avery doesn’t have the time, the POSIX experience nor the motivation to do the port himself—he’s encouraging any coder willing to do the port to ask him questions, though.

Conclusion

Sometimes I wonder if FOSS developers don’t live a bit in a bubble; I mean, we have here a piece of software that has seen long years in development; which is, accidentally, coded in a FOSS developer’s favourite language (assembly and C); its source is free (it’s covered by the GPL), and its developer actually answers most emails you send his way (comments posted on his blog usually get answered, too).

How come no project has ever tried to port Virtualdub, its filters and lean code to POSIX systems? While I acknowledge Mplayer’s developers’ hard work, suffice it to say that they happen to be very GUI unfriendly... And while I’m not against the use of the command line interface, video treatment works better with a frame buffer, a timeline and a live output.

And those just happen to have been in existence for almost ten years.

See: Virtualdub website

Category: 

Comments

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

An interesting read - but I can't help wondering if you havn't used avidemux2? - it does have the ability to use filters and output as Mpeg4. Ok, it doesn't have all the filters of virtualdub, but its the best editor / filter package I've seen on *nix...

Carl.

Mitch Meyran's picture

No, I haven't - but I'll give it a try, thanks.

I wonder how hard it'd be to make avidemux2 use Vdub/Avisynth filters...?
---
A computer is like air conditioning: it becomes useless when you open windows.

Snappy's picture
Submitted by Snappy on

I have to agree with you on FOSS developers. They need to embrace the others and not repel them just because they are not developing on *nix platform.

There are many shareware/freeware apps that are really great and started off life in the Wintel platform. While I develop mostly for Windows and DOS (from C/C++, BASIC, VB to C#, .NET stuffs etc), I also write apps on Palm, PPC, HPC platforms etc. I used to write on *nix platform but that was years back, when X11 libraries was all I had.

I myself wrote couple of freewares and am currently straddling between Windows and Xubuntu /w XGL. FOSS developers would do much more for the FOSS cause if they were to embrace FOSS developers on the Wintel platform.

Author information

Mitch Meyran's picture

Biography

Have you ever fixed a computer with a hammer, glue and a soldering iron? Why not? It's fun!

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!