Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

vp9_entropymv.c Line 95 assert on garden video #595

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected behavior?
Encodes

What do you see instead?
Assertion failed!

Program: c:\bin\vpxenc_jul27.exe
File: ../libvpx/vp9/common/vp9_entropymv.c, Line 95

Expression: 0

What version are you using?
July 27
vp9    - WebM Project VP9 Encoder v1.2.0-3772-g118ccdc

On what operating system?
Win64 cross build running on Windows7

Can you reproduce using the vpxdec or vpxenc tools?
Yes

What command line are you using?
vpxenc -w 4096 -h 2304 --fps=24000/1001 --target-bitrate=6000 
garden.4096x2304_24Hz_P420.yuv -o garden0.tmp.vp9.webm --fpf=garden_vp9.fpf -p 
2 --pass=2 --codec=vp9 --good --cpu-used=0 --lag-in-frames=25 --min-q=0 
--max-q=63 --end-usage=vbr --auto-alt-ref=1 --kf-max-dist=9999 --kf-min-dist=0 
--drop-frame=0 --static-thresh=0 --bias-pct=50 --minsection-pct=0 
--maxsection-pct=2000 --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3 
--sharpness=0 --undershoot-pct=100 -v --psnr 

Pass 2/2 frame    1/0          0B       0 us 1.#J ms/f [ETA  unknown] 
Pass 2/2 frame    2/0          0B   16191 us 123.53 fps [ETA  unknown] 
Pass 2/2 frame    3/0          0B   25587 us 117.25 fps [ETA  unknown] 
Pass 2/2 frame    4/0          0B   34966 us 114.40 fps [ETA  unknown] 
Pass 2/2 frame    5/0          0B   44117 us 113.33 fps [ETA  unknown] 
Pass 2/2 frame    6/0          0B   52962 us 113.29 fps [ETA  unknown] 
Pass 2/2 frame    7/0          0B   61817 us 113.24 fps [ETA  unknown] 
Pass 2/2 frame    8/0          0B   70447 us 113.56 fps [ETA  unknown] 
Pass 2/2 frame    9/0          0B   79404 us 113.34 fps [ETA  unknown] 
Pass 2/2 frame   10/0          0B   88091 us 113.52 fps [ETA  unknown] 
Pass 2/2 frame   11/0          0B   96686 us 113.77 fps [ETA  unknown] 
Pass 2/2 frame   12/0          0B  105604 us 113.63 fps [ETA  unknown] 
Pass 2/2 frame   13/0          0B  114255 us 113.78 fps [ETA  unknown] 
Pass 2/2 frame   14/0          0B  122972 us 113.85 fps [ETA  unknown] 
Pass 2/2 frame   15/0          0B  131648 us 113.94 fps [ETA  unknown] 
Pass 2/2 frame   16/0          0B  140310 us 114.03 fps [ETA  unknown] 
Pass 2/2 frame   17/0          0B  149009 us 114.09 fps [ETA  unknown] 
Pass 2/2 frame   18/0          0B  157645 us 114.18 fps [ETA  unknown] 
Pass 2/2 frame   19/0          0B  166397 us 114.18 fps [ETA  unknown] 
Pass 2/2 frame   20/0          0B  175236 us 114.13 fps [ETA  unknown] 
Pass 2/2 frame   21/0          0B  183962 us 114.15 fps [ETA  unknown] 
Pass 2/2 frame   22/0          0B  192856 us 114.07 fps [ETA  unknown] 
Pass 2/2 frame   23/0          0B  201447 us 114.17 fps [ETA  unknown] 
Pass 2/2 frame   24/0          0B  210155 us 114.20 fps [ETA  unknown] 
Pass 2/2 frame   25/0          0B  220331 us 113.47 fps [ETA  unknown] 
38.398 38.513 37.715 38.694  516727F
Pass 2/2 frame   26/1     516727B   75307 ms 2896.44 ms/f [ETA 57:00:12] 
38.394 38.413 37.875 38.895  710429F
Pass 2/2 frame   27/2    1227156B  167045 ms 6186.89 ms/f [ETA 57:41:32] 
38.388 38.388 37.869 38.977  272407F
Pass 2/2 frame   28/3    1499563B  293590 ms 10485.36 ms/f [ETA 59:18:32] 
38.253 38.268 37.738 38.773  310951F
Pass 2/2 frame   29/4    1810514B  425888 ms 14685.82 ms/f [ETA 61:18:25] 
38.150 38.146 37.684 38.690  299226F
Pass 2/2 frame   30/5    2109740B  554930 ms 18497.68 ms/f [ETA 63:25:14] 
38.234 38.236 37.755 38.762  304924F
Pass 2/2 frame   31/6    2414664B  685984 ms 22128.55 ms/f [ETA 65:34:44] 
38.317 38.334 37.788 38.847  287242F
Pass 2/2 frame   32/7    2701906B  815647 ms 25488.99 ms/f [ETA 67:42:51] 
38.366 38.373 37.829 38.949  256323F
Pass 2/2 frame   33/8    2958229B  944424 ms 28618.93 ms/f [ETA 69:47:16] 
38.341 38.348 37.840 38.880  262903F
Pass 2/2 frame   34/9    3221132B 1070877 ms 31496.40 ms/f [ETA 71:45:51] 
38.263 38.269 37.789 38.767  281259F
Pass 2/2 frame   35/10   3502391B 1195408 ms 34154.52 ms/f [ETA 73:37:13] 
38.177 38.140 37.777 38.783  250700F
Pass 2/2 frame   36/11   3753091B 1325589 ms 36821.92 ms/f [ETA 75:23:10] 
38.273 38.215 37.864 38.991  235261F
Pass 2/2 frame   37/12   3988352B 1458741 ms 39425.43 ms/f [ETA 77:04:13] 
38.355 38.403 37.735 38.860    1796F
Pass 2/2 frame   38/13   3990148B 1676431 ms 44116.61 ms/f [ETA 79:05:29] 
38.288 38.285 37.781 38.878  699946F
Pass 2/2 frame   39/14   4690094B 1804693 ms 46274.20 ms/f [ETA 80:56:35] 
38.135 38.135 37.663 38.667  301353F
Pass 2/2 frame   40/15   4991447B 1936095 ms 48402.38 ms/f [ETA 82:38:40] 
38.030 37.998 37.622 38.627  283499F
Pass 2/2 frame   41/16   5274946B 2065434 ms 50376.45 ms/f [ETA 84:11:30] 
38.033 38.004 37.612 38.627  277851F
Pass 2/2 frame   42/17   5552797B 2194921 ms 52260.04 ms/f [ETA 85:35:32] 
37.971 37.928 37.585 38.590  279673F
Pass 2/2 frame   43/18   5832470B 2322789 ms 54018.37 ms/f [ETA 86:50:53] 
37.988 37.952 37.591 38.589  284423F
Pass 2/2 frame   44/19   6116893B 2451986 ms 55726.97 ms/f [ETA 87:58:29] 
38.140 38.099 37.729 38.785  275107F
Pass 2/2 frame   45/2
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
0   6392000B 2579742 ms 57327.61 ms/f [ETA 88:58:35] 38.385 38.368 37.936 
38.963  251597F
Pass 2/2 frame   46/21   6643597B 2706106 ms 58828.39 ms/f [ETA 89:51:28] 
38.479 38.452 38.024 39.113  226356F
Pass 2/2 frame   47/22   6869953B 2830126 ms 60215.46 ms/f [ETA 90:37:21] 
38.500 38.458 38.071 39.167  183867F
Pass 2/2 frame   48/23   7053820B 2949655 ms 61451.16 ms/f [ETA 91:15:53] 
39.296 39.449 38.495 39.585     323F
Pass 2/2 frame   49/24   7054143B 3287983 ms 67101.70 ms/f [ETA 92:32:09] 
38.257 38.195 37.828 39.020  698718F
Pass 2/2 frame   50/25   7752861B 3411876 ms 68237.54 ms/f [ETA 93:37:57] 
38.036 37.992 37.623 38.689  291210F
Pass 2/2 frame   51/26   8044071B 3538693 ms 69386.15 ms/f [ETA 94:34:49] 
38.016 37.957 37.630 38.711  258231F
Pass 2/2 frame   52/27   8302302B 3665981 ms 70499.64 ms/f [ETA 95:23:42] 
38.191 38.134 37.768 38.925  238561F
Pass 2/2 frame   53/28   8540863B 3789568 ms 71501.29 ms/f [ETA 96:04:45] 
38.321 38.296 37.862 38.951  253762F
Pass 2/2 frame   54/29   8794625B 3911079 ms 72427.41 ms/f [ETA 96:38:28] 
38.317 38.296 37.864 38.918  253487F
Pass 2/2 frame   55/30   9048112B 4034644 ms 73357.18 ms/f [ETA 97:06:03] 
38.140 38.071 37.772 38.854  240441F
Pass 2/2 frame   56/31   9288553B 4152903 ms 74158.99 ms/f [ETA 97:27:24] 
37.964 37.892 37.625 38.663  254943F
Pass 2/2 frame   57/32   9543496B 4279060 ms 75071.24 ms/f [ETA 97:44:39] 
38.070 38.023 37.661 38.738  244750F
Pass 2/2 frame   58/33   9788246B 4404976 ms 75947.87 ms/f [ETA 97:58:19] 
38.253 38.209 37.823 38.930  200299F
Pass 2/2 frame   59/34   9988545B 4528731 ms 76758.16 ms/f [ETA 98:08:30] 
Assertion failed!

