//
Http://blog.csdn.net/android_lee/article/details/6214617
Frame Type options:
-I/-keyint <integer> maximum IDR frame spacing, 250 by default
-I/-Min-keyint <integer> Minimum IDR frame spacing. The default value is 25.
-Scenecut <integer> specifies the threshold for Dynamic screen changes. When the threshold is exceeded, an I frame is inserted. The default value is 40.
-Pre-scenecut is faster, but the low-precision Image Dynamic detection requires multithreading and is automatically enabled when multithreading is enabled.
-B/-bframes <integer> maximum number of B frames that can be inserted between IP frames, ranging from 0 ~ 16. The default value is 0.
-B-adapt: adaptive B-frame determination mode. 0: Disabled; 1: fast; 2: optimized (the speed is greatly reduced when the frame is high). The default value is 1.
-B-bias <integer> controls the determination of frame B inserted. The value range is-100 ~ + 100. The higher the value, the easier it is to insert B frames. The default value is 0.
-B-pyramid: allows B frames for reference.
-No-cabac disable content adaptive binary arithmetic coding (cabac, efficient entropy encoding) (which increases the speed but seriously affects the quality)
-R/-ref <integer> maximum number of reference frames, ranging from 0 ~ 16. The default value is 1.
-No-deblock Closed Loop filtering (a mosaic Removal Algorithm)
-F/-filter <ALPHA: Beta>: Set the alphac and beta parameters of loop filter. The value range is-6-6. The default value is 0.
-Interlaced: Enable the pure interleaved mode (for the source of the line scan)
Bit Rate Control Options:
-Q/-QP <integer> fixed quantization mode and set the used quantization value. The value range is 0 ~ . 0 indicates lossless compression. The default value is 26.
-B/-bitrate <integer> sets the average bit rate.
-CRF <integer> quality mode. The quantitative value is dynamically changeable.
-Vbv-maxrate <integer> maximum instantaneous bit rate in average bit rate mode. The default value is 0 (same as that in-B)
-Vbv-bufsize <integer> bit rate controls the buffer size. Unit: kbit. The default value is 0.
-Vbv-init <decimal> bit rate controls the ratio of the maximum data retained in the buffer to the buffer size. The value range is 0 ~ 1.0. The default value is 0.9.
-Qpmin <integer> sets the minimum quantization value, ranging from 0 ~ 51. The default value is 10.
-Qpmax <integer> sets the maximum quantization value, ranging from 0 ~ 51. The default value is 51.
-Qpstep <integer> sets the quantization value difference between adjacent frames, ranging from 0 ~ 50. The default value is 4.
-In ratetol <decimal> average bit rate mode, the instantaneous bit rate can be a multiple that deviates from each other. The value range is 0.1 ~ 100.0. The default value is 1.0.
-Ipratio <decimal> quantization coefficient between frames I and P. The default value is 1.40.
-Pbratio <decimal> quantization coefficient between P frames and B frames. The default value is 1.30.
-Chroma-QP-offset <integer> quantization difference between the color and brightness, range:-12 ~ + 12. The default value is 0.
-AQ-mode <integer> adaptive quantization mode: You can re-allocate the quantization value between different macro blocks in one frame to increase the details of the hidden part, but increase the bit rate. It cannot be used together with-Qp, 0 is disabled, and 1 is enabled. The default value is 1.
-AQ-Strength <decimal> AQ intensity, which reduces the quantization value of the Low-Detail macro block. The default value is 1.0.
-P/-pass <1 | 2 | 3> multiple compression Bit Rate Control
1: Create a statistical file for the first Compression
2: compress and output the data according to the created Statistical file, without overwriting the Statistical File,
3: compress the created Statistical File to optimize the Statistical File
-Stats <string> The Name Of The Statistics file. The default value is "x127_2pass.log"
-Qcomp <decimal> linear quantization control. The value 0.0 indicates a fixed bit rate and the value 1.0 indicates a fixed quantization value. The default value is 0.6. It is only used for 2-pass and quality modes.
-Cplxblur <decimal number> the maximum value based on the ratio of the smooth quantization value of adjacent frames. The value range is 0 ~ 99.9. The default value is 20.0. It is only used for 2-pass and quality modes.
-Qblur <decimal> the maximum ratio of the smooth quantization value of the Statistical File results, ranging from 0 ~ 99.9. The default value is 0.5. It is only used for 2-pass.
-Zones <z0>/<Z1> /... Segment quantization, in the format of <start frame>, <End frame>, <option>, and optional values: q = <integer> (quantization value) or B = <decimal number> (bitrate multiple)
-Qpfile <string> specifies the forced Frame Type and quantization value.
Analysis options:
-A/-analyze <string> Dynamic Block division method. The default value is "p8x8, b8x8, i8x8, i4x4 ". Optional: p8x8/p4x4/b8x8/i8x8/i4x4; none/All (p4x4 requires p8x8. i8x8 requires-8x8dct)
-Direct <string> dynamic prediction method. The default value is "spatial ". Optional: NONE/spatial/temporal/auto
-Direct-8 × 8 <-1 | 0 | 1> macro block size in the dynamic prediction mode. 0: 4 × 4, 1: 8 × 8,-1: reduce the volume as much as possible. The default value is 1.
-W/-weightb allows B-frame weighted prediction (which can reduce the impact of low quality of adjacent B-frames)
-Me <string> specifies the dynamic prediction and search method for all pixel blocks. The default value is "hex". The options are as follows:
Dia: Diamond Search, radius 1 (FAST)
HEX: hexagonal search, radius 2
Umh: hexagonal search with variable radius
ESA: comprehensive search (very slow and almost identical to umh)
TeSA: Uses Hadamard for comprehensive search, which is slower than ESA
-Merange <integer>-the search radius when me is umh/ESA. The maximum value is 64. The default value is 16.
-Mvrange <integer> specifies the maximum range of motion vectors. The default value is-1 (automatically determined)
-Mvrange-thread <integer> the minimum buffer between threads, used for compatibility with some players. The default value is-1 (automatically determined)
-M/-subme <integer>: Dynamic Prediction and partitioning method. Option 1 ~ 9. The default value is 6 (closely related to the compression quality and time, and 1 is more than four times the speed of 7)
1: use full pixel blocks for dynamic search, and then use the quick mode to perform a precise search of 1/4 pixel blocks.
2: Use half-pixel blocks for dynamic search, and then use the quick mode to perform a precise search of 1/4 pixel blocks.
3: Use half-pixel blocks for dynamic search, and use the quality mode to perform a precise search of 1/4 pixel blocks for each block.
4: exact search of 1/4 pixel blocks in Quick Mode
5: precise search of 1/4 pixels in quality mode
6: optimizing the rate distortion of pixel blocks of I and P frames (rdo)
7: optimize the rate distortion of all frame pixel Blocks
8: optimizing I and P frame motion vectors and intra-block rate distortion
9: optimize all frame motion vectors and intra-block rate distortion (best quality)
-Psy-rd uses the psy algorithm (a mental visual model) and psy-trellis quantization in rdo to increase the details but greatly increase the bit rate. -M> 6 is required. The default value is ["1.0: 0.0"]. The first value is the psy-rdo intensity, and the second value is the psy-trellis intensity.
-Mixed-Refs can use different reference frames within one frame
-No-chroma-me: do not perform dynamic color prediction.
-8/-8x8dct can use 8x8 discrete cosine transform (DCT)
-T/-trellis <integer> trellis quantization. Find the appropriate quantization value for each 8 × 8 block. cabac is required. The default value is 0.
0: Disable
1: used only for the final Encoding
2: Always Use
-No-fast-pskip disable fast p-frame skip Detection
-No-DCT-decimate disable p-Frame Joint encoding (details can be added, but the size will also increase)
-Nr <integer> Noise Removal, range: 0 ~ 100000, 0 by default
-Deadzone-Inter <integer> sets the brightness dead zone quantization value in inter mode, ranging from 0 ~ 32. The default value is 21.
-Deadzone-intra <integer> sets the brightness dead zone quantization value in intra mode, ranging from 0 ~ 32. The default value is 11.
-CQM <string> sets the format of the external quantization matrix. The default value is "flat". Optional values: JVT/flat.
-Cqmfile <string> reads the external quantization matrix file in JM format and automatically ignores other-CQM * options
-Cqm4 <list> sets the 4 × 4 quantization matrix separated by commas. The value range is 1 ~ 16 Integers of 255
-Cqm8 <list> sets the 8 × 8 quantization matrix separated by commas (,). The value range is 1 ~ 64 integers in 255
-Cqm4i/-cqm4p/-cqm8i/-cqm8p: set different quantization matrices for I and P frames.
-Cqm4iy/-cqm4ic/-cqm4py/-cqm4pc: sets the quantization matrix with Different Brightness and color.
Video standardization options:
These options have nothing to do with encoding, but if you want to use a player like MP4, you can set them at your own risk.
-Overscan <string> overscan line. The default value is "UNDEF" (not set). The options are show (View)/crop (delete)
-Videoformat <string> video format. The default value is "UNDEF". Optional values: component/PAL/NTSC/SECAM/MAC/UNDEF.
-Fullrange <string> specify full range samples setting, default "off", option: Off/on)
-Colorprim <string> original color format. The default value is "UNDEF". Optional values: UNDEF, bt709, bt470m, and bt470bg,
Smpte170m/smpte240m/Film
-Transfer <string> conversion method. The default value is "UNDEF". Optional values:
UNDEF/bt709/bt470m/bt470bg/linear, log100/log316/smpte170m/smpte240m
-Colormatrix <string> color matrix setting. The default value is "UNDEF", UNDEF/bt709/FCC/bt470bg, smpte170m/smpte240m/GBR/ycgco.
-Chromaloc <integer> color sample specified, range: 0 ~ 5. The default value is 0.
Input and Output options:
-O/-output: Specify the output file
-SAR width: Height: sets the sampling ratio, indicating the sample pixel aspect ratio.
-FPS <decimal | rational> sets the frame rate.
-Seek <integer> specifies the start frame.
-Frames <integer> maximum number of encoded Frames
-Level <string> is similar to "Profile & level" in MPEG4, indicating the encoding/decoding level.
-V/-verbose: displays the information of each frame.
-Progress: display the Encoding Process
-Quiet Mode
-No-SNR: Disable the SNR calculation.
-No-SSIM disable SSIM Calculation
-Threads <integer> encoding thread (using multithreading technology)
-Thread-input: Run avisynth in the self-owned thread
-Non-deterministic is non-deterministic. Reduces the overhead of multiple threads.
-ASM <integer> overwrite CPU Detection
-No-ASM: Disable all CPU optimization commands
-Visualize: displays the encoded frame information diagram, which is similar to XviD.
-Dump-YUV <string> Save the frame in YUV format.
-SPS-id <integer> specifies the ID of SPs and PPS. The default value is 0.
-Aud uses data definition symbols
Frame Type options:
-I/-keyint <integer> maximum IDR frame spacing, 250 by default
-I/-Min-keyint <integer> Minimum IDR frame spacing. The default value is 25.
-Scenecut <integer> specifies the threshold for Dynamic screen changes. When the threshold is exceeded, an I frame is inserted. The default value is 40.
-Pre-scenecut is faster, but the low-precision Image Dynamic detection requires multithreading and is automatically enabled when multithreading is enabled.
-B/-bframes <integer> maximum number of B frames that can be inserted between IP frames, ranging from 0 ~ 16. The default value is 0.
-B-adapt: adaptive B-frame determination mode. 0: Disabled; 1: fast; 2: optimized (the speed is greatly reduced when the frame is high). The default value is 1.
-B-bias <integer> controls the determination of frame B inserted. The value range is-100 ~ + 100. The higher the value, the easier it is to insert B frames. The default value is 0.
-B-pyramid: allows B frames for reference.
-No-cabac disable content adaptive binary arithmetic coding (cabac, efficient entropy encoding) (which increases the speed but seriously affects the quality)
-R/-ref <integer> maximum number of reference frames, ranging from 0 ~ 16. The default value is 1.
-No-deblock Closed Loop filtering (a mosaic Removal Algorithm)
-F/-filter <ALPHA: Beta>: Set the alphac and beta parameters of loop filter. The value range is-6-6. The default value is 0.
-Interlaced: Enable the pure interleaved mode (for the source of the line scan)
Bit Rate Control Options:
-Q/-QP <integer> fixed quantization mode and set the used quantization value. The value range is 0 ~ . 0 indicates lossless compression. The default value is 26.
-B/-bitrate <integer> sets the average bit rate.
-CRF <integer> quality mode. The quantitative value is dynamically changeable.
-Vbv-maxrate <integer> maximum instantaneous bit rate in average bit rate mode. The default value is 0 (same as that in-B)
-Vbv-bufsize <integer> bit rate controls the buffer size. Unit: kbit. The default value is 0.
-Vbv-init <decimal> bit rate controls the ratio of the maximum data retained in the buffer to the buffer size. The value range is 0 ~ 1.0. The default value is 0.9.
-Qpmin <integer> sets the minimum quantization value, ranging from 0 ~ 51. The default value is 10.
-Qpmax <integer> sets the maximum quantization value, ranging from 0 ~ 51. The default value is 51.
-Qpstep <integer> sets the quantization value difference between adjacent frames, ranging from 0 ~ 50. The default value is 4.
-In ratetol <decimal> average bit rate mode, the instantaneous bit rate can be a multiple that deviates from each other. The value range is 0.1 ~ 100.0. The default value is 1.0.
-Ipratio <decimal> quantization coefficient between frames I and P. The default value is 1.40.
-Pbratio <decimal> quantization coefficient between P frames and B frames. The default value is 1.30.
-Chroma-QP-offset <integer> quantization difference between the color and brightness, range:-12 ~ + 12. The default value is 0.
-AQ-mode <integer> adaptive quantization mode: You can re-allocate the quantization value between different macro blocks in one frame to increase the details of the hidden part, but increase the bit rate. It cannot be used together with-Qp, 0 is disabled, and 1 is enabled. The default value is 1.
-AQ-Strength <decimal> AQ intensity, which reduces the quantization value of the Low-Detail macro block. The default value is 1.0.
-P/-pass <1 | 2 | 3> multiple compression Bit Rate Control
1: Create a statistical file for the first Compression
2: compress and output the data according to the created Statistical file, without overwriting the Statistical File,
3: compress the created Statistical File to optimize the Statistical File
-Stats <string> The Name Of The Statistics file. The default value is "x127_2pass.log"
-Qcomp <decimal> linear quantization control. The value 0.0 indicates a fixed bit rate and the value 1.0 indicates a fixed quantization value. The default value is 0.6. It is only used for 2-pass and quality modes.
-Cplxblur <decimal number> the maximum value based on the ratio of the smooth quantization value of adjacent frames. The value range is 0 ~ 99.9. The default value is 20.0. It is only used for 2-pass and quality modes.
-Qblur <decimal> the maximum ratio of the smooth quantization value of the Statistical File results, ranging from 0 ~ 99.9. The default value is 0.5. It is only used for 2-pass.
-Zones <z0>/<Z1> /... Segment quantization, in the format of <start frame>, <End frame>, <option>, and optional values: q = <integer> (quantization value) or B = <decimal number> (bitrate multiple)
-Qpfile <string> specifies the forced Frame Type and quantization value.
Analysis options:
-A/-analyze <string> Dynamic Block division method. The default value is "p8x8, b8x8, i8x8, i4x4 ". Optional: p8x8/p4x4/b8x8/i8x8/i4x4; none/All (p4x4 requires p8x8. i8x8 requires-8x8dct)
-Direct <string> dynamic prediction method. The default value is "spatial ". Optional: NONE/spatial/temporal/auto
-Direct-8 × 8 <-1 | 0 | 1> macro block size in the dynamic prediction mode. 0: 4 × 4, 1: 8 × 8,-1: reduce the volume as much as possible. The default value is 1.
-W/-weightb allows B-frame weighted prediction (which can reduce the impact of low quality of adjacent B-frames)
-Me <string> specifies the dynamic prediction and search method for all pixel blocks. The default value is "hex". The options are as follows:
Dia: Diamond Search, radius 1 (FAST)
HEX: hexagonal search, radius 2
Umh: hexagonal search with variable radius
ESA: comprehensive search (very slow and almost identical to umh)
TeSA: Uses Hadamard for comprehensive search, which is slower than ESA
-Merange <integer>-the search radius when me is umh/ESA. The maximum value is 64. The default value is 16.
-Mvrange <integer> specifies the maximum range of motion vectors. The default value is-1 (automatically determined)
-Mvrange-thread <integer> the minimum buffer between threads, used for compatibility with some players. The default value is-1 (automatically determined)
-M/-subme <integer>: Dynamic Prediction and partitioning method. Option 1 ~ 9. The default value is 6 (closely related to the compression quality and time, and 1 is more than four times the speed of 7)
1: use full pixel blocks for dynamic search, and then use the quick mode to perform a precise search of 1/4 pixel blocks.
2: Use half-pixel blocks for dynamic search, and then use the quick mode to perform a precise search of 1/4 pixel blocks.
3: Use half-pixel blocks for dynamic search, and use the quality mode to perform a precise search of 1/4 pixel blocks for each block.
4: exact search of 1/4 pixel blocks in Quick Mode
5: precise search of 1/4 pixels in quality mode
6: optimizing the rate distortion of pixel blocks of I and P frames (rdo)
7: optimize the rate distortion of all frame pixel Blocks
8: optimizing I and P frame motion vectors and intra-block rate distortion
9: optimize all frame motion vectors and intra-block rate distortion (best quality)
-Psy-rd uses the psy algorithm (a mental visual model) and psy-trellis quantization in rdo to increase the details but greatly increase the bit rate. -M> 6 is required. The default value is ["1.0: 0.0"]. The first value is the psy-rdo intensity, and the second value is the psy-trellis intensity.
-Mixed-Refs can use different reference frames within one frame
-No-chroma-me: do not perform dynamic color prediction.
-8/-8x8dct can use 8x8 discrete cosine transform (DCT)
-T/-trellis <integer> trellis quantization. Find the appropriate quantization value for each 8 × 8 block. cabac is required. The default value is 0.
0: Disable
1: used only for the final Encoding
2: Always Use
-No-fast-pskip disable fast p-frame skip Detection
-No-DCT-decimate disable p-Frame Joint encoding (details can be added, but the size will also increase)
-Nr <integer> Noise Removal, range: 0 ~ 100000, 0 by default
-Deadzone-Inter <integer> sets the brightness dead zone quantization value in inter mode, ranging from 0 ~ 32. The default value is 21.
-Deadzone-intra <integer> sets the brightness dead zone quantization value in intra mode, ranging from 0 ~ 32. The default value is 11.
-CQM <string> sets the format of the external quantization matrix. The default value is "flat". Optional values: JVT/flat.
-Cqmfile <string> reads the external quantization matrix file in JM format and automatically ignores other-CQM * options
-Cqm4 <list> sets the 4 × 4 quantization matrix separated by commas. The value range is 1 ~ 16 Integers of 255
-Cqm8 <list> sets the 8 × 8 quantization matrix separated by commas (,). The value range is 1 ~ 64 integers in 255
-Cqm4i/-cqm4p/-cqm8i/-cqm8p: set different quantization matrices for I and P frames.
-Cqm4iy/-cqm4ic/-cqm4py/-cqm4pc: sets the quantization matrix with Different Brightness and color.
Video standardization options:
These options have nothing to do with encoding, but if you want to use a player like MP4, you can set them at your own risk.
-Overscan <string> overscan line. The default value is "UNDEF" (not set). The options are show (View)/crop (delete)
-Videoformat <string> video format. The default value is "UNDEF". Optional values: component/PAL/NTSC/SECAM/MAC/UNDEF.
-Fullrange <string> specify full range samples setting, default "off", option: Off/on)
-Colorprim <string> original color format. The default value is "UNDEF". Optional values: UNDEF, bt709, bt470m, and bt470bg,
Smpte170m/smpte240m/Film
-Transfer <string> conversion method. The default value is "UNDEF". Optional values:
UNDEF/bt709/bt470m/bt470bg/linear, log100/log316/smpte170m/smpte240m
-Colormatrix <string> color matrix setting. The default value is "UNDEF", UNDEF/bt709/FCC/bt470bg, smpte170m/smpte240m/GBR/ycgco.
-Chromaloc <integer> color sample specified, range: 0 ~ 5. The default value is 0.
Input and Output options:
-O/-output: Specify the output file
-SAR width: Height: sets the sampling ratio, indicating the sample pixel aspect ratio.
-FPS <decimal | rational> sets the frame rate.
-Seek <integer> specifies the start frame.
-Frames <integer> maximum number of encoded Frames
-Level <string> is similar to "Profile & level" in MPEG4, indicating the encoding/decoding level.
-V/-verbose: displays the information of each frame.
-Progress: display the Encoding Process
-Quiet Mode
-No-SNR: Disable the SNR calculation.
-No-SSIM disable SSIM Calculation
-Threads <integer> encoding thread (using multithreading technology)
-Thread-input: Run avisynth in the self-owned thread
-Non-deterministic is non-deterministic. Reduces the overhead of multiple threads.
-ASM <integer> overwrite CPU Detection
-No-ASM: Disable all CPU optimization commands
-Visualize: displays the encoded frame information diagram, which is similar to XviD.
-Dump-YUV <string> Save the frame in YUV format.
-SPS-id <integer> specifies the ID of SPs and PPS. The default value is 0.
-Aud uses data definition symbols