关于x265配置参数的官方文档
几个比较重要的参数:
--csv
<filename>
Writes encoding results to a comma separated value log file. Creates the file if it doesnt already exist. If --csv-log-level
is 0, it adds one line per run. If --csv-log-level
is greater than 0, it writes one line per frame. Default none
--psnr
,
--no-psnr
Calculate and report Peak Signal to Noise Ratio. It is recommended to use --tune
psnr if you are measuring PSNR, else the results should not be used for comparison purposes. Default disabled
--frame-threads
,
-F
<integer>
Number of concurrently encoded frames. Using a single frame thread gives a slight improvement in compression, since the entire reference frames are always available for motion compensation, but it has severe performance implications. Default is an autodetected count based on the number of CPU cores and whether WPP is enabled or not.
Over-allocation of frame threads will not improve performance, it will generally just increase memory use.
Values: any value between 0 and 16. Default is 0, auto-detect
--wpp
,
--no-wpp
Enable Wavefront Parallel Processing. The encoder may begin encoding a row as soon as the row above it is at least two CTUs ahead in the encode process. This gives a 3-5x gain in parallelism for about 1% overhead in compression efficiency.This feature is implicitly disabled when no thread pool is present.
实例参数配置:--input=BasketballPass_416x240_50_rc.yuv --frames=500 --ref=4 --psnr --input-res=416x240 --fps=50 --qp=30 --frame-threads 1 --no-wpp --preset slow --rd 5 --rect --no-amp --csv cu.csv --output=test.bin