t91:~$ ldd $(which h264encode )
linux-gate.so.1 => (0xb77af000)
libva-x11.so.1 => /usr/lib/i386-linux-gnu/vaapi-1.0.16/libva-x11.so.1 (0xb77a5000)
libva.so.1 => /usr/lib/i386-linux-gnu/vaapi-1.0.16/libva.so.1 (0xb778f000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7759000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb7625000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7476000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb7463000)
libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xb7456000)
libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb744f000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb744a000)
/lib/ld-linux.so.2 (0xb77b0000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb7428000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb7424000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb741d000)
t91:~$ gdb h264encode
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from h264encode...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/h264encode
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/emgd_drv_video.so
Intel(R) Embedded Media and Graphics Driver 1.18 Build 3398
Using XCB based dispatch table.
libva: va_openDriver() returns 0
h264encode: h264encode_common.c:372: main: Assertion `0' failed.
Program received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fdd424 in __kernel_vsyscall ()
#1 0xb7cd2827 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2 0xb7cd5c53 in __GI_abort () at abort.c:89
#3 0xb7ccb977 in __assert_fail_base (
fmt=0xb7e09b94 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x804a9da "0",
file=file@entry=0x804a9dc "h264encode_common.c", line=line@entry=372,
function=function@entry=0x804ad40 "main") at assert.c:92
#4 0xb7ccba27 in __GI___assert_fail (assertion=0x804a9da "0",
file=0x804a9dc "h264encode_common.c", line=372, function=0x804ad40 "main")
at assert.c:101
#5 0x080491c6 in ?? ()
#6 0xb7cbda83 in __libc_start_main (main=0x8048ea0, argc=1, argv=0xbffff454,
init=0x804a8a0, fini=0x804a910, rtld_fini=0xb7fed180 <_dl_fini>,
stack_end=0xbffff44c) at libc-start.c:287
#7 0x0804a7ce in ?? ()