Program: c:\bin\vpxenc_jul27.exe
File: ../libvpx/vp9/common/vp9_entropymv.c, Line 95

Expression: 0
vpxenc -w 4096 -h 2304 --fps=24000/1001 --target-bitrate=6000 
garden.4096x2304_24Hz_P420.yuv -o garden0.tmp.vp9.webm --fpf=garden_vp9.fpf -p 
2 --pass=2 --codec=vp9 --good --cpu-used=0 --lag-in-frames=25 --min-q=0 
--max-q=63 --end-usage=vbr --auto-alt-ref=1 --kf-max-dist=9999 --kf-min-dist=0 
--drop-frame=0 --static-thresh=0 --bias-pct=50 --minsection-pct=0 
--maxsection-pct=2000 --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3 
--sharpness=0 --undershoot-pct=100 -v --psnr

Please provide any additional information below.
Did a clean rebuild, recreating the fpf and yuv files, and it reproduces 
consistently.
Took 1.39 hrs into the 2nd pass transcode to fail.
Works okay with Jun14 master build - VP9 Encoder v1.2.0-3097-g0b7910b

Original issue reported on code.google.com by fbarch...@google.com on 30 Jul 2013 at 12:42

GoogleCodeExporter commented 8 years ago
Built and tested with current head on Linux, the encoding went ok. Further 
tests are being done on windows, results pending. 

