头像
neil_tohno
帖子: 28
注册时间: 2015-04-18 11:25

壓制什麼的,不太懂,求搭救

本人新手。

求幫忙看看有沒有問題。


今天用的就是 tmpgenc 5.0 的VFW 壓的,還有 筆記本一個 壓什麼藍光,只是為了壓了DVD 鏡像,空間可以騰出來很多。

今天又試了一個,壓了52mins,然後發現有很多 ringing,
咕~~(╯﹏╰)b
General
General
Unique ID : 184880916778139777454415291599154949484 (0x8B16C4F5E212FE2CBDBD67DA5FCDAD6C)
Complete name : D:\-X Cache-\Media_spl\Videos\ClariS - irony.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 156 MiB
Duration : 4mn 49s
Overall bit rate mode : Variable
Overall bit rate : 4 522 Kbps
Movie name : ClariS - irony_CM
Encoded date : UTC 2015-04-16 08:39:55
Writing application : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
Writing library : libebml v1.3.1 + libmatroska v1.4.2
DURATION : 00:04:49.257000000
NUMBER_OF_FRAMES : 3390
NUMBER_OF_BYTES : 39802301
_STATISTICS_WRITING_APP : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UT : 2015-04-16 08:39:55
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Video
ID : 1
Format : AVC
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
Width : 860 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original display aspect rat : 16:9
Frame rate mode : Variable
Original frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Title : TVアニメ『俺の妹がこんなに可愛いわけがない』OPテーマ「irony」
Writing library : x264 core 144 r2525bm 40bb568
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=50 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=13.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.50 / aq=1:0.60
Default : Yes
Forced : No
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Color range : Limited

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 4mn 49s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Title : ClariS - irony
Writing library : libFLAC 1.3.0 (UTC 2013-05-26)
Default : Yes
Forced : No

像NMM文档库,咱看了一些,那個整理的不錯,
其他實際一點的問題(如banding,ringing,aliasing,block,gain等)基本沒有解說,到哪裡去學?

咱學了一下參數,然後調了下,有其他建議,比如學習方向的,給點參考什麼的,感激。
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: 壓制什麼的,不太懂,求搭救

还是不太明白你要做什么。
如果只是为了节约空间的话,用x264进行二次压缩,把crf设得高一些即可。
不知道为什么要提到DVD?
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
neil_tohno
帖子: 28
注册时间: 2015-04-18 11:25

Re: 壓制什麼的,不太懂,求搭救

msg7086 写了:还是不太明白你要做什么。
如果只是为了节约空间的话,用x264进行二次压缩,把crf设得高一些即可。
不知道为什么要提到DVD?
嘛,實際只能壓壓DVD ,一個11年的筆記本而已,咱只有;壓了也只是為了收藏,希望質量好點。
2pass 的話,只會 megui 的 aoto 2pass,而且試了幾次效果很慘~很慘;說的不是2pass?

用的 crf=13.0,應該夠,其他參數也應該很重要的才是;DVD 也很多種都有,有時候發現壓出來的播放速度很奇怪,用megui。
也試過用megui 壓藍光的MV,畫面會出現 撕裂或者是 綠色的遮蔽物~


其實想用個 實用性強的參數,等遇到了別的問題再改 變參數去弄。
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: 壓制什麼的,不太懂,求搭救

我们先搞清楚几个问题
1. 你的原始素材是什么,以及内容是什么样类型的。
2. 你做了什么
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
neil_tohno
帖子: 28
注册时间: 2015-04-18 11:25

Re: 壓制什麼的,不太懂,求搭救

