NMM视频技术(旧)

 找回密码
 成为会员
搜索
查看: 6311|回复: 6

[AVC(H.264)] rc-lookahead引起的malloc fail

[复制链接]
发表于 2009-10-9 04:52 | 显示全部楼层 |阅读模式
似乎随意override默认的rc-lookahead值(调高)极容易让x264报malloc fail或者encoder fail的错误,而且这种现象在1080的源外加比较蛋疼的avs滤镜时特别明显,rev 1259和1271皆会发生。具体等晚上上课回来看看有没时间贴图...

个人估计是生成mbtree时做的预测过程对内存分配欠考虑所致。
发表于 2009-10-9 07:53 | 显示全部楼层
这几天用1271压了好几个实写,rc-lookahead 50,没出现过这种情况。
AVS里面全都有EP的TempGaussMC_beta1mod,704x396,内存使用维持在400M左右。
 楼主| 发表于 2009-10-9 10:05 | 显示全部楼层
嗯 396的分辨率有点小了 而且rc-lookahead也没我ep啊
 楼主| 发表于 2009-10-9 10:08 | 显示全部楼层
本帖最后由 akiduki 于 2009-10-9 10:14 编辑
  1. x264_1271 --profile main --level 4.1 --pass 1 --crf 18 --stats "ep01.stats" --rc-lookahead 100 --keyint 240 --min-keyint 1 --ref 4 --bframes 8 --no-fast-pskip --b-adapt 2 --direct auto --deblock -1:-1 --subme 10 --trellis 2 --psy-rd 0.3:0 --partitions none --qcomp 0.5 --qpmax 40 --vbv-bufsize 20000 --vbv-maxrate 17000 --me tesa --merange 64 --thread-input --no-dct-decimate --sar 1:1 -o NUL ep01.avs
复制代码
这是我某个ep的case
avs里用了fft3dgpu和gradfun2dbmod
发表于 2009-10-9 10:26 | 显示全部楼层
我压1080的QB04,1pass,--rc-lookahead 100,总是会包VBV underflow错误

  1. x264 [warning]: VBV underflow (frame 32288, -378921 bits):06:52
  2. x264 [warning]: VBV underflow (frame 32289, -694819 bits)
  3. x264 [warning]: VBV underflow (frame 33281, -138170 bits):03:13
  4. x264 [warning]: VBV underflow (frame 33282, -225795 bits)
  5. x264 [warning]: VBV underflow (frame 33283, -329547 bits)
  6. x264 [warning]: VBV underflow (frame 33284, -425259 bits)
  7. x264 [warning]: VBV underflow (frame 33287, -237298 bits)
  8. x264 [warning]: VBV underflow (frame 33288, -74979 bits)
复制代码
1281和1268都会出现,不过不太一样
发表于 2009-10-9 18:07 | 显示全部楼层
把--rc-lookahead降到了50,没有再出这个warning 囧
发表于 2009-10-12 22:39 | 显示全部楼层
本帖最后由 hdfuck 于 2009-10-12 22:41 编辑

压过几个720P,没有出现过问题.
x264-1281
内存2G
  1. program --profile high --pass 2 --bitrate 6000 --stats ".stats" --level 5.1 --ref 5 --no-fast-pskip --b-adapt 2 --direct auto --deblock -3:-3 --subme 9 --trellis 2 --psy-rd 1.0:0.2 --partitions p8x8,b8x8,i4x4,i8x8 --vbv-bufsize 50000 --vbv-maxrate 50000 --me umh --merange 32 --thread-input --no-dct-decimate --psnr --ssim --output "output" "input" --rc-lookahead 150
复制代码
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

小黑屋|手机版|NMM视频技术

GMT+8, 2025-5-5 22:47 , Processed in 0.354786 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表