打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
自己动手试试x264 命令的各种选项,体验一下

自己动手试试x264 命令的各种选项,体验一下  

说明一下,只为亲手试一下一些选项,看是不是能用,取值是随意的。

x264 -help

 

 

x264  -o test.264 bowing_cif.y4m 352x288

 

x264  -o test.264 176x144.yuv    (不再另外指定宽和高,直接从文件名中分析出来了)

 

D:\test>x264 --crf 22  -o test.264 hall_cif.yuv 352x288

 

D:\test>x264 --crf 30  -o test.264 hall_cif.yuv 352x288  (test.264 129 KB (132,795 字节))

 

x264 --crf 22 --frames 150  -o test.yuv bowing_cif.y4m 352x288

 

x264 --crf 22 -b 5 -o test.264 bowing_cif.y4m 352x288

 

x264 --crf 22 -w -b 5 -o test.264 bowing_cif.y4m 352x288

 

 

x264 --crf 22 -w -t -8 -b 5 -o test.264 bowing_cif.y4m 352x288

 

 

x264 --crf 22 -w -t -8 -b 5 -v -o test.264 bowing_cif.y4m 352x288   (输出每帧时的详细信息)

 

 
 
x264 --crf 22 --qp 26 -b 5 -o test.264 bowing_cif.y4m 352x288
 
x264 --crf 22 --qp 26 --no-cabac -b 5 -o test.264 bowing_cif.y4m 352x288
 
 
 x264 --crf 22 --qp 26 --ref 2 -b 5 -o test.264 bowing_cif.y4m 352x288
 
 
 
 D:\>x264 --crf 22 --qp 26 --ref 16 --progress  -o test.264 bowing_cif.y4m 352x288
 
  D:\>x264 --crf 22 --qp 0 --ref 16 --progress  -o test.264 bowing_cif.y4m 352x288  
  D:\>x264 --crf 22 --crf 0 --ref 16 --progress  -o test.264 bowing_cif.y4m 352x288 
无失真(lossless)编码(-qp 0或--crf 0)
 
 D:\>x264 --keyint 5  -o test.264 bowing_cif.y4m 352x288
 
 D:\>x264 --min-keyint 5  -o test.264 bowing_cif.y4m 352x288
 
 
 
 x264 --bitrate 200 -o test.264 bowing_cif.y4m 352x288
 
 
x264 --vbv-maxrate 2 -o test.264 bowing_cif.y4m 352x288
 
x264 --vbv-bufsize 2 -o test.264 bowing_cif.y4m 352x288
 
x264 --vbv-init 0.8 -o test.264 bowing_cif.y4m 352x288
 
x264 --qpmin 2 -o test.264 bowing_cif.y4m 352x288
 
x264 --qpmax 22 -o test.264 bowing_cif.y4m 352x288
 
x264 --qpstep 9 -o test.264 bowing_cif.y4m 352x288
 
x264 --ratetol 0.8 -o test.264 bowing_cif.y4m 352x288
 
 
 x264 --ipratio 0.8 -o test.264 bowing_cif.y4m 352x288
 
 x264 --pbratio 1.3 -o test.264 bowing_cif.y4m 352x288
 
 x264 --chroma-qp-offset 1.3 -o test.264 bowing_cif.y4m 352x288
 
 x264 --pass 1 -o test.264 bowing_cif.y4m 352x288
 
x264 --stats "x264_2pass_zjh.log" -o test.264 bowing_cif.y4m 352x288
 
 
 
 选项还有那么多,可是我已经很累了,慢慢再试吧
 
 说明,本版本支持的命令,可以从help中查看,或者在源码中分析亦可。欢迎被充指正。
 
附:
【x264 cli常用选项解释】
1.最简单的方式
x264 -o test.264 infile.yuv widthxheight
example:
x264 -o test.264 foreman.cif 352x288
note: 352x288中间的是英文字母x,而不是*,总是有一些朋友会搞错了,所以我在此多一句提醒一下。
2.量化步长固定
--qp ??
example:
x264 --qp 26 -o test.264 foreman.cif 352x288
3.采用cavlc
--no-cabac
note: 默认是采用cabac
4.设置编码帧数
--frames ??
example:
x264 --frames 10 --qp 26 -o test.264 foreman.cif 352x288
5. 设置参考帧数目
--ref ??
example:
x264 -- ref 2 --frames 10 --qp 26 -o test.264 foreman.cif 352x288
6. 用于dvdrip的经典选项:码率控制,采用B帧,两遍编码
example:
x264.exe --frames 10 --pass 1 --bitrate 1500 --ref 2 --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -2,-2 --trellis 1 --analyse all --8x8dct --progress -o test1.264 foreman.cif 352x288
x264.exe --frames 10 --pass 2 --bitrate 1500 --ref 2 --bframes 2 --b-pyramid --b-rdo --bime --weightb --filter -2,-2 --trellis 1 --analyse all --8x8dct --progress -o test2.264 foreman.cif 352x288
7. 显示编码进度
--progress
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
ffmpeg与x264编码指南
x264命令行参数解释
【 翻译 】x264参数介绍(一、帧类型和码率控制) | 陈钢的博客
通达信自动画线主图公式
ffplay命令
涨停多方炮选股公式
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服