QuEnc Settings Info
-------------------

Ok, I made QuEnc simple to begin with to stop confusion, 
and hopefully that is still the case.

But here is a list of the options and what they do:

Command Line options
--------------------
### means a number value, *** means a text value
-i filename.avs = input filename
-o filename.*** = output filename
-b #### = bitrate in kbps, values under 32 set constant quant
-maxbitrate #### = bitrate in kbps (0 = auto)
-dc # = DC Precision(either 8,9,10,11)
-priority # = program priority(either 0 (realtime) to 5 (idle))
-1 = 1 Pass Encoding
-2 = 2 Pass Encoding
-notoall = Same as using all -no* parameters at once
-hq = Use High Quality
-nohq = Turn off High Quality
-vbr = Use VBR
-novbr = Turn off VBR
-scene = Use Scene Detection
-noscene = Turn off Scene Detection
-trell = Use Trellis Quant
-notrell = Turns off Trellis Quant
-cgop = Use Closed Gop
-nocgop = Turn off Closed Gop
-interlaced = Use Interlaced Encoding Settings
-nointerlaced = Turn off Interlaced Encoding Settings
-extreme = Use "Extreme" Settings
-noextreme = Turn off "Extreme" Settings
-gopsize ## = Gop Size
-maxbframes # = Maximum B-Frames
-qlb = Enable QLB matrix
-noqlb = Disable QLB matrix
-cmatrix *** = <XviD CustomMatrixFile> or QLB
-nocmatrix = Turns off the Custom Matrix
-aspectratio #:# = Aspect Ratio( 16:9, 4:3, 1:1, 2:21 )
-mpeg2mux *** = MPEG-2 Mux Profile( dvd, svcd, novideo, noaudio ,separate)
-mpeg1mux *** = MPEG-1 Mux Profile( vcd, system, novideo, noaudio ,separate)
-mpeg4mux *** = MPEG-4 Mux Profile( mp4, novideo, noaudio )
-audiocodec *** = Audio Codec( mp2, ac3, mp3, aac )
-audiobitrate ### = Audio Bitrate( 64, 96, 128, 160, 192, 256, 384, 448 )
-tff = Sets the MPEG-2 as Top Field First
-bff = Sets the MPEG-2 as Bottom Field First
-silent = Runs QuEnc in a minimized state
-auto = Automatically start encoding
-close = Automatically close once encoding is complete
-shutdown = Shutdown the computer once encoding is complete


GUI settings
------------

MPEG-1 or MPEG-2 or MPEG-4
--------------------------
This is pretty self explanatory.

Bitrate
-------
This is the bitrate used to encode. Bitrate is in kilobits per second. Use a bitrate calc
to discover the correct bitrate for your needs. Or you can work it out yourself.

Say you have a 5 minute clip that you want to encode to 50mb of size.
You do:

(Here we multiply minutes by 60 to get seconds, and 50mb by 1024*1024 to get bytes)

(5*60) * bitrate = (50*1024*1024)	
bitrate = (50*1024*1024)/(5*60)
bitrate = 174762.67 bytes per second
bitrate(kbps) = (174762.67*8)/1000

bitrate to encode 5 minutes to 50mb = 1398kbps (use integer values)

Use VBR
-------
This selects whether the bitrate should be allowed to fluctuate or to be a constant bitrate.
VBR will allow for better quality, but turning it off will allow CBR which is useful for
streaming...(where you don't want to be the content to be bursty)

High Quality
------------
This slows down the encoder but gives higher quality. It is the same as using -mbd=2 in ffmpeg.
If you only want high speed encoding, turn this off. But otherwise it is recommeneded to leave
it on.

Use Trellis Quant
-----------------
This greatly slows down the encoder but can give higher quality. Is only recommended when the
quality of the encode is the most important thing.

2Pass Encoding
--------------
This encodes the video twice. The two passes can improve quality as the encoder can 
distribute the bitrate to the parts that need it. But of course takes twice as long to encode.

*ADVANCED OPTIONS

Use Custom Matrix
-----------------------
This uses a custom intra and inter matrix.

"Extreme & Slow" Settings
-------------------------
This is experimental, not recommended, but turns on many settings that can increase quality
but slow down the encoding alot.

GOP Size
--------
MPEG Streams are made of GOPs (Group of Pictures). There is only one I-Frame in a group of 
pictures. There this states how many frames before the next I-Frame is inserted. 12 isn't 
an uncommon and is a safe value. Although another rule used is use 15 for PAL, and 18 for NTSC.

Max B-Frames
------------
This sets how many continuous B-Frames will be used. 2 is a very common value. Going above
2 is not really recommended.

Interlaced Encoding
-------------------
If feeding QuEnc with an interlaced source, it is best to turn this option on. This makes QuEnc
use Interlaced DCT and Interlaced Motion Estimation. This should produce a better result on
interlaced material but also will be slower.

Top Field First
---------------
this sets field order to TFF when ticked. field order is BFF when not ticked.

DC Precision
------------
Ok, this is quite a technical thing. It's not uncommon for DVDs to be encoded with a DC 
Precison of 10. So I would probably use that value for DVD encodes. But the difference will be
minimal. If doing low bitrate encodes, a DC of 8 should probably be used.

Forced Closed GOP
-----------------
This will cause the GOPs to be closed, so that frames in a GOP will not be referenced outside
that GOP. Only use if you know what you are doing. This will also automatically turn Scene Detection
off.

Scene Detection
---------------
If scene detection is on, then scene changes are detected and I-Frames are inserted. This can
provide better use of GOPs. However, it can produce strange GOP sized. With Scene Detection off,
the GOPs are now (as of 0.51) strictly enforced to use a strict GOP format. (i.e. it won't replace B
-Frames with P-Frames in High motion)

Auto Max Bitrate & Max Bitrate
------------------------------
You can either set the Max Bitrate used, or set to Auto. In DVDs the bitrate is not allowed
above 9800kbps. QuEnc does not limit it to that maximum though so you are better off setting
it manually for things like DVD or SVCD etc.

Aspect Ratio
------------
Sets the aspect ratio to encode the video to.

Pulldown
--------
this is for setting 23.976fps footage to be percieved as 29.98fps so allowable with DVD etc.
for more informaion please use a search engine like google.

*OTHER INFORMATION

AC3 5.1 channel input order
---------------------------
you may need to remap the channels to FL-C-FR-SL-SR-LFE , in Avisynth that would mean using
GetChannel(1,3,2,5,6,4).

encoding MPEG1 at high bitrate
------------------------------
MPEG1 was not really designed for very high bitrates, such as over 2000kbps.