gshORTON / webm

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

vp9 encode fails with illegal instruction #990

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Build at commit 4a29474c83289fe275ea17c887321353cca5e81a

Backtrace end:
#16 0x0000000000454c99 in vpx_codec_encode (ctx=ctx@entry=0x82e468, 
img=img@entry=0x7fffffffd290, pts=pts@entry=960, duration=duration@entry=40, 
flags=flags@entry=0, 
    deadline=<optimized out>) at ../vpx/src/vpx_encoder.c:223
#17 0x000000000040330f in encode_frame (global=0x7fffffffd230, 
global=0x7fffffffd230, global=0x7fffffffd230, frames_in=25, img=0x7fffffffd290, 
stream=0x82e0d0)
    at ../vpxenc.c:1607
#18 main (argc=<optimized out>, argv_=<optimized out>) at ../vpxenc.c:2132

cmd was 
run --codec=vp9 --fps=25000/1000 --passes=1 --end-usage=q --best --i420 -w 1280 
-h 720 --cq-level=8 --arnr-maxframes=15 --min-q=3 --max-q=15 --verbose 
--target-bitrate=0 --threads=1 --kf-max-dist=360 --auto-alt-ref=1 -o 
00007.MTS.webm /media/Data/tmp_ph/103MSDCF/BDMV/STREAM/in.yuv

Original issue reported on code.google.com by infer...@gmail.com on 23 Apr 2015 at 12:59

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ya...@google.com on 7 May 2015 at 10:24

GoogleCodeExporter commented 9 years ago
From the cpuinfo, avx2 is not supported on your machine. However, James just 
fixed a bug in libvpx's runtime cpu detection code. Could you please check the 
following patch out and give it a try?

commit  abff8b24b935f134fd6c09a659dcb2c3fd6a1051 (x86_simd_caps: check max cpuid 
before testing AVX2)

Thanks.

Original comment by yunqingw...@google.com on 7 May 2015 at 11:59

GoogleCodeExporter commented 9 years ago
Now it works. But shows same error when configured with 
--disable-runtime-cpu-detect

Original comment by infer...@gmail.com on 8 May 2015 at 1:45

GoogleCodeExporter commented 9 years ago
Great! You need the runtime cpu detection to turn on/off optimizations based on 
what are supported on your machine. If for some reason you don't want to enable 
it, you can turn off the optimizations yourself during configuration(for 
example, --disable-avx2). But, --enable-runtime-cpu-detect is recommended.

Original comment by yunqingw...@google.com on 8 May 2015 at 3:31