level 7
最近一直在研究x264的压缩参数,比如3种影像质量的参数:QP、bitrate和CRF。以及其它种种概念(以前懒,都是用MEGUI调用DOOM9现成的profile文件)
可是后来发现,preset和tune就像是现成的,已经写好的profile,直接使用即可。
这2个参数,是不是默认了x264的一大堆参数,我直接使用就可以了。
比如使用preset slow,就默认了--subme 6而不是--subme 1,速度自然就慢下来了。
使用tune animation,ref(参考帧)的值就可以更大,因为是动画片,图像变化比较小
另外再问一个问题,默认情况下是不是已经开启了mbtree(因为没有mbtree参数,只有一个--no-mbtree)这个参数是不是很好,建议打开呢?
2014年10月30日 14点10分
1
level 11
--preset <string> Use a preset to select encoding settings [medium]
Overridden by user settings.
- ultrafast:
--no-8x8dct --aq-mode 0 --b-adapt 0
--bframes 0 --no-cabac --no-deblock
--no-mbtree --me dia --no-mixed-refs
--partitions none --rc-lookahead 0 --ref 1
--scenecut 0 --subme 0 --trellis 0
--no-weightb --weightp 0
- superfast:
--no-mbtree --me dia --no-mixed-refs
--partitions i8x8,i4x4 --rc-lookahead 0
--ref 1 --subme 1 --trellis 0 --weightp 1
- veryfast:
--no-mixed-refs --rc-lookahead 10
--ref 1 --subme 2 --trellis 0 --weightp 1
- faster:
--no-mixed-refs --rc-lookahead 20
--ref 2 --subme 4 --weightp 1
- fast:
--rc-lookahead 30 --ref 2 --subme 6
--weightp 1
- medium:
Default settings apply.
- slow:
--b-adapt 2 --direct auto --me umh
--rc-lookahead 50 --ref 5 --subme 8
- slower:
--b-adapt 2 --direct auto --me umh
--partitions all --rc-lookahead 60
--ref 8 --subme 9 --trellis 2
- veryslow:
--b-adapt 2 --bframes 8 --direct auto
--me umh --merange 24 --partitions all
--ref 16 --subme 10 --trellis 2
--rc-lookahead 60
- placebo:
--bframes 16 --b-adapt 2 --direct auto
--slow-firstpass --no-fast-pskip
--me tesa --merange 24 --partitions all
--rc-lookahead 60 --ref 16 --subme 11
--trellis 2
--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}
- touhou (psy tuning):
--aq-strength 1.3 --deblock -1:-1
--partitions {p4x4 if p8x8 set}
--psy-rd <unset>:0.2
--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
请看x264的fullhelp
2014年10月30日 14点10分
2
排版乱了...自己看一下fullhelp就是
2014年10月30日 14点10分
回复 ▔∞▔ :好的,谢谢,我看看
2014年10月30日 22点10分
回复 ▔∞▔ :我用参数 x264 --fullhelp>help.txt 把帮助信息存成help.txt,可是打开以后,居然没有硬回车,没有换行,看得我云山雾绕的,请问这是怎么回事
2014年10月31日 09点10分
回复 haierccc :默认LF换行符。换个notepad2-mod/notepad++之类的替换notepad,或者用写字板打开
2014年10月31日 10点10分
level 7
preset + tune绝大部分时候都够了,然后注意一下profile和level的兼容性就差不多了。
2014年11月03日 02点11分
3
level 11
preset+tune,之后只要稍微调一下就行……mbtree开着的话可以通过qcomp来抑制
-- :(){:|:&};:
2014年11月03日 05点11分
4
mbtree开着的话qcomp用 什么值好呢?
2014年11月06日 01点11分
回复 登峰造极87 :一般0.6到0.8吧 越高对mbtree抑制最强 -- :(){:|:&};:
2014年11月06日 01点11分
level 1
tuning里的film适用于电视剧吗?
想压制10bit视频,是不是在megui里√上10bit就可以了?还需不需要改下参数?
2014年11月07日 18点11分
7