pkuvcl / xavs2

An open-source encoder of AVS2-P2/IEEE1857.4 video coding standard
GNU General Public License v2.0
234 stars 66 forks source link

xavs2编码错误? #10

Closed yaowangvrviu closed 5 years ago

yaowangvrviu commented 5 years ago

davs的build/linux目录中有一个test.avs2码流,使用这个码流做如下的测试:

  1. 先解码: davs2 -i test.avs2 -o test.yuv 执行正确 使用yuv软件,可以看到test.yuv的每一帧数据,看起来都正确
  2. 再编码: xavs2 --width=416 --height=240 --input=test.yuv --output=enc.avs2 可以执行结束,但有一行错误提示 f[a1i;l3e6dm xtavos 2r[eda]d: o n e9 8Y U(VF )f r3a3m e [ 1 0409/512007 3 73451.882046]8 40.9687 38.8869 8 [ 90 88]
  3. 再解码:davs2 -i enc.avs2 -o enc.yuv davs2 crash [davs2 debug]: Dec[ 1] 6274a0: discontinuous COI (prev: 90 --> curr: 90). Assertion failed!

Program: \build\linux\davs2.exe File: /source/common/decoder.cc, Line 294 Expression: curr == NULL || curr->frame->i_poc > pic->frame->i_poc This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

luofalei commented 5 years ago

看起来和 https://github.com/pkuvcl/davs2/issues/6 错误信息相同。

zhongyizengzy commented 5 years ago

看起来和 pkuvcl/davs2#6 错误信息相同。

已经发现问题了,xavs2编码器一定要输入编码的帧数才不会报错,只要不输入编码的帧数,就一定会报错,麻烦修复此BUG