Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

Drazen

AVS2AVI GUIDE

Avs2avi http://daveel.leffe.dnsalias.com is the fastest way to compress to Divx, XviD etc. from the Avisynth scripts.

It's a simple command line program, but GUI exist at http://jonny.leffe.dnsalias.com.

I'll use avs2avi from command line (.bat or .cmd in XP/2000). First, put avs2avi.exe (ver.1.29)

and divxauto.exe (for DivX 3.11) in your Windows directory (for example in C:\Windows). Generate Avisynth script with Gordian Knot, and use his bitrate calculator for XviD or

DivX 4-5.0.5.

Example:

In my testing WMV9Vfw vs. DivX 5 Pro I have used Avisynth 2.51 script:

LoadPlugin("C:\PROGRA~1\GordKnot\MPEGDecoder.dll")

LoadPlugin("C:\PROGRA~1\GordKnot\BicublinResize.dll")

MPEGSource("F:\video_ts\matrix.d2v")

  1. CROPPING
crop(0,70,720,436)
  1. RESIZING
BicublinResize?(704,304)
  1. Trim(0,100)

Let's make short two passes, just to generate and save codec settings for

two pass Xvid or Divx4-5.0.5 two pass encoding. Uncomment Trim line in the

avisynth script (remove # sign).

Run AVS2AVI.exe in .bat file or from Start->Run.

avs2avi F:\video_ts\movie.avs f:\movie.avi -p 1 -q -o a -s F:\codec1pass.param

"Video Compression" window will pop-up. Choose the codec settings for 1-st pass.

avs2avi will shortly run (100 frames), and again:

avs2avi F:\video_ts\movie.avs f:\movie.avi -p 1 -q -o a -s F:\codec2pass.param

"Video Compression" window will pop-up once more. Choose the codec settings for 2-nd pass.

Remove Trim line from script, or put there a main movie frame count.

Run again for the final encoding:

avs2avi F:\video_ts\movie.avs f:\movie.avi -p 1 -q -o a -l F:\codec1pass.param

avs2avi F:\video_ts\movie.avs f:\movie.avi -p 1 -q -o a -l F:\codec2pass.param

This time, a switch -l tell avs2avi to load the previously saved codec settings.

(Switches are: -p for priority: 1-lower, 2-normal, 3-high; -q quiet mode; -o a output

to avi file; -s save codec settings; -l load codec settings.)

WMV9 vfW scored 5.25 fps, and a total meltdown in the "Matrix" lobby chapter.

DivX Pro 5.0.5 (bi-, GMC, qpel) scored 12.4 fps, and great picture.

Bitrate was 560 000 bps.

Just for fun I have tried SBC, and finally, FM-LM 3.11 for MakefilmTNG?.

start divxauto F 1 100 6000 "Video Compression"

avs2avi F:\video_ts\movie.avs f:\FM.avi -p 2 -o a

start divxauto L 1 85 2000 "Video Compression"

avs2avi F:\video_ts\movie.avs f:\LM.avi -p 2 -o a

I get 28.7 fps, and in the first moment I was thinking that something don't work!

You get two avi files, LM.avi and FM.avi. Use MakefilmTNG?.exe and load in it a

following FM_LM.ini (put it in the MakefilmTNG? folder):

[MakeFilmTNG?]

FastMotionAvi?=F:\FM.avi

LowMotionAvi?=F:\LM.avi

FinalAvi?=F:\FM_LM.avi

EndingAvi?=0

StopAfter?=0

Audio=0

FinalSize?=550

HighBitrateLimit?=150

SceneSwitchingSmoother?=1

You'll get merged DivX 3.11 FM_LM.avi. Adjust the FinalSize? (for 2-CD's) or/and HighBitrateLimit?.

LM_FM.ini works "as is" in 90% cases, for movies to 2.10 h and 1 CD.

People: grab that avs2avi 1.29, that's the greatest program now. No YV12 mediator--straight

to compressor. I have 900 MHz Celeron, but someone with 2.8 GHz could get 60 fps+ for sure.

June 12. 2003.

SourceForge Logo

 


Edit this document | View document history
Document last modified Thu, 12 Jun 2003 15:24:46