johnsonspn
帖子: 8
注册时间: 2020-05-31 18:18

x265压制中的玄学错误

我在使用x265 Yuuki 3.0压制视频时每次都会出现同样的错误:fwrite() call failed when writing frame: (数字不固定), plane: 0, errno: 22,然后压制在中途停止。
vs脚本为:import vapoursynth as vs
import mvsfunc as mvf
import sys
import havsfunc as haf
core = vs.get_core(threads=16)
core.max_cache_size = 12000
result = core.imwri.Read(r"D:\1\%07d.png", firstnum = 0000000)

result = core.std.AssumeFPS(clip=result,fpsnum=24000,fpsden=1001)
result = mvf.ToYUV(result,css='420',depth=16)
result.set_output()
帧数量约为1000帧。

x265脚本为:vspipe --y4m "name.vpy" - | x265-10bit-full --y4m -D 10 --preset slower --deblock -1:-1 --ctu 64 --qg-size 8 --crf 17 --pbratio 1.2 --cbqpoffs -2 --crqpoffs -2 --no-sao --me 3 --subme 5 --merange 60 --b-intra --limit-tu 4 --ref 4 --weightb --keyint 360 --min-keyint 1 --bframes 6 --aq-mode 1 --aq-strength 0.8 --rd 5 --psy-rd 2.0 --psy-rdoq 1.0 --rdoq-level 2 --no-open-gop --rc-lookahead 80 --scenecut 40 --qcomp 0.65 --no-strong-intra-smoothing --output "EP01.hevc" -

硬件配置为AMD 3700x,DDR4 3600 16G,超频至3733mhz,NVIDIA RTX 2060 SUPER。
请问哪个部分出了问题?
johnsonspn
帖子: 8
注册时间: 2020-05-31 18:18

Re: x265压制中的玄学错误

另外:我尝试把内存频率降至2400mhz,仍然出现了此错误。
ATWoOA
帖子: 28
注册时间: 2016-08-02 19:55

Re: x265压制中的玄学错误

随便压个别的文件试试?还有换个别人的x265试试?信息太少看不出什么问题。
johnsonspn
帖子: 8
注册时间: 2020-05-31 18:18

Re: x265压制中的玄学错误

已经换过一个x265了
问题已经解决了,是内存不够大,我加了两条16g之后就一切正常了
我都不明白是优化太差还是源文件太大的原因

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