Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Ubuntu 12.04 samples don`t work

Nikita_O_
Beginner
684 Views

Hi!

I have installed last Media SDK on Ubuntu 12.04.

user@ubuntu:/opt/intel/mediasdk/samples/_bin/x64$ uname -a
Linux ubuntu 3.8.0-23-generic #34~precise1-Ubuntu SMP Wed May 29 21:12:31 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I have added my user (user) to group video. But samples don`t works:

user@ubuntu:/opt/intel/mediasdk/samples/_bin/x64$ ./sample_encode_x11 h264 -i ~/. -o ~/test.h264 -hw -w 100 -h 100
libva info: VA-API version 0.34.0
Xlib:  extension "XFree86-DRI" missing on display ":0".
libva info: va_getDriverName() returns -1
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

I know how to fix issue with Display :0, but how to fix this:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

*_x11 samples always don`t work.

*_dri samples work only with sudo (root).

But my system uses X.org, so I don`t understand what I am doing wrong.

 

0 Kudos
3 Replies
Nikita_O_
Beginner
684 Views

P.S.

CPU is Haswell i7

user@ubuntu:/opt/intel/mediasdk/samples/_bin/x64$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d4)
00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 [8086:8c14] (rev d4)
00:1c.6 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #7 [8086:8c1c] (rev d4)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation H87 Express LPC Controller [8086:8c4a] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c02] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 04)
01:00.0 Multimedia video controller [0400]: Blackmagic Design DeckLink Mini Recorder [bdbd:a130]
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
04:00.0 Multimedia video controller [0400]: Blackmagic Design DeckLink Mini Recorder [bdbd:a130]

 

0 Kudos
Jeffrey_M_Intel1
Employee
684 Views

Media SDK 2014 R2 for Linux Servers (available now, will post the notice soon) has an answer for multiple graphics stack related reasons why Media SDK applications have needed to be run as root in the past.  For more info please see Using drmserver with Media SDK for Linux Servers Applications.  This has helped for several scenarios where I've seen this problem -- hope it helps with yours.

 

0 Kudos
Nikita_O_
Beginner
684 Views

Root is ok. But, anyway why *_x11 samples don`t works?

0 Kudos
Reply