Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16th December 2006, 18:11   #1  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
avs2qxvid.bat [AVS to Quality XviD]

You wrote an AVS. You wanna encode it to a good quality XviD file. But you don't like GUI. This batch script is for you.

Download the full package (version 2.5h) here:
http://www.sendspace.com/file/ni08oz
(7zip compressed twice with password XviD_presets)

The main purpose of my batch script is to implement Teegedeck's XviD presets using squid_80's version of xvid_encraw. The main features are:
  1. Automatic preset selection through 3% compressibility test
  2. Audio encoding using LAME, OggEnc2 and BePipe (which requires MS .NET framework)
  3. Single audio track muxing (mp3, ogg and ac3) with audio time shift support (in DGIndex naming style)
  4. MKV chapter support via zone definitions
  5. Progressive & interlaced encoding
  6. Anamorphic encoding (PAL_16:9, NTSC_4:3, etc.)
  7. Target size or bitrate by KB, MB, GB, Kbps and bppx (audio size included for KB, MB & GB, yet no overhead calculation)
  8. Batch AVS encoding, with independent settings for each AVS
  9. Zone weights ... useful for credits (experimental, potential interference with presets)
  10. (Newer) standalone support (also experimental; customized from Teegedeck's Fast & HQ presets ~~ custom matrix warning), plus plugh's alt 2-pass mode (read bin\xvid_presets_25h.csv)
  11. Kopernikus's HVS mods & custom params (read bin\xvid_presets_25h.csv)
  12. Free creation of your own presets (read bin\xvid_presets_25h.csv)
  13. Free choice of custom matrix (read bin\xvid_presets_25h.csv)

This is how you use this batch script: Say, you have abcdef.avs ready in certain directory. Now make a plain text file abcdef.enc.txt in the same directory with one single line reading "TGHQ-CT 1.45GB". NTSC 16:9 footage? Make it "TGHQ-CT 1.45GB NTSC_16:9" Interlaced encoding? Append "TFF" or "BFF" at the end of the line. Audio track? Put it inside the AVS or make a separate mp3 or ogg in the same directory. OGM chapters? Create another plain text files abcdef.zones.txt listing the frame numbers (The default zone weight is 1.0 and you can put something like 0.1 next to the frame number for credit zones). When all is ready, drop abcdef.avs onto avs2qxvid.bat and then wait for your CPU load to drop to zero. ^_^ You can at most drop 9 AVS files onto the batch at a time.

The following Teegedeck presets are supported: TGHQ-CT, TGFAST-CT, TGEDIT-00 and TGANIME-00. I have hacked a MTK-CT for standalones. If you know your source's compressibility, you can specify the levels directly (-30, -45, -58 or -90), e.g. TGHQ-58, MTK-45, etc. Note that if the target size or bitrate is too high or too low, it may not be respected, especially if you skip the compressibility test and levels directly.

To activate Kopernikus's HVS mods in your own presets, name them with prefix "HVS" and then specify the HVS params in the last column of bin\xvid_presets.csv, substituting the required double-quotes with single quotes.

Giving your own presets a suffix of "MTK" will enforce some standalone friendly parameters such as VBV and -alt2pass. Other options like QPel and b-frames are still at your own discretion. BTW, If you use the MTK presets, the batch script will always split your movies into AVI file(s) of 2000MB@ unless an OGG audio file or a zone list file is found in the same directory (in such cases a MKV file will be muxed.)

Last edited by henryho_hk; 2nd August 2011 at 17:10.
henryho_hk is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.