Original comment by ya...@google.com on 31 Jul 2013 at 5:09

GoogleCodeExporter commented 8 years ago

Original comment by ya...@google.com on 31 Jul 2013 at 5:10

GoogleCodeExporter commented 8 years ago
Tested with windows build: cygwin+vs2012. The encoding has gone through to 
frame 250 without any issue. 

Original comment by ya...@google.com on 31 Jul 2013 at 2:40

GoogleCodeExporter commented 8 years ago
Frank, can you let me know how you built vpxenc.exe? It could have been the 
issue is specific to the build you had. Thanks.

Original comment by ya...@google.com on 31 Jul 2013 at 2:42

GoogleCodeExporter commented 8 years ago
# master
cd ~/on2
rm -rf libvpx
git clone http://git.chromium.org/webm/libvpx.git

rm -rf win64
mkdir win64
cd win64
CROSS=x86_64-w64-mingw32- ../libvpx/configure --target=x86_64-win64-gcc 
--enable-experimental --enable-static-msvcrt --disable-install-docs 
--disable-unit-tests --disable-docs
make -i V=1

Original comment by fbarch...@google.com on 31 Jul 2013 at 8:07

GoogleCodeExporter commented 8 years ago
Removing --enable-experimental a crash still occurs

e:\mediatests\garden>timex ..\vpxenc -w 4096 -h 2304 --fps=24000/1001 
--target-bitrate=6000 garden.4096x2304_24Hz_P420.yuv -o garden0.tmp.vp9.
webm --fpf=garden_vp9.fpf -p 2 --pass=2 --codec=vp9 --good --cpu-used=0 
--lag-in-frames=25 --min-q=0 --max-q=63 --end-usage=vbr --auto-alt-ref
=1 --kf-max-dist=9999 --kf-min-dist=0 --drop-frame=0 --static-thresh=0 
--bias-pct=50 --minsection-pct=0 --maxsection-pct=2000 --arnr-maxframes
=7 --arnr-strength=5 --arnr-type=3 --sharpness=0 --undershoot-pct=100 -v --psnr
Pass 2/2 frame   45/29   6116893B 2322940 ms 52794.09 ms/f [ETA 83:07:37] 
38.140 38.099 37.729 38.785  275107F
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Pass 2/2 frame   59/34   9988545B 4347467 ms 73685.89 ms/f [ETA 93:45:46] 
Assertion failed!

