Chen-tao / webm

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

segmentation fault when kf-min-dist=kf-max-dist in vp9 #564

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected behavior? What do you see instead?
=======================================================

I want to force keyframes every 48th frame by setting --kf-min-dist=48 
--kf-max-dist=48. This works well in vp8, for instance using

vpxenc in.yuv -o out.webm -w 416 -h 240 --limit=150 --fps=50/1 --i420 --best 
--cq-level=20 --min-q=0 --max-q=63 -p 2 --kf-min-dist=48 --kf-max-dist=48 
--auto-alt-ref=1 --lag-in-frames=16 -t 1 --token-parts=0 --end-usage=cq 
--codec=vp8

But when using vp9 this produces a segmentation fault;

vpxenc in.yuv -o out.webm -w 416 -h 240 --limit=150 --fps=50/1 --i420 --best 
--cq-level=20 --min-q=0 --max-q=63 -p 2 --kf-min-dist=48 --kf-max-dist=48 
--auto-alt-ref=1 --lag-in-frames=16 -t 1 --token-parts=0 --end-usage=cq 
--codec=vp9

results in

Pass 1/2 frame  150/151    22952B    1224b/f   61205b/s 1307131 us (114.76 fps)
Pass 2/2 frame   76/60     47246B  102758 ms 1352.08 ms/f [ETA  0:02:34]       6
 [main] vpxenc 11136 exception::handle: Error while dumping state (probably corr
upted stack)
Segmentation fault (core dumped)

What version are you using? On what operating system?
=====================================================

I am running vp9 on Cygwin under Windows 7.

Used versions of vp8/vp9
vp8    - WebM Project VP8 Encoder v1.2.0-1612-g2bf563c
vp9    - WebM Project VP9 Encoder v1.2.0-1612-g2bf563c

Git Commit-Id: 2bf563c335faf8f52571aad8c36c1cb841d4861f

Can you reproduce using the vpxdec or vpxenc tools? What command line are
you using?

See above.

Please provide any additional information below.

Original issue reported on code.google.com by jacob.st...@gmail.com on 25 Mar 2013 at 1:32

GoogleCodeExporter commented 9 years ago
I tried to reproduce this, but I suspect it's material dependent -- can you 
provide a link to your in.yuv file (the first 150 frames are ok) ?

Original comment by jkoles...@google.com on 26 Mar 2013 at 4:40

GoogleCodeExporter commented 9 years ago
Disregard that, I have a repro case.

Original comment by jkoles...@google.com on 26 Mar 2013 at 5:23

GoogleCodeExporter commented 9 years ago
Hi,

Has there been any progress on this? I ran the latest version of webm but get 
an assert fail on line 60 of vp9_pred_common.c:

      assert(left_interp != -1);

Best Regards,

-Jacob

Original comment by jacob.st...@gmail.com on 5 Jul 2013 at 11:34