msg7086 写了:我们先搞清楚几个问题
1. 你的原始素材是什么,以及内容是什么样类型的。
2. 你做了什么
1.素材 [101020]TVアニメ『俺の妹がこんなに可愛いわけがない』OPテーマ「irony」[初回 的DVD_VIDEO 鏡像,音樂cm,
額,動畫
General
Complete name : G:\VIDEO_TS\VTS_01_1.VOB
Format : MPEG-PS
File size : 324 MiB
Duration : 4mn 49s
Overall bit rate mode : Variable
Overall bit rate : 9 391 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Format settings, picture st : Frame
Duration : 4mn 49s
Bit rate mode : Variable
Bit rate : 7 668 Kbps
Maximum bit rate : 8 264 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9

Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.740
Time code of first frame : 01:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Closed
Stream size : 264 MiB (82%)

Audio
ID : 189 (0xBD)-160 (0xA0)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Muxing mode : DVD-Video
Duration : 4mn 49s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 53.0 MiB (16%)

Menu
2.使用 TMPGEnc 5.0 導入該文件,
調整 aspect ratio 為 dispiay 16:9,調整 resize method 為 BiCubic,
軟件已經默認使用 Deiner lace 去反交錯,method 為 interpolation - adjusted,
選擇 輸出 格式 AVI file output,Vidoe only。
選擇 視頻輸出 x264vfw - H.264/MPEG-4 AVC codec (X264), 860x480, 29.97 fps,

調整 x264vfw 參數為

图片

測試發現 假如 輸出720x480 會出現 黑邊,於是輸出 860x480(16:9),

等待52minutes 。

其他 ClariS的DVD cm 同樣參數輸出,那一批 全毀了~

1.1
其中一個
[110202]TVアニメ『魔法少女まどか☆マギカ』OPテーマ「コネクト」[初回 的DVD 鏡像,
General
Complete name : G:\VIDEO_TS\VTS_01_1.VOB
Format : MPEG-PS
File size : 324 MiB
Duration : 4mn 47s
Overall bit rate mode : Variable
Overall bit rate : 9 452 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Format settings, picture st : Frame
Duration : 4mn 47s
Bit rate mode : Variable
Bit rate : 7 728 Kbps
Maximum bit rate : 8 264 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3

Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.746
Time code of first frame : 01:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Closed
Stream size : 265 MiB (82%)

Audio
ID : 189 (0xBD)-160 (0xA0)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Muxing mode : DVD-Video
Duration : 4mn 47s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 52.6 MiB (16%)

Menu
基本和上面 相同,只是輸出 x264vfw - H.264/MPEG-4 AVC codec (X264), 640x480, 29.97 fps

640x480(4:3)

輸出結果
General
Unique ID : 237980381262794388075833202310746277919 (0xB3095AAFCE1154E88E14B8B1CCDD081F)
Complete name : D:\-X Cache-\Media_spl\Videos\Claris - コネクト.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 152 MiB
Duration : 4mn 47s
Overall bit rate mode : Variable
Overall bit rate : 4 446 Kbps
Movie name : Claris - コネクト_cm
Encoded date : UTC 2015-04-16 13:04:05
Writing application : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
Writing library : libebml v1.3.1 + libmatroska v1.4.2
DURATION : 00:04:47.255000000
NUMBER_OF_FRAMES : 3367
NUMBER_OF_BYTES : 34909968
_STATISTICS_WRITING_APP : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UT : 2015-04-16 13:04:05
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Original frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Title : TVアニメ『魔法少女まどか☆マギカ』OPテーマ「コネクト」[初回
Writing library : x264 core 144 r2525bm 40bb568
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=50 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=13.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.50 / aq=1:0.60
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 4mn 47s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Title : Claris - コネクト
Writing library : libFLAC 1.3.1 (UTC 2014-11-25)
Language : Japanese
Default : Yes
Forced : No
lwjkk666
帖子: 321
注册时间: 2012-05-29 13:43

Re: 壓制什麼的,不太懂,求搭救

建议爬完论坛所有帖子,或者megui吧先入门
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: 壓制什麼的,不太懂,求搭救

OK,这样就清楚多了。

我这里列一下DVD压制的标准做法,以及对照一下你的做法,供参考。

首先第一步是从DVD中分离出要处理的影片。这步不知道你有没有做
用DVD Decrypter,将视频导出成VOB,而音频则直接解开为单独的文件。
若是PCM则导出成WAV,若是AC3则是AC3文件。

接着是DGIndex生成索引,并导入到AVS中。

AVS首先要做Deinterlace。这步你做了

然后按照DVD的规范,两边切掉各8像素。这步你应该没做
然后根据具体播放比例:
- 若是16:9的,则保持704x480输出,并且在x264里指定解码时的拉伸比例,设定SAR为40:33。这步你直接拉成16:9了
- 若是4:3的,则缩小至640x480输出。这步你做了

AVS中可以根据实际情况加入一些画面处理滤镜,不过这是后话了。
先等你把基础步骤做对了再研究进阶部分吧。

AVS写完以后就是送x264压。
H.264属于MPEG4规范,其中使用的比较新的技术已经不再由VFW和AVI支持了。
因此使用AVI来封装,并使用VFW接口来压制,是大忌
直接调用命令行版本的x264直接压成MP4封装即可。

x264的参数设定应当根据自己的需要来添加。
直接复制别人的参数而没有理解其含义是大忌。
对于新手来说,--preset slow --tune film (真人) 或者 --tune animation (CG动画),再配上控制质量的 --crf XX 就已经足够。
微调参数是进阶部分,对于压片经验不足一年的人来说,完全可以选择跳过。
你写的参数设定里,像是min-keyint 23或者opengop或者bt701或者ref16都是有不少问题的。
因此建议改用官方设定的默认参数套件。

这样处理完以后会得到视频文件.mp4以及音频文件.ac3 / .wav。
AC3可以直接原样保留,WAV可以根据需要用qaac压制成AAC,也可以压制成FLAC无损。
最后用MKVToolnix工具把他们合并成MKV就行了。
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
neil_tohno
帖子: 28
注册时间: 2015-04-18 11:25

Re: 壓制什麼的,不太懂,求搭救

x264的参数设定应当根据自己的需要来添加。
直接复制别人的参数而没有理解其含义是大忌。
对于新手来说,--preset slow --tune film (真人) 或者 --tune animation (CG动画),再配上控制质量的 --crf XX 就已经足够。
微调参数是进阶部分,对于压片经验不足一年的人来说,完全可以选择跳过。
你写的参数设定里,像是min-keyint 23或者opengop或者bt701或者ref16都是有不少问题的。
因此建议改用官方设定的默认参数套件。

額,其實 參數是這樣在哪來的 剛剛看了一下,
在 megui 使用x264,先load defaults ,配置 very slow(ref16、bframes8、subme 10、rc-lookahead 60、merange 24 自然出來啦),接著使用 tune animation 就是咱現在的參數,
額,其實就是這樣子,毫無違和感~

program --preset veryslow --tune animation --crf 13.0 --output "output" "input"

使用megui測試壓制一次「irony」cm
用 megui 的 AviSynth script creator 寫 的結果 (咱只會這個),

嘛,看到 http://matome.naver.jp/odai/21355298841 ... 6962005403
wiki http://ja.wikipedia.org/wiki/%E3%83%94% ... 8%E6%AF%94
# Set DAR in encoder to 41 : 23. The following line is for automatic signalling
global MeGUI_darx = 41
global MeGUI_dary = 23
LoadPlugin("D:\Program Files\mad\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\-X Cache-\Media_spl\Videos-in\VTS_01_1.d2v", cpu=4, info=3)
LoadPlugin("D:\Program Files\mad\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("D:\Program Files\mad\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(mode=1,hybrid=1)
crop(8, 0, -8, 0)
#resize
#denoise
使用 x264 參數開始壓制:
program --preset veryslow --tune animation --crf 13.0 --ipratio 1.5 --pbratio 1.2 --sar 40:33 --output "output" "input"

輸出結果:
General
Unique ID : 247329399413321319115240686291352270649 (0xBA11E8DE8B1B9287B5F9D3C9A6A7B739)
Complete name : D:\-X Cache-\Media_spl\Videos\ClariS - irony_CM.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 121 MiB
Duration : 4mn 49s
Overall bit rate mode : Variable
Overall bit rate : 3 521 Kbps
Movie name : ClariS - irony_CM
Encoded date : UTC 2015-04-19 14:51:11
Writing application : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
Writing library : libebml v1.3.1 + libmatroska v1.4.2
DURATION : 00:04:49.257000000
NUMBER_OF_FRAMES : 3390
NUMBER_OF_BYTES : 39802301
_STATISTICS_WRITING_APP : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UT : 2015-04-19 14:51:11
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 4mn 49s
Width : 704 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Title : TVアニメ『俺の妹がこんなに可愛いわけがない』OPテーマ「irony」
Writing library : x264 core 146 r2538 121396c
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=13.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.50 / aq=1:0.60
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 4mn 49s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Title : ClariS - irony
Writing library : libFLAC 1.3.0 (UTC 2013-05-26)
Default : Yes
Forced : No
微調和 濾鏡 也說說,其實咱也學了很多參數了~
上次由 neil_tohno 在 2015-04-19 22:53,总共编辑 2 次。
lwjkk666
帖子: 321
注册时间: 2012-05-29 13:43

Re: 壓制什麼的,不太懂,求搭救

DVD的话,CRF给到18已经很奢侈了
头像
neil_tohno
帖子: 28
注册时间: 2015-04-18 11:25

Re: 壓制什麼的,不太懂,求搭救

lwjkk666 写了:DVD的话,CRF给到18已经很奢侈了
是這樣。

借樓發結果圖,結果還是有ringing,或者視頻源本來就糟糕,壓制有放大了問題,加 deblock=1:2:2 結果比較好樣?

图片
图片
图片
图片
图片
图片
图片
图片
图片

回到 “理论讨论 / Theoratical discussion”