The Register® — Biting the hand that feeds IT

Feeds

Getting Started with Avisynth

Turn your PC into a video powerhouse

  • print
  • alert

Customer Success Testimonial: Recovery is Everything

Conventional wisdom tells us that to be truly useful, computers need to be tamed to work the way we work, not the way they want to do things. Following this philosophy, movie-editing software like Apple's Final Cut Pro and Adobe's Premier emulate reels of celluloid that you can wind through to find your edit points. Unfortunately, this emulation eats up computer resources. Dispense with it, and there's a great way you can do movie editing without having to lash out on a quad-core machine with multi-gigabytes of Ram.

The secret is a software application called Avisynth. I mainly use it for cleaning up films recorded off the telly. But Avisynth is perfect for taking control of your own home-video footage, perhaps turning it into DVDs for the family time-capsule. Or whatever.

Of course, professional editing software offers non-linear editing (NLE) - the ability to access frames at random and do virtual cuts without modifying the original clip - and a feast of instantly deliverable transitions - dissolves, wipes, and so forth. Not stuff you'd expect to do on an 800MHz single-core Celeron system. But guess what? With Avisynth, yes you can.

Because it's not NLE and transitions that eat up computer resources, it's that pretty interface emulating a pre-war Moviola reel-to-reel editor. Take that away, and what you have got is something that looks like this:

video = MPEG2Source("Clip1.d2v", cpu=0)
audio = NicMPG123Source("Clip1 DELAY -746ms.mp2")
AudioDub(video, audio).DelayAudio(-0.746)
Trim(29, 162052)
Dissolve(Trim(0, 28648) , Trim(35426, 162023), 5)
Trim(0, 61566) ++ Trim(68844, 155241)
Dissolve(Trim(0, 98264) , Trim(105041, 147964), 50)
Trim(0, 141032)

Yes, it's a script. The bad news is the only thing in the world that can understand it is Avisynth. But now for the good news.

1. Avisynth is free software.

2. Avisynth runs on 98 per cent of the the world's computers. That's the upside spin - "runs only on Windows" would be the pessimist's version.

3. That eight-line script is all you need to (in this case) turn a TV recording of a movie, with junk at the beginning and end, and three ad breaks in between, into a continuous presentation that wouldn't disgrace a small cinema. By "continuous presentation" I don't just mean ad removal, I mean a proper rebuild of the movie that totally conceals the fact that ads were ever there in the first place.

There's more good news. With a few extra lines of script we can seamlessly eliminate the tendency some TV channels have of ruining the finale by sliding in visuals announcing what's coming next and/or talking over the closing music. We can even blot out - and in many cases virtually make invisible - those eye-grabbing logos that channels like More 4 and ITV 2 stamp on every frame of the movie footage they transmit.

Customer Success Testimonial: Recovery is Everything

Numbers accident

"Avisynth runs on 98 per cent of the the world's computers. That's the upside spin - "runs only on Windows" would be the pessimist's version"

98 percent of computers in the world do not run Windows, I assure you. 98 percent of 'PCs' in the world *might* but I expect Mac users would argue that number down a fair way, never mind the 'nix users...

1
0

Works for me!

I just love articles like this and it did get me started with scripting for Avisynth. I had avisynt installed because I had used it to load a real-player video into VirtualDub, but never got around to using the full potential of it. Messed arround with avisynth for a week now and just love the simplicity of it: I use as simple "directshowsource" script to load my HD mkv- or mp4- files (anything goes really) into vDub and find the frame-numbers for my cuts, use the Trim (xxxxx, yyyyy) ++ in a new script and which can be loaded directly into my Xilisoft converter. Makes it really easy and very flexible to get from any video source to something that facebook will show in "HD".

I never got DGIndex to work but i can just cut and paste the numbers for now.

0
0

Right tool for the job

i agree with other posters. Avisynth is great and has it's place but by mentioning Premier and Final Cut you are drawing comparisons that are absurd. Granted given a million years you could achieve the same effect with Avisynth but if you value your itme at more than 2 quid an hour buying a quad-core and a proper NLE is so much a better option

0
0

More from The Register

Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Nuke plants to rely on PDP-11 code UNTIL 2050!
Programmers and their walking sticks converge in Canada
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry