Bug 78078 - [BDW] Encoding failed with avcenc and mpeg2vaenc
Summary: [BDW] Encoding failed with avcenc and mpeg2vaenc
Status: CLOSED WORKSFORME
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-29 12:30 UTC by zhenxiang.li
Modified: 2014-07-16 01:53 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description zhenxiang.li 2014-04-29 12:30:09 UTC
Summary:
-----------------
It failed to encoding avc/mpeg2 files on master branch.
And it also failed on staging(latest commit) branch.

Env:
-----------------
Kernel: 3.15.0-rc2_drm-intel-fixes_ec3749_20140425
Libva:          (master)254f05c124094b544aaa2b92ed3bb17acf56e771
Libva_intel_driver:             (master)da837dc0334e95b77be7389771732494f6f3917a

Command line:
-----------------
/opt/X11R7/bin/avcenc 1280 720 /root/media_tools/encoder/encoderbitstreams/stockholm_1280x720_604.yuv stockholm_1280x720_604.yuv.enc.h264 qp=24 mode=0

Log and trace info:
-----------------
avcenc:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
avcenc: avcenc.c:180: create_encode_pipe: Assertion `0' failed.

Program received signal SIGABRT, Aborted.
0x000000372f035819 in raise () from /usr/lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-4.fc19.x86_64 libXfixes-5.0.1-1.fc19.x86_64
(gdb) bt
#0  0x000000372f035819 in raise () from /usr/lib64/libc.so.6
#1  0x000000372f036f28 in abort () from /usr/lib64/libc.so.6
#2  0x000000372f02e7f6 in __assert_fail_base () from /usr/lib64/libc.so.6
#3  0x000000372f02e8a2 in __assert_fail () from /usr/lib64/libc.so.6
#4  0x0000000000401d3a in create_encode_pipe () at avcenc.c:180
#5  main (argc=7, argv=<optimized out>) at avcenc.c:1631

mpeg2vaenc:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
mpeg2vaenc: mpeg2vaenc.c:848: mpeg2enc_alloc_va_resources: Assertion `0' failed.

Program received signal SIGABRT, Aborted.
0x000000372f035819 in raise () from /usr/lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-4.fc19.x86_64 libXfixes-5.0.1-1.fc19.x86_64
(gdb) bt
#0  0x000000372f035819 in raise () from /usr/lib64/libc.so.6
#1  0x000000372f036f28 in abort () from /usr/lib64/libc.so.6
#2  0x000000372f02e7f6 in __assert_fail_base () from /usr/lib64/libc.so.6
#3  0x000000372f02e8a2 in __assert_fail () from /usr/lib64/libc.so.6
#4  0x0000000000401fdf in mpeg2enc_alloc_va_resources (ctx=0x7fffffffd330) at mpeg2vaenc.c:848
#5  mpeg2enc_init (ctx=0x7fffffffd330) at mpeg2vaenc.c:947
#6  main (argc=<optimized out>, argv=<optimized out>) at mpeg2vaenc.c:1532
Comment 1 zhenxiang.li 2014-04-29 12:32:37 UTC
Sorry, I pasted the wrong log info, the following is right:

avcenc:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
avcenc: avcenc.c:178: create_encode_pipe: Assertion `0' failed.

Program received signal SIGABRT, Aborted.
0x000000372f035819 in raise () from /usr/lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-4.fc19.x86_64 libXfixes-5.0.1-1.fc19.x86_64
(gdb) bt
#0  0x000000372f035819 in raise () from /usr/lib64/libc.so.6
#1  0x000000372f036f28 in abort () from /usr/lib64/libc.so.6
#2  0x000000372f02e7f6 in __assert_fail_base () from /usr/lib64/libc.so.6
#3  0x000000372f02e8a2 in __assert_fail () from /usr/lib64/libc.so.6
#4  0x0000000000401d2a in create_encode_pipe () at avcenc.c:178
#5  main (argc=7, argv=<optimized out>) at avcenc.c:1637
Comment 2 zhenxiang.li 2014-04-29 12:49:12 UTC
Ok, after I reboot this machine, no reproduce again,.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.