ken670128 wrote:
能否指導一下,Vid...(恕刪)
現在最流行的視訊編碼格式是 H.264
就目前已成熟的視訊編碼格式而言,H.264的壓縮率是最佳的。
而 H.264 編碼器就屬 x264 最佳
一般 x264 使用 Preset 搭配 Level 或 ref 限制即可
Preset 是開發者推薦的參數 權衡壓縮效率和編碼速度
通常應該將此選項設為所能忍受的最慢一個
Level 或 ref 限制則是依照你的硬體播放能力
當然越高的設定值能得到越好的壓縮率
通常用
Codec: H.264 (x264)
Profile: High
Level: 自動
Reference frames: 4 - 5
B-Frames: 5 - 6
bitrate 控制使用 CRF 能得到最佳的分配方式
如果要強制控制輸出大小,就用 2-Pass 編碼
http://www.mobile01.com/topicdetail.php?f=510&t=3735840
VidCoder 設定方式請參考這篇
http://www.mobile01.com/topicdetail.php?f=510&t=4092364
kingdragon wrote:
現在最流行的視訊編碼...(恕刪)
x264 - 高品質 H.264 編碼器
大大的這篇我之前有看過,受益良多。
用過很多軟體,但因為 Vidcoder 很適合我的很多需求,
所以我就採用 Vidcoder 來使用。
很多人說使用 CRF 就很好了,所以我品質就就用 CRF ,我原本是調24,
後來看到某張 Handbrake 的捉圖顯示,DVD 建議 18.5~20 的樣子,
所以我又去網路上查,查到了下面這個網址:
http://mattgadient.com/2013/06/20/comparing-x264-rf-settings-in-handbrake-examples/
仔細比較了 RF0 、RF20、RF24 的捉圖後,我選用了 RF20,
回到 Vidcoder 試壓了一首歌,發覺檔案有點太大了...
最後我折衷採用了 CRF22。
再來談設定:
原本是參考網路上的一些討論,所以將進階設定設定如下:

我也不知道好不好,持續就用了這個設定一陣子,因為轉出我光靠肉眼也看不出什麼很大的差異...
最近又看到有人說 VidCoder 的基本項目,其實就是人家設好的參數,
方便一般人使用,所以我又設成如下圖這樣:

也不知道進階參數要不要填上去,轉出來的檔案,用 MEDIAINFO 去看如下:
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 3mn 36s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 142 r2479 dd79a61
Encoding settings : cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Color primaries : BT.601 NTSC
Transfer characteristics : BT.709
Matrix coefficients : BT.601
bframes,ReFrames 都比很多人建議的高很多,其它的設定值比較沒有很大的變化,
我不知道它設成這樣,會不會影響很大,這問題我疑惑很久,查了很多資料也不知道到底該參考誰的,
剛好看到大大發了此篇,故藉機請教一下。
ken670128 wrote:
bframes,ReFrames 都比很多人建議的高很多,其它的設定值比較沒有很大的變化
再次強調
使用 Preset 本來就必須搭配 Level 設定 或 ref 設定
VerySlow (很慢) 等同以下
ref=16:bframes=8:b-adapt=2:direct=auto:analyse=all:me=umh:merange=24:subme=10:trellis=2:rc-lookahead=60
通常我們不需要這麼高的 ref
所以使用 x264 preset 都會強制指定 ref 或是 Level
如果你設定了 Level,x264 會自動約束 ref 數量
ref 和 level、解析度之間的關係式我貼給你的x264介紹文裡有寫到
ref 過高會使 level 過高,也就是播放要求更高
而 ref > 5 或 bframes > 6 壓縮效率提升幅度已經很低且編碼速度還要更慢
所以一般建議 ref: 3 - 5, bframes: 3 - 6

對於一般使用而言僅需 Tune + Preset + 指定 Level 或 指定 ref
除了 ref 或 bframes 以外請不要手動更改其他進階設定,除非你了解你在做什麼
Preset 是 x264 開發者推薦的參數設定,比起到處道聽塗說來得可靠
內文搜尋

X