运行此命令:
ffmpeg -i xr.mp4 -tune ya zu.mp4
Run Code Online (Sandbox Code Playgroud)
揭示了x264 和 FFmpeg的可能调谐值:
[libx264 @ 0000000002167100] 可能的曲调:电影动画颗粒静止图像 psnr ssim
快速解码零延迟
但是,我找不到解释这些值实际作用的参考资料。
llo*_*gan 78
这就是模式的作用:
film – 用于高比特率/高质量电影内容。此处使用较低的解块。animation– 适用于卡通片等,其中增强了去块功能以补偿较大的平坦区域。使用了更多的参考帧。grain – 这应该用于已经有颗粒的材料。在这里,谷物不会被过滤掉太多。stillimage – 顾名思义,它通过降低去块过滤器来优化静止图像编码。psnr和ssim– 这些调试模式仅用于优化良好的 PSNR 和 SSIM 值。更好的指标并不一定意味着更好的质量。fastdecode – 禁用 CABAC 和环路去块滤波器,以允许在计算能力较低的设备上进行更快的解码。zerolatency – 优化快速编码和低延迟流您可以使用以下命令查看每个调谐应用的详细选项x264 --fullhelp:
--tune <string> Tune the settings for a particular type of source
or situation
Overridden by user settings.
Multiple tunings are separated by commas.
Only one psy tuning can be used at a time.
- film (psy tuning):
--deblock -1:-1 --psy-rd <unset>:0.15
- animation (psy tuning):
--bframes {+2} --deblock 1:1
--psy-rd 0.4:<unset> --aq-strength 0.6
--ref {Double if >1 else 1}
- grain (psy tuning):
--aq-strength 0.5 --no-dct-decimate
--deadzone-inter 6 --deadzone-intra 6
--deblock -2:-2 --ipratio 1.1
--pbratio 1.1 --psy-rd <unset>:0.25
--qcomp 0.8
- stillimage (psy tuning):
--aq-strength 1.2 --deblock -3:-3
--psy-rd 2.0:0.7
- psnr (psy tuning):
--aq-mode 0 --no-psy
- ssim (psy tuning):
--aq-mode 2 --no-psy
- fastdecode:
--no-cabac --no-deblock --no-weightb
--weightp 0
- zerolatency:
--bframes 0 --force-cfr --no-mbtree
--sync-lookahead 0 --sliced-threads
--rc-lookahead 0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
117541 次 |
| 最近记录: |