X265不同Preset下的默认参数

转自:http://blog.csdn.net/cyril1121/article/details/51323824


不同的Preset将直接影响编码的速度和解码后图像的质量,Preset级别越高,编码速度越慢,解码后的质量也越高;级别越低,速度也越快,解码后的图像质量也就越差,可以通过几下几个参数调节编码速度和解码后图像质量。其中最常见的参数

Coding QT: max CU size, min CUsize : 32 / 16   //设置CU的大小
x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel /merge         : dia / 57 / 0 / 2       //表示运动估计的算法,运动估计范围,子像素搜索及其范围
x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 0   //设置最大最小GOP及场景切换


Ultrafast

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(40 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 32 / 16

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : dia / 57 / 0 / 2

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 0

x265 [info]: Lookahead / bframes /badapt        : 5 / 3 / 0

x265 [info]: b-pyramid / weightp /weightb       : 1 / 0 / 0

x265 [info]: References / ref-limit  cu / depth : 1 / 0 / 0

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=2 psy-rd=0.30early-skip tmvp fast-intra

x265 [info]: tools: strong-intra-smoothingdeblock

superfast

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(40 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 32 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : hex / 57 / 1 / 2

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 10 / 3 / 0

x265 [info]: b-pyramid / weightp /weightb       : 1 / 0 / 0

x265 [info]: References / ref-limit  cu / depth : 1 / 0 / 0

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=2 psy-rd=0.30early-skip signhide tmvp fast-intra

x265 [info]: tools: strong-intra-smoothingdeblock

 

veryfast

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(40 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 32 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : hex / 57 / 1 / 2

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 15 / 4 / 0

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 0

x265 [info]: References / ref-limit  cu / depth : 1 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 0

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=2 psy-rd=0.30early-skip signhide tmvp fast-intra

x265 [info]: tools: strong-intra-smoothingdeblock sao

faster

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : hex / 57 / 2 / 2

x265 [info]: Keyframe min / max / scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 15 / 4 / 0

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 0

x265 [info]: References / ref-limit  cu / depth : 1 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 0

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=2 psy-rd=0.30early-skip signhide tmvp fast-intra

x265 [info]: tools: strong-intra-smoothingdeblock sao

fast

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : hex / 57 / 2 / 2

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 15 / 4 / 0

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 0

x265 [info]: References / ref-limit  cu / depth : 2 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=2 psy-rd=0.30signhide tmvp fast-intra

x265 [info]: tools: strong-intra-smoothingdeblock sao

medium

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : hex / 57 / 2 / 2

x265 [info]: Keyframe min / max / scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 20 / 4 / 2

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 0

x265 [info]: References / ref-limit  cu / depth : 3 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rd=3 psy-rd=0.30signhide tmvp strong-intra-smoothing

x265 [info]: tools: deblock sao

slow

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 1 inter / 1 intra

x265 [info]: ME / range / subpel /merge         : star / 57 / 3 / 3

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 25 / 4 / 2

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 0

x265 [info]: References / ref-limit  cu / depth : 3 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rect rd=4 psy-rd=0.30rdoq=2 psy-rdoq=1.00 signhide tmvp

x265 [info]: tools: strong-intra-smoothingdeblock sao

slower

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 2 inter / 2 intra

x265 [info]: ME / range / subpel /merge         : star / 57 / 3 / 3

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 30 / 8 / 2

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 1

x265 [info]: References / ref-limit  cu / depth : 3 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rect amp rd=6psy-rd=0.30 rdoq=2 psy-rdoq=1.00 signhide

x265 [info]: tools: tmvp b-intrastrong-intra-smoothing deblock sao

veryslow

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 3 inter / 3 intra

x265 [info]: ME / range / subpel /merge         : star / 57 / 4 / 4

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 40 / 8 / 2

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 1

x265 [info]: References / ref-limit  cu / depth : 5 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rect amp rd=6psy-rd=0.30 rdoq=2 psy-rdoq=1.00 signhide

x265 [info]: tools: tmvp b-intrastrong-intra-smoothing deblock sao

placebo

x265 [info]: HEVC encoder version 1.8

x265 [info]: build info [Linux][GCC4.8.5][64 bit] 8bit

x265 [info]: using cpu capabilities: MMX2SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2

x265 [info]: Main profile, Level-5 (Maintier)

x265 [info]: Thread pool 0 using 36 threadson NUMA node 0

x265 [info]: Thread pool 1 using 36 threadson NUMA node 1

x265 [info]: frame threads / poolfeatures       : 6 / wpp(20 rows)

x265 [info]: Coding QT: max CU size, min CUsize : 64 / 8

x265 [info]: Residual QT: max TU size, maxdepth : 32 / 4 inter / 4 intra

x265 [info]: ME / range / subpel /merge         : star / 92 / 5 / 5

x265 [info]: Keyframe min / max /scenecut       : 25 / 250 / 40

x265 [info]: Lookahead / bframes /badapt        : 60 / 8 / 2

x265 [info]: b-pyramid / weightp /weightb       : 1 / 1 / 1

x265 [info]: References / ref-limit  cu / depth : 5 / 0 / 0

x265 [info]: AQ: mode / str / qg-size /cu-tree  : 1 / 1.0 / 32 / 1

x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60

x265 [info]: tools: rect amp rd=6psy-rd=0.30 rdoq=2 psy-rdoq=1.00 tskip

x265 [info]: tools: signhide tmvp b-intrastrong-intra-smoothing deblock sao

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在使用ffmpeg设置h264参数时,可以通过调用x264_param_apply_profile函数来设置profile。\[1\]另外,如果你在Ubuntu 16.04上安装了libx264库,可以使用以下命令来安装libx264的库:sudo apt install libx264-148和sudo apt install libx264-dev。\[2\] 在设置x264参数时,你可以使用AVCodecContext结构体来设置编码器参数。首先,你需要找到对应的编码器,然后创建编码器上下文。接下来,你可以准备编码器参数,并使用avcodec_open2函数来设置编码器参数。\[2\] 如果你想设置preset参数,可以在准备编码器参数时设置。\[2\] 如果你想设置profile参数,可以使用AVDictionary结构体来设置。你可以创建一个AVDictionary对象,并使用av_dict_set函数来设置profile参数的值。然后,将该AVDictionary对象作为第三个参数传递给avcodec_open2函数。\[2\]\[3\] 总结起来,你可以使用x264_param_apply_profile函数来设置profile参数,使用AVCodecContext结构体来设置编码器参数,使用AVDictionary结构体来设置preset和profile参数。 #### 引用[.reference_title] - *1* *2* [【FFmpeg】设置H264参数](https://blog.csdn.net/u010168781/article/details/107497953)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [ffmpeg 编码h264设置参数](https://blog.csdn.net/qq_32642107/article/details/109668619)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值