X265不同Preset下的默认参数

部署运行你感兴趣的模型镜像

转自:http://blog.youkuaiyun.com/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

您可能感兴趣的与本文相关的镜像

Linly-Talker

Linly-Talker

AI应用

Linly-Talker是一款创新的数字人对话系统,它融合了最新的人工智能技术,包括大型语言模型(LLM)、自动语音识别(ASR)、文本到语音转换(TTS)和语音克隆技术

03-25
<think>好的,我现在需要帮助用户了解x265编码器的使用说明和下载方法。首先,用户的问题是关于x265视频编码器的,他们想要知道如何使用以及在哪里下载。我需要确保回答结构清晰,符合用户的要求,同时遵循系统级指令。 首先,我应该回忆一下x265的基本信息。x265是一个开源的HEVC/H.265视频编码器,由MulticoreWare开发,基于GNU GPL协议。用户可能需要知道如何下载和安装它,以及基本的使用方法。 接下来,下载部分。用户可能需要访问官方网站,所以应该提供正确的下载链接,比如指向x265官网或GitHub仓库。同时,可能还需要说明如何通过包管理器安装,比如在Ubuntu上使用apt,或者macOS上的Homebrew。这部分需要确保命令准确,避免错误。 然后是基本使用方法。用户可能想知道如何将视频转换为HEVC编码,需要给出一个简单的命令行示例。这里要使用正确的语法,比如ffmpeg调用libx265,指定CRF参数等。需要解释参数的意义,比如CRF的范围和推荐值,以及预设参数preset的作用,可能还需要引用提供的参考资料中的preset配置,比如引用[2]提到的不同preset对应的搜索算法。 性能优化方面,用户可能关心如何调整参数来平衡速度和质量。需要提到preset参数,如slow、fast等,以及调整线程数和使用滤镜的方法。这里可以引用[2]中的内容,说明不同preset对应的算法差异。 高级功能部分,SAO滤波模块在引用[3]中提到,应该简要介绍SAO的作用和限制,说明如何启用或禁用。此外,码率控制模式如CBR、VBR也需要解释,并给出示例命令。 常见问题需要解答可能遇到的错误,比如缺少libx265的支持,以及如何验证安装。这部分需要给出检查ffmpeg是否支持x265的方法,可能用户会运行ffmpeg -codecs | grep hevc这样的命令。 最后,生成相关问题。根据用户提供的示例,需要列出三个相关问题,可能涉及性能优化、参数对比以及与其他编码器的区别。这些问题应该帮助用户进一步探索x265的使用。 整个过程中,需要确保所有的LaTeX格式正确,行内公式用$...$,独立公式用$$...$$,但在这个问题中可能涉及公式的地方不多,但要注意数学表达式如CRF值的范围可能需要用LaTeX,例如CRF值的范围是$0-51$。同时,引用标识要正确添加,引用[1]、[2]、[3]对应的内容需要正确标注在回答中的相应位置。 需要检查是否有遗漏的部分,比如下载方法是否全面,是否覆盖了不同操作系统,使用示例是否清晰,高级功能是否提到了SAO和码率控制。同时,确保所有引用都正确对应,比如在提到预设参数时引用[2],在SAO部分引用[3]。 可能还需要确认用户是否需要更详细的步骤,比如编译源码的指导,但用户的问题主要是使用说明和下载,所以可能不需要深入编译过程,除非用户特别询问。因此,保持回答简洁,覆盖主要点即可。 总结一下,回答的结构应该是:简介、下载方法、基本使用、性能优化、高级功能、常见问题、相关问题。每个部分需要简洁明了,符合用户的需求,同时正确引用提供的参考资料。</think>### x265编码器使用说明及下载方法 #### 1. **简介** x265是一款开源的H.265/HEVC视频编码器,支持多线程和高效压缩,适用于需要高压缩比的场景(如流媒体、4K视频存储)[^1]。其核心算法通过帧间运动估计、变换编码和滤波模块(如SAO)优化视频质量与码率平衡[^2][^3]。 --- #### 2. **下载与安装** - **官方网站**:访问[x265官网](https://www.x265.org/)或GitHub仓库([x265 GitHub](https://github.com/videolan/x265))获取源码或预编译版本。 - **包管理器安装**(以Ubuntu为例): ```bash sudo apt-get install x265 ``` - **通过FFmpeg调用**(需编译支持libx265): 若使用FFmpeg,需确保编译时启用`--enable-libx265`。 --- #### 3. **基本使用** **示例命令**(通过FFmpeg转码为HEVC): ```bash ffmpeg -i input.mp4 -c:v libx265 -crf 28 -preset medium output_hevc.mp4 ``` - **参数说明**: - `-crf 28`:质量控制(范围$0-51$,值越小质量越高,推荐$20-30$)。 - `-preset medium`:编码速度与压缩率平衡(可选`ultrafast`到`placebo`,速度越慢压缩率越高)。 --- #### 4. **性能优化** - **预设参数调整**: - `-preset slower`:提升压缩效率,但编码时间更长(对应更复杂的运动估计算法,如StarSearch)。 - **多线程优化**: ```bash -x265-params "pools=4" # 指定线程数 ``` - **滤镜增强**: 启用SAO滤波(默认开启)以平滑块效应,禁用使用`no-sao=1`[^3]。 --- #### 5. **高级功能** - **码率控制模式**: - **恒定质量(CRF)**:默认模式,适合存储。 - **恒定码率(CBR)**: ```bash -x265-params "bitrate=2000:vbv-maxrate=2000:vbv-bufsize=4000" ``` - **可变码率(VBR)**:通过`--vbv`参数限制峰值码率。 --- #### 6. **常见问题** - **缺少libx265支持**: 确保FFmpeg编译时包含libx265,或从官方获取预编译版本。 - **验证安装**: ```bash ffmpeg -codecs | grep hevc # 输出应包含"hevc (libx265)" ``` ---
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值