DivX 5.0 CLI parameters

The command line interface parameters will be automatically updated as you use the GUI to change the codec parameters. The opposite is also true. When you type parameters into the CLI, the GUI will show the changes after you press the tab or enter key. This makes the CLI an easy shorthand for advanced users to use to manage their settings.

MPEG4 Profile

-mp Profile
 	profile=	SP	Simple Profile
                		ASP	Advanced Simple Profile
 			SSP	Simple Studio Profile
  			CSP	Core Studio Profile
 			F	Free

MPEG4 level

-ml Level
 	Level=	1 	Level 1
 			2	Level 2
 			3	Level 3
 			4	Level 4
 			F 	Level Free

Bitrate Mode

-b1 Bitrate,[MaxBitrate]
Bitratemode= -b1   1 pass CBR mode
             -b1q  1 pass Q based mode
             -b21  2 pass 1st pass
             -b22  2 pass 2nd pass
Examples:
             -b1   780       1 pass followed by bitrate
             -b1q  50%,1000  1 pass Q based followed by 
                             a percent if %, The optional second 
                             parameter is the Max Bitrate
             -b1q  10.2      1 pass Q based followed by a Quantized 
                             if nothing and < 31
             -b21  800       2 pass 1st pass followed by bitrate
             -b22  800       2 pass 2nd pass followed by bitrate
             -b1   780,1500  The optional second parameter is the Max Bitrate

In 1 pass mode (-b1 and -b1q) the log and mv files section and corresponding CLI entry are disabled.

Write MPEG4 file

-ff "FileName" Write a MPEG4 file

Crop

-c left,right,top,bottom

Resize

-r width,height,Quality
 	Quality= 1 Bilinear
             2 Soft Bicubic
             3 Normal Bicubic
             4 Sharp Bicubic

Pre Processing Source

-pre [Strength] or [TemporalLevel,SpatialLevel,SpatialPasses]
 	Strength= 	1 	Light
                 		2 	Normal
                		3 	Strong
                		4 	Extreme
TemporalLevel= from 0.0 to 1.0
SpatialLevel=  from 0.0 to 1.0
SpatialPasses= from 1 to 3

Psycho Visual Enhancements

-psy [Strength] or [FrameLevel,MacroblockLevel]
 	Strength= 	1 	Light
                 		2 	Normal
                		3 	Strong                
FrameLevel= from 0.0 to 1.0
MacroblockLevel=  from 0.0 to 1.0

Maximum Key Frame interval

-key MaxInterval

Two pass encoding log and mv

-log LogFileName -mv MVFileName If -mv option is specified during 2nd pass the mv file will be used, if no -mv option is specified during 2nd second pass, MV will be recalculated

Protect log/mv file

-p

Source Interlace/deinterlace

-d Method
Method=	1	All Frames are progressive
 		2	All Frames are interlaced
 		3	Intelligent IVTC/deinterlace

-bvd
Basic Video Deinterlace

MPEG4 Tools

Quarter Pixel
-q
GMC
-g
Bi-directional encoding
-b

Data Rate

-dr MaxQ,MinQ,RCAveragingPeriod,RCReactionPeriod,RCDownUpRatio
Example
 	-dr 12,2,2000,10,20

Scene Change Thereshold

	-sc SceneChangePercent
Example
 	-sc 50
	-sc 70%

Data partitioning

-dp PacketSize

Performance/Quality

-pq Value
Value=	1	Fastest
 		2	Fast
 		3	Medium
 		4	Slow
 		5	Slowest

Bitrate Mode

-b1 Bitrate,[MaxBitrate]
Bitratemode= -b1   1 pass CBR mode
             -b1q  1 pass Q based mode
             -b21  2 pass 1st pass
             -b22  2 pass 2nd pass
Examples:
             -b1   780        1 pass followed by bitrate
             -b1q  50%,1000   1 pass Q based followed by a percent if %,
			                  The optional second parameter is the Max Bitrate
             -b1q  10.2      1 pass Q based followed by a Quantized if 
			                 nothing and < 31
             -b21  800       2 pass 1st pass followed by bitrate
             -b22  800       2 pass 2nd pass followed by bitrate
             -b1   780,1500  The optional second parameter is the Max Bitrate

Max bitrate is not yet implemented in the DivX 5.0

Write MPEG4 file

-ff "FileName" Write a MPEG4 file

Crop

-c left,right,top,bottom

Resize

-r width,height,Quality
 	Quality= 	1 	Bilinear
                 		2 	Soft Bicubic
                		3 	Normal Bicubic
                		4 	Sharp Bicubic

Pre Processing Source

-pre [Strength] or [TemporalLevel,SpatialLevel,SpatialPasses]
 	Strength= 	1 	Light
                 		2 	Normal
                		3 	Strong
                		4 	Extreme
TemporalLevel= from 0.0 to 1.0
SpatialLevel=  from 0.0 to 1.0
SpatialPasses= from 1 to 3

Psycho Visual Enhancements

-psy [Strength] or [FrameLevel,MacroblockLevel]
 	Strength= 	1 	Light
                 		2 	Normal
                		3 	Strong                
FrameLevel= from 0.0 to 1.0
MacroblockLevel=  from 0.0 to 1.0

Maximum Key Frame interval

-key MaxInterval
Two pass encoding log and mv
-log [LogFileName]
-mv [MVFileName]	If -mv option is specified during 
                    2nd pass the mv file will be used

Protect log/mv file

Not functional in this release.