头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Crop&Resize

ibud 写了:
msg7086 写了:
ibud 写了:好像不支持 --vf
暂时还不。我在考虑要不要加上。
希望能加入crop和resize的支持,造福裸压党
烦请测试 https://down.7086.in/x264_Yuuki/ 最新版本

语法为 --vf zimg:crop(4,0,-4,0)lanczos(1280,720)

crop是设定切边。
point, bilinear, bicubic, spline16, spline36, lanczos是设定Resize。
有些像bicubic的可以指定第3、4个参数。
基本用法和AVS里的Resizer类似。
注意,crop和resize的先后次序并无关系。总是先crop后resize,不管你怎么写。
不crop或者不resize的可以省略不需要的部分。

请测试后反馈,谢谢。
上次由 msg7086 在 2015-04-19 18:35,总共编辑 1 次。
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
upyzl
帖子: 446
注册时间: 2010-12-25 18:44
来自: 湘/京
联系: 网站

Re: x265 - Yuuki变异版 (Unstable=1.6+204+XX)

1.6+236+12
tune lp/lp++
param->rdLevel = 5 没有生效...
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: x265 - Yuuki变异版 (Unstable=1.6+204+XX)

upyzl 写了:1.6+236+12
tune lp/lp++
param->rdLevel = 5 没有生效...
我查了一下更改记录,应该是LP后来特别把rdlevel改回3了,但是帖子说明里没有更新。
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
讨厌的西红柿
帖子: 5
注册时间: 2015-04-22 17:57

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

这个版本的X265命令格式有变化?
我替换掉MEGUI的X265后,无法运行。。。。
用avs4x265也一样,
工作命令:
Job commandline:
"F:\压制\视频\MeGUI_2525_x86\tools\x265\avs4x265.exe" --x265-binary "F:\压制\视频\MeGUI_2525_x86\tools\x265\x64\x265.exe" --level-idc 5.1 --me 2 --subme 3 --merange 28 --no-open-gop --keyint 480 --bframes 12 --weightb --ref 8 --rc-lookahead 128 --crf 22.0 --cbqpoffs -2 --crqpoffs -2 --psy-rd 0.55 --qcomp 0.75 --aq-mode 2 --aq-strength 0.75 --cu-lossless --deblock=-1:-1 --no-sao --psnr --ssim --colormatrix bt709 --output "D:\Raw片源\Nisekoi 2 - 02.hevc" "D:\Raw片源\Nisekoi 2 - 02.mp4.avs"


从logs找到的错误信息
non-conformant bitstreams not allowed (--allow-non-conformance)
[error]: failed to open encoder
[error]: Error occurred while writing frame 1
(Maybe x265.exe closed)
Process exits with error: 2
fch1993
帖子: 213
注册时间: 2012-06-12 11:56

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

讨厌的西红柿 写了:这个版本的X265命令格式有变化?
我替换掉MEGUI的X265后,无法运行。。。。
用avs4x265也一样,
工作命令:
Job commandline:
"F:\压制\视频\MeGUI_2525_x86\tools\x265\avs4x265.exe" --x265-binary "F:\压制\视频\MeGUI_2525_x86\tools\x265\x64\x265.exe" --level-idc 5.1 --me 2 --subme 3 --merange 28 --no-open-gop --keyint 480 --bframes 12 --weightb --ref 8 --rc-lookahead 128 --crf 22.0 --cbqpoffs -2 --crqpoffs -2 --psy-rd 0.55 --qcomp 0.75 --aq-mode 2 --aq-strength 0.75 --cu-lossless --deblock=-1:-1 --no-sao --psnr --ssim --colormatrix bt709 --output "D:\Raw片源\Nisekoi 2 - 02.hevc" "D:\Raw片源\Nisekoi 2 - 02.mp4.avs"


从logs找到的错误信息
non-conformant bitstreams not allowed (--allow-non-conformance)
[error]: failed to open encoder
[error]: Error occurred while writing frame 1
(Maybe x265.exe closed)
Process exits with error: 2
使用这个替换avs4x265之后呢?

http://tmod.nmm-hd.org/avs4x26x/
讨厌的西红柿
帖子: 5
注册时间: 2015-04-22 17:57

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

还是不行,错误代码还是:

[warning]: Specifying a decoder level with constant rate factor rate-control requires
[warning]: enabling VBV with vbv-bufsize=40000kb vbv-maxrate=40000kbps. VBV outputs are non-deterministic!
x265 [info]: Lowering max references to 7 to meet numPocTotalCurr requirement
[Warning] x265 [warning]: level 5 detected, but NumPocTotalCurr (total references) is non-compliant
x265 [info]: NONE profile, Level-NONE (Main tier)
x265 [info]: non-conformant bitstreams not allowed (--allow-non-conformance)
[Error] x265 [error]: failed to open encoder
[Information] avs [info]: AviSynth+ 0.1 (r1576, x86)
[Information] avs [info]: Video colorspace: YV12
[Information] avs [info]: Video resolution: 1920x1080
[Error] avs [error]: Error occurred while writing frame 1
[Information] (Maybe x26x closed)
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

x265 [info]: non-conformant bitstreams not allowed (--allow-non-conformance)

ref8与level5不兼容,应该是你写的参数冲突了。
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
讨厌的西红柿
帖子: 5
注册时间: 2015-04-22 17:57

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

msg7086 写了:x265 [info]: non-conformant bitstreams not allowed (--allow-non-conformance)

ref8与level5不兼容,应该是你写的参数冲突了。
谢谢。
可能是以前的X265用ref 8都可以,忽略了这个问题。按你说得将ref调为5后,可以正常运行了。

另问两个问题:
1. 如果要调高ref超过8的话,是不是该用level 6.1?

2. --opts=0,1,2,3
这里的0,1,2,3差别是什么?
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: x265 - Yuuki变异版 (Unstable=1.6+239+XX)

讨厌的西红柿 写了:谢谢。
可能是以前的X265用ref 8都可以,忽略了这个问题。按你说得将ref调为5后,可以正常运行了。

另问两个问题:
1. 如果要调高ref超过8的话,是不是该用level 6.1?

2. --opts=0,1,2,3
这里的0,1,2,3差别是什么?
1. 我重新读了一下源代码。
源代码里写的是 param.maxNumReferences + vps.numReorderPics 不能超过8。
其中 vps.numReorderPics = (param.bBPyramid && param.bframes > 1) ? 2 : !!param.bframes
所以如果你用了b-pyramid和bframes,那么ref就只能开到6了。
这应该是硬性限制了,没法再加了。

2. 1=写入x265版本。2=写入编码参数。0=都不写。3=都写。
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

\304/

更新到304
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない

回到 “视频编码器 / Video encoder discussion”