- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Intel-giant,
OS: Ubuntu 12.04
MediaSamples_Linux_6.0.16043175.175
MediaServerStudioEssentials2015R6
Platform: i5-4570S
I got the same messages as below in the local machine. Please help to clarify. Thanks
I have referred to https://software.intel.com/en-us/forums/intel-media-sdk/topic/543365.
[release] $ ./sample_decode_x11 h264 -i 1920x1088.264 ==> this is ok
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Decoding Sample Version 0.0.000.0000
Input video AVC
Output format YUV420
Resolution 1920x1088
Crop X,Y,W,H 0,0,0,0
Frame rate 30.00
Memory type system
MediaSDK impl hw
MediaSDK version 1.16
Decoding started
Frame number: 8117, fps: 701.897, fread_fps: 0.000, fwrite_fps: 0.000
Decoding finished
[release] $ pwd
/opt/intel/mediasdk/samples/__cmake/intel64.make.release/__bin/release
[_build] $ ./simple_session -hw ==> this is not ok
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
[_build] $ ./simple_decode -hw ==> this is not ok
error: source file name not set (mandatory)
[_build] $ ./simple_decode -hw 1920x1088.264 ==> this is not ok
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
[_build] $ pwd
/home/dspuser/Downloads/mediasdk-tutorials-0.0.3/_build
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
after trying with adding sudo to execute, it seems OK,
[_build] $ ./simple_session -hw
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
[_build] $ whoami
dspuser
[_build] $ sudo ./simple_session -hw
[sudo] password for dspuser:
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Implementation: HARDWARE API Version: 1.16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is your non-root user a member of the video group? That could explain why sudo/root makes a difference.
Also, for Generic installs (as for Ubuntu) you must set two environment variables:
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64 LIBVA_DRIVER_NAME=iHD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Jeffrey Mcallister super-man
Thanks for your response ~
Q1. Is your non-root user a member of the video group? That could explain why sudo/root makes a difference.
> from the following, I know I got the same right as video ~
[_build] $ whoami
dspuser
[_build] $ groups
dspuser adm cdrom sudo dip video plugdev lpadmin sambashare
Q2. Also, for Generic installs (as for Ubuntu) you must set two environment variables:
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64 LIBVA_DRIVER_NAME=iHD
[_build] $ ./simple_session -hw ==> it's not ok
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
[_build] $ cat /etc/environment ==> make sure recommended variable were filled in this file
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
http_proxy="http://10.100.1.20:8080/"
LD_LIBRARY_PATH="/usr/local/lib;/usr/lib64"
LIBVA_DRIVER_NAME=iHD
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
[_build] $ source /etc/environment ==> make the variable effective
[_build] $ export | grep LIBVA ==> verify if these variables were effective
declare -x LIBVA_DRIVERS_PATH="/opt/intel/mediasdk/lib64"
declare -x LIBVA_DRIVER_NAME="iHD"
[_build] $ ./simple_session -hw ==> still fail ~ I have no idea ??
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page