Cannot decode h264 using vaapi builded only with drm support

sonntex sonntex at gmail.com
Fri Apr 22 08:45:52 UTC 2016


I solve the error. Thank you for question about output of vaapi. There are
no permissions for /dev/dri/*.

sonntex at work ~ $ vainfo
error: failed to initialize display
Aborted
sonntex at work ~ $ strace vainfo
execve("/usr/bin/vainfo", ["vainfo"], [/* 28 vars */]) = 0
brk(0)                                  = 0x12d9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa417000
access("/etc/ld.so.preload", R_OK)      = -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=42981, ...}) = 0
mmap(NULL, 42981, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb2aa40c000
close(3)                                = 0
open("/usr/lib64/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\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=113040, ...}) = 0
mmap(NULL, 2210496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a9fdb000
mprotect(0x7fb2a9ff6000, 2093056, PROT_NONE) = 0
mmap(0x7fb2aa1f5000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7fb2aa1f5000
close(3)                                = 0
open("/usr/lib64/libva-drm.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\n\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=10168, ...}) = 0
mmap(NULL, 2105512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a9dd8000
mprotect(0x7fb2a9dda000, 2093056, PROT_NONE) = 0
mmap(0x7fb2a9fd9000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb2a9fd9000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa40b000
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\7\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1681152, ...}) = 0
mmap(NULL, 3788376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a9a3b000
mprotect(0x7fb2a9bce000, 2097152, PROT_NONE) = 0
mmap(0x7fb2a9dce000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x193000) = 0x7fb2a9dce000
mmap(0x7fb2a9dd4000, 15960, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb2a9dd4000
close(3)                                = 0
open("/lib64/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\0p\16\0\0\0\0\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=14344, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a9837000
mprotect(0x7fb2a9839000, 2097152, PROT_NONE) = 0
mmap(0x7fb2a9a39000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb2a9a39000
close(3)                                = 0
open("/usr/lib64/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\340=\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=59776, ...}) = 0
mmap(NULL, 2157840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a9628000
mprotect(0x7fb2a9636000, 2093056, PROT_NONE) = 0
mmap(0x7fb2a9835000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7fb2a9835000
close(3)                                = 0
open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 U\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1038448, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa40a000
mmap(NULL, 3133784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb2a932a000
mprotect(0x7fb2a9427000, 2093056, PROT_NONE) = 0
mmap(0x7fb2a9626000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xfc000) = 0x7fb2a9626000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa409000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa408000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb2aa407000
arch_prctl(ARCH_SET_FS, 0x7fb2aa408700) = 0
mprotect(0x7fb2a9dce000, 16384, PROT_READ) = 0
mprotect(0x7fb2a9626000, 4096, PROT_READ) = 0
mprotect(0x7fb2a9835000, 4096, PROT_READ) = 0
mprotect(0x7fb2a9a39000, 4096, PROT_READ) = 0
mprotect(0x7fb2a9fd9000, 4096, PROT_READ) = 0
mprotect(0x7fb2aa1f5000, 4096, PROT_READ) = 0
mprotect(0x601000, 4096, PROT_READ)     = 0
mprotect(0x7fb2aa418000, 4096, PROT_READ) = 0
munmap(0x7fb2aa40c000, 42981)           = 0
open("/dev/dri/renderD128", O_RDWR)     = -1 EACCES (Permission denied)
open("/dev/dri/card0", O_RDWR)          = -1 EACCES (Permission denied)
write(2, "error: failed to initialize disp"..., 35error: failed to
initialize display) = 35
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 5142
tgkill(5152, 5152, SIGABRT)             = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=5152, si_uid=1000}
---
+++ killed by SIGABRT +++
Aborted
sonntex at work ~ $ ls -l /dev/dri
total 0
crw-rw---- 1 root video 226,   0 Apr 19 20:20 card0
crw-rw---- 1 root video 226,  64 Apr 19 20:20 controlD64
crw-rw---- 1 root video 226, 128 Apr 19 20:20 renderD128

So, if I run gstreamer under sudo or root, all work fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160422/3ecda9d6/attachment-0001.html>


More information about the gstreamer-devel mailing list