- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi there,
OS: Ubuntu 12.04
MediaSamples_Linux_6.0.16043175.175
MediaServerStudioEssentials2015R6
Platform: i5-4570S
I got strange problem below when trying some commands
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080
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
Encoding Sample Version 0.0.000.0000
Input file format YUV420
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type system
Media SDK impl hw
Media SDK version 1.16
Processing started
Frame number: 635
Processing finished
real 0m4.188s
user 0m0.740s
sys 0m0.500s
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180
Return on error: error code 1, /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp 656
real 0m0.002s
user 0m0.000s
sys 0m0.002s
[release] $
After checking the Mfxdefs.h, I got the following. But is it just a warning??
/* warnings >0 */
MFX_WRN_IN_EXECUTION = 1, /* the previous asynchronous operation is in execution */
One more thing I felt weird is
sts = pPipeline->Init(&Params);
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, 1); ==> this line number is 656 in sample_encode.cpp
I try to find the key word but nothing found...
[samples] $ grep -rniI "MFX_WRN_IN_EXECUTION" ./sample_encode/
[samples] $
Then I looked into the code as below in pipeline_encode.cpp and found nothing error before return value.
mfxStatus CEncodingPipeline::Init(sInputParams *pParams)
{
...
if ((pParams->MVC_flags & MVC_ENABLED) != 0 && !CheckVersion(&version, MSDK_FEATURE_MVC)) {
msdk_printf(MSDK_STRING("error: MVC is not supported in the %d.%d API version\n"),
version.Major, version.Minor);
return MFX_ERR_UNSUPPORTED;
}
if ((pParams->MVC_flags & MVC_VIEWOUTPUT) != 0 && !CheckVersion(&version, MSDK_FEATURE_MVC_VIEWOUTPUT)) {
msdk_printf(MSDK_STRING("error: MVC Viewoutput is not supported in the %d.%d API version\n"),
version.Major, version.Minor);
return MFX_ERR_UNSUPPORTED;
}
if ((pParams->CodecId == MFX_CODEC_JPEG) && !CheckVersion(&version, MSDK_FEATURE_JPEG_ENCODE)) {
msdk_printf(MSDK_STRING("error: Jpeg is not supported in the %d.%d API version\n"),
version.Major, version.Minor);
return MFX_ERR_UNSUPPORTED;
}
if ((pParams->nRateControlMethod == MFX_RATECONTROL_LA) && !CheckVersion(&version, MSDK_FEATURE_LOOK_AHEAD)) {
msdk_printf(MSDK_STRING("error: Look ahead is not supported in the %d.%d API version\n"),
version.Major, version.Minor);
return MFX_ERR_UNSUPPORTED;
}
...
sts = ResetMFXComponents(pParams);
MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);
return MFX_ERR_NONE;
}
So what's going on with this phenomenon ?? Any idea??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
we can found libsample_plugin_opencl.so can't be loaded by ./sample_encode_x11
open("/**/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
.......
please add the path of folder <libsample_plugin_opencl.so> to environment variable LD_LIBRARY_PATH
You can refer following command line to export LD_LIBRARY_PATH or other method you like.
$ export LD_LIBRARY_PATH=/opt/intel/mediasdk/lib64:/opt/intel/common/mdf/lib64:/opt/intel/opencl:<SAMPLE_BIN path>:$LD_LIBRARY_PATH
Thanks,
Zachary
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
Please use add "-opencl" to your command line for test rotation.
./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl
Thanks,
Zachary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Zachary,
I got the same messages after adding the recommended option. Any further idea ?? Thanks in advance.
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl
Return on error: error code 1, /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp 656
real 0m0.002s
user 0m0.000s
sys 0m0.002s
[release] $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
Have you upgraded your kernel to 3.14.5 ?
Can you send the output of following command lines for check your environment ?
$ uname -r
$ ls -l /dev/dri
$ lspci -nn | grep -i vga
$ gcc -v
$ ldd /opt/intel/opencl/*.so | grep found
Thanks,
Zachary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Zachary,
see below for requirement. Is there anything wrong?
[samples] $ uname -r
3.14.5
[samples] $ ls -l /dev/dri/
total 0
crw-rw----+ 1 root video 226, 0 Dec 17 02:24 card0
crw-rw---- 1 root video 226, 64 Nov 13 02:07 controlD64
crw-rw---- 1 root video 226, 128 Nov 13 02:07 renderD128
[samples] $ lspci -nn | grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
[samples] $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-2ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04)
[samples] $ ldd /opt/intel/opencl/*.so | grep found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
libnuma.so.1 => not found
[samples] $
Thanks. QQa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
It looks like "libnuma.so.1 => not found" in your system.
http://packages.ubuntu.com/precise/libnuma-dev
Can you check "libnuma.so.1", and try to fix this ?
Maybe "find /usr | grep libnuma" can help to check "libnuma.so.1".
Maybe "sudo apt-get install libnuma-dev libnuma1" can work for you.
Thanks
Zahcary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Zahcary,
Can you check "libnuma.so.1", and try to fix this ?
==> after the following, I still got the same result....
[SDK2015Production16.4.2.1] $ sudo apt-get install libnuma-dev
[sudo] password for dspuser:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libnuma1
The following NEW packages will be installed:
libnuma-dev libnuma1
0 upgraded, 2 newly installed, 0 to remove and 444 not upgraded.
Need to get 59.9 kB of archives.
After this operation, 241 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libnuma1 amd64 2.0.8~rc3-1 [23.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libnuma-dev amd64 2.0.8~rc3-1 [36.9 kB]
Fetched 59.9 kB in 1s (33.9 kB/s)
Selecting previously unselected package libnuma1.
(Reading database ... 161211 files and directories currently installed.)
Unpacking libnuma1 (from .../libnuma1_2.0.8~rc3-1_amd64.deb) ...
Selecting previously unselected package libnuma-dev.
Unpacking libnuma-dev (from .../libnuma-dev_2.0.8~rc3-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up libnuma1 (2.0.8~rc3-1) ...
Setting up libnuma-dev (2.0.8~rc3-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
[release] $ sudo apt-get install libnuma1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnuma1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 444 not upgraded
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180
Return on error: error code 1, /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp 656
real 0m0.002s
user 0m0.000s
sys 0m0.002s
[release] $ sudo apt-get install numactl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
numactl
0 upgraded, 1 newly installed, 0 to remove and 444 not upgraded.
Need to get 23.3 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe numactl amd64 2.0.8~rc3-1 [23.3 kB]
Fetched 23.3 kB in 10s (2,180 B/s)
Selecting previously unselected package numactl.
(Reading database ... 161261 files and directories currently installed.)
Unpacking numactl (from .../numactl_2.0.8~rc3-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up numactl (2.0.8~rc3-1) ...
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180
Return on error: error code 1, /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp 656
real 0m0.002s
user 0m0.000s
sys 0m0.002s
==> I try to confirm ldd /opt/intel/opencl/*.so | grep found again and got
[release] $ ldd /opt/intel/opencl/*.so | grep found
[release] $ ==> it looks every link is fine.
Any further idea??
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
First you should use the parameter "-open -vaapi",
another, "libsample_plugin_opencl.so" and "ocl_rotate.cl" should be exist the same fold with ./sample_encode_x11, please have a check.
Did your machine install other Intel Media Server Studio versions or OpenCL versions before ?
Can you send output of following command lines ?
$ cat /etc/OpenCL/vendors/intel.icd
$ strace ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl -hw -vaapi
Thanks,
Zachary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Zachary,
Q1. First you should use the parameter "-open -vaapi", another, "libsample_plugin_opencl.so" and "ocl_rotate.cl" should be exist the same fold with ./sample_encode_x11, please have a check.
>>
[release] $ ls -l
...
-rw-rw-r-- 1 dspuser dspuser 1975104000 Dec 16 13:41 1080p.yuv
...
-rwxrwxr-x 1 dspuser dspuser 157920 Dec 29 01:53 libsample_plugin_opencl.so
-rwxrwxr-x 1 dspuser dspuser 108720 Dec 29 01:53 libsample_rotate_plugin.so
-rwxr-xr-x 1 dspuser dspuser 22392 Dec 29 01:53 libsample_spl_mux.so
-rwxrwxr-x 1 dspuser dspuser 2538 Dec 29 01:53 ocl_rotate.cl
...
-rwxrwxr-x 1 dspuser dspuser 366511 Dec 28 04:18 sample_decode_drm
-rwxrwxr-x 1 dspuser dspuser 366256 Dec 28 04:18 sample_decode_x11
-rwxrwxr-x 1 dspuser dspuser 368314 Dec 16 14:40 sample_decvpp_drm
-rwxrwxr-x 1 dspuser dspuser 363963 Dec 16 14:40 sample_decvpp_x11
-rwxrwxr-x 1 dspuser dspuser 388230 Dec 24 22:49 sample_encode_drm
-rwxrwxr-x 1 dspuser dspuser 384044 Dec 24 22:49 sample_encode_x11
-rwxrwxr-x 1 dspuser dspuser 475448 Dec 16 14:40 sample_multi_transcode_drm
-rwxrwxr-x 1 dspuser dspuser 471097 Dec 16 14:40 sample_multi_transcode_x11
-rwxrwxr-x 1 dspuser dspuser 325665 Dec 16 14:40 sample_vpp_drm
-rwxrwxr-x 1 dspuser dspuser 325352 Dec 16 14:40 sample_vpp_x11
....
[release] $ cat /etc/OpenCL/vendors/intel.icd
/opt/intel/opencl/libIntelOpenCL.so
Q2. Did your machine install other Intel Media Server Studio versions or OpenCL versions before ?
>> No...
Q3. $ cat /etc/OpenCL/vendors/intel.icd
>>[release] $ cat /etc/OpenCL/vendors/intel.icd
/opt/intel/opencl/libIntelOpenCL.so
Q4. $ strace ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl -hw -vaapi
>>
[release] $ strace ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl -hw -vaapi
execve("./sample_encode_x11", ["./sample_encode_x11", "h264", "-i", "1080p.yuv", "-o", "1080p_enc.264", "-w", "1920", "-h", "1080", "-angle", "180", "-openc l", "-hw", "-vaapi"], [/* 25 vars */]) = 0
brk(0) = 0x7f8fba002000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84f5000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/x86_64/libva-x11.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/x86_64", 0x7fffab48ef90) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/libva-x11.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls", 0x7fffab48ef90) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/x86_64/libva-x11.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/x86_64", 0x7fffab48ef90) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libva-x11.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\36\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=252610, ...}) = 0
mmap(NULL, 2126872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb80cd000
mprotect(0x7f8fb80d4000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb82d3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f8fb82d3000
close(3) = 0
open("/usr/local/lib/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/x86_64/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fffab48ef60) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls", 0x7fffab48ef60) = -1 ENOENT (No such file or directory)
open("/usr/lib64/x86_64/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/x86_64", 0x7fffab48ef60) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64", 0x7fffab48ef60) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=111484, ...}) = 0
mmap(NULL, 111484, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8fb84d9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\212\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1265056, ...}) = 0
mmap(NULL, 3362032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb7d98000
mprotect(0x7f8fb7ec8000, 2097152, PROT_NONE) = 0
mmap(0x7f8fb80c8000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x130000) = 0x7f8fb80c8000
close(3) = 0
open("/usr/local/lib/libva.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`/\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=321215, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d8000
mmap(NULL, 2190208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb7b81000
mprotect(0x7f8fb7b96000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb7d95000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f8fb7d95000
mmap(0x7f8fb7d97000, 2944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8fb7d97000
close(3) = 0
open("/usr/local/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14768, ...}) = 0
mmap(NULL, 2109704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb797d000
mprotect(0x7f8fb797f000, 2097152, PROT_NONE) = 0
mmap(0x7f8fb7b7f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f8fb7b7f000
close(3) = 0
open("/usr/local/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135366, ...}) = 0
mmap(NULL, 2212904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb7760000
mprotect(0x7f8fb7778000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb7977000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f8fb7977000
mmap(0x7f8fb7979000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8fb7979000
close(3) = 0
open("/usr/local/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0PE\6\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1094136, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d7000
mmap(NULL, 3202240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb7452000
mprotect(0x7f8fb7554000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb7753000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x101000) = 0x7f8fb7753000
mmap(0x7f8fb775d000, 11456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8fb775d000
close(3) = 0
open("/usr/local/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=92472, ...}) = 0
mmap(NULL, 2188320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb723b000
mprotect(0x7f8fb7251000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb7450000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f8fb7450000
close(3) = 0
open("/usr/local/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1815224, ...}) = 0
mmap(NULL, 3929304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb6e7b000
mprotect(0x7f8fb7030000, 2097152, PROT_NONE) = 0
mmap(0x7f8fb7230000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b5000) = 0x7f8fb7230000
mmap(0x7f8fb7236000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f8fb7236000
close(3) = 0
open("/usr/local/lib/libXext.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2204\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=69504, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d6000
mmap(NULL, 2165304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb6c6a000
mprotect(0x7f8fb6c7a000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6e79000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7f8fb6e79000
close(3) = 0
open("/usr/local/lib/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22536, ...}) = 0
mmap(NULL, 2117864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb6a64000
mprotect(0x7f8fb6a69000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6c68000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f8fb6c68000
close(3) = 0
open("/usr/local/lib/libdrm.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2403\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=203103, ...}) = 0
mmap(NULL, 2145224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb6858000
mprotect(0x7f8fb6863000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6a62000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f8fb6a62000
close(3) = 0
open("/usr/local/lib/libxcb.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\223\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=121232, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d5000
mmap(NULL, 2216528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb663a000
mprotect(0x7f8fb6657000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6856000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f8fb6856000
close(3) = 0
open("/usr/local/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pU\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1030512, ...}) = 0
mmap(NULL, 3125544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb633e000
mprotect(0x7f8fb6439000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6638000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xfa000) = 0x7f8fb6638000
close(3) = 0
open("/usr/local/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31752, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d4000
mmap(NULL, 2128984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb6136000
mprotect(0x7f8fb613d000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb633c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f8fb633c000
close(3) = 0
open("/usr/local/lib/libXau.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=10328, ...}) = 0
mmap(NULL, 2105600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb5f33000
mprotect(0x7f8fb5f35000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb6134000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f8fb6134000
close(3) = 0
open("/usr/local/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\20\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22504, ...}) = 0
mmap(NULL, 2117760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8fb5d2d000
mprotect(0x7f8fb5d32000, 2093056, PROT_NONE) = 0
mmap(0x7f8fb5f31000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f8fb5f31000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d3000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d2000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84d0000
arch_prctl(ARCH_SET_FS, 0x7f8fb84d0740) = 0
mprotect(0x7f8fb7230000, 16384, PROT_READ) = 0
mprotect(0x7f8fb5f31000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6134000, 4096, PROT_READ) = 0
mprotect(0x7f8fb7977000, 4096, PROT_READ) = 0
mprotect(0x7f8fb633c000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6638000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6856000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6a62000, 4096, PROT_READ) = 0
mprotect(0x7f8fb7b7f000, 4096, PROT_READ) = 0
mprotect(0x7f8fb80c8000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6c68000, 4096, PROT_READ) = 0
mprotect(0x7f8fb6e79000, 4096, PROT_READ) = 0
mprotect(0x7f8fb7450000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84cf000
mprotect(0x7f8fb7753000, 32768, PROT_READ) = 0
mprotect(0x7f8fb7d95000, 4096, PROT_READ) = 0
mprotect(0x7f8fb82d3000, 4096, PROT_READ) = 0
mprotect(0x7f8fb8743000, 12288, PROT_READ) = 0
mprotect(0x7f8fb84f7000, 4096, PROT_READ) = 0
munmap(0x7f8fb84d9000, 111484) = 0
set_tid_address(0x7f8fb84d0a10) = 20976
set_robust_list(0x7f8fb84d0a20, 0x18) = 0
futex(0x7fffab48f88c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f8fb84d0740) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7f8fb7766750, [], SA_RESTORER|SA_SIGINFO, 0x7f8fb776fcb0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f8fb77667e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f8fb776fcb0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0) = 0x7f8fba002000
brk(0x7f8fba034000) = 0x7f8fba034000
futex(0x7f8fb775de8c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f8fb775de98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f8fb7b800b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/local/lib/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=111484, ...}) = 0
mmap(NULL, 111484, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8fb84d9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
open("/lib/tls/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/tls/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/lib/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7fffab48e180) = -1 ENOENT (No such file or directory)
open("/usr/lib/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
munmap(0x7f8fb84d9000, 111484) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8fb84f4000
write(1, "\n", 1
) = 1
write(1, "Return on error: error code 1,\t/"..., 155Return on error: error code 1, /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.160431 75.175/samples/sample_encode/src/sample_encode.cpp 656
) = 155
exit_group(1) = ?
[release] $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
we can found libsample_plugin_opencl.so can't be loaded by ./sample_encode_x11
open("/**/libsample_plugin_opencl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
.......
please add the path of folder <libsample_plugin_opencl.so> to environment variable LD_LIBRARY_PATH
You can refer following command line to export LD_LIBRARY_PATH or other method you like.
$ export LD_LIBRARY_PATH=/opt/intel/mediasdk/lib64:/opt/intel/common/mdf/lib64:/opt/intel/opencl:<SAMPLE_BIN path>:$LD_LIBRARY_PATH
Thanks,
Zachary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, Zachary
By the above recommendation, we can do that ~ Wow. Many thanks ~ ^^y
And it looks like -angle and -opencl are independent function ~
[release] $ ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -opencl -hw -vaapi
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
Info: try to open file (ocl_rotate.cl) in the current directory
info: using GPU OpenCL device with media sharing extension
Pipeline with rotation plugin
NOTE: Some of command line options may have been ignored as non-supported for this pipeline. For details see readme-encode.rtf.
Encoding Sample Version 0.0.000.0000
Input file format YUV420
Output video AVC
Source picture:
Resolution 0x0
Crop X,Y,W,H 0,0,0,0
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type d3d
Media SDK impl hw
Media SDK version 1.16
Processing started
Frame number: 635
Processing finished
[release] $ ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180 -hw -vaapi
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
Pipeline with rotation plugin
NOTE: Some of command line options may have been ignored as non-supported for this pipeline. For details see readme-encode.rtf.
Encoding Sample Version 0.0.000.0000
Input file format YUV420
Output video AVC
Source picture:
Resolution 0x0
Crop X,Y,W,H 0,0,0,0
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type d3d
Media SDK impl hw
Media SDK version 1.16
Processing started
Frame number: 635
Processing finished
[release] $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
Great to know it works for you. just want you know, we can find following in readme-encode.pdf
-angle 180 Invokes sample plug-in for 180 degrees picture rotation.
CPU implementation is used by default. Rotate plugin module
sample_rotate_plugin.so must be available when running the application with
this option.
-opencl Invokes Intel® OpenCL™ implementation of 180 degrees picture rotation. Rotate
plugin module libsample_plugin_opencl.so must be available. File
ocl_rotate.cl must exist in the local folder when running the application with this
option.
Thanks
Zachary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Medwin,
I am closing this thread, please feel free to start new post if you have other questions.
Thanks,
Zachary
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page