Program: c:\bin\vpxenc_jul31.exe
File: ../libvpx/vp9/common/vp9_entropymv.c, Line 95

Expression: 0

It does not occur if I turn off alt ref.
It does not occur with cpu used of 1 or 2, but does with 0.

Original comment by fbarch...@google.com on 2 Aug 2013 at 5:09

GoogleCodeExporter commented 8 years ago
Yaowu is this something you are working on?   Can we close this?

Original comment by jimbankoski@google.com on 22 Aug 2013 at 1:27

GoogleCodeExporter commented 8 years ago
Issue no longer reproduces with vpxenc built aug 24 VP9 Encoder 
v1.2.0-4110-g66ccf5d

Original comment by fbarch...@google.com on 27 Aug 2013 at 4:21

GoogleCodeExporter commented 8 years ago
Thank you very much for the update, Frank. 
There were a number of bug fixes merged, it appears that they, (I suspect the 
ones limit mv search range into borders), might have fixed the underline issue 
for your particular build. 

Let's close this for now.

Original comment by ya...@google.com on 27 Aug 2013 at 4:40

GoogleCodeExporter commented 8 years ago
Please re-open... I've repro'ed it with cpu-used=5 with aug 24 version:

vpxenc -w 4096 -h 2304 --fps=24000/1001 --target-bitrate=6000 
garden.4096x2304_24Hz_P420.yuv -o garden0.tmp1.vp9
.webm --fpf=garden_vp9.fpf -p 2 --pass=2 --codec=vp9 --good --cpu-used=5 
--lag-in-frames=25 --min-q=0 --max-q=63 --end-usage=vbr --auto-alt-re
f=1 --kf-max-dist=9999 --kf-min-dist=0 --drop-frame=0 --static-thresh=0 
--bias-pct=50 --minsection-pct=0 --maxsection-pct=2000 --arnr-maxframe
s=7 --arnr-strength=5 --arnr-type=3 --sharpness=0 --undershoot-pct=100 -v --psnr
Pass 2/2 frame   70/45   12873967B 5728594 ms 81837.06 ms/f [ETA 94:08:28] 
←[KAssertion failed!611 38.643  189836F

Program: c:\bin\vpxenc_aug24.exe
File: ../libvpx/vp9/common/vp9_entropymv.c, Line 95

Expression: 0

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Original comment by fbarch...@chromium.org on 27 Aug 2013 at 6:18

GoogleCodeExporter commented 8 years ago
The command line appears to have only the 2nd pass, can you double check and 
make sure that the first pass is running on same length of input video as the 
second pass? 

Original comment by ya...@google.com on 28 Aug 2013 at 12:23

GoogleCodeExporter commented 8 years ago
The issue appears to be fixed in sept 6 version, VP9 Encoder 
v1.2.0-4213-gd1268c5

Pass 2/2 frame  681/656  38272025B 38372958 ms 56347.48 ms/f [ETA 33:43:49] 
45.707 44.610 48.638 50.376   13869F

Original comment by fbarch...@google.com on 10 Sep 2013 at 5:11