[Arm-netbook] allwinner-a10-video EncoderDemo can not work

Hubert Liao liao.hubertt at gmail.com
Tue Jul 31 15:50:49 BST 2012


On Tue, Jul 31, 2012 at 10:45 PM, Pierre-Hugues Husson
<phhusson at gmail.com> wrote:
> 2012/7/31 Hubert Liao <liao.hubertt at gmail.com>
>>
>> comment the DISP_PREVIEW define,  problem also exist.
>
> Sounds bad :/
> Can you check that strace -fF gives the same result ?
>
strace -fF

strace -fF ./EncoderDemo
execve("./EncoderDemo", ["./EncoderDemo"], [/* 20 vars */]) = 0
brk(0)                                  = 0x1486000
uname({sys="Linux", node="ubuntu", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40023000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=58764, ...}) = 0
mmap2(NULL, 58764, PROT_READ, MAP_PRIVATE, 3, 0) = 0x400a1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220t\4\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=710388, ...}) = 0
mmap2(NULL, 768792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x400be000
mprotect(0x40167000, 32768, PROT_NONE)  = 0
mmap2(0x4016f000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa9) = 0x4016f000
mmap2(0x40174000, 23320, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40174000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3701\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=407152, ...}) = 0
mmap2(NULL, 438440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4017a000
mprotect(0x401dd000, 28672, PROT_NONE)  = 0
mmap2(0x401e4000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x62) = 0x401e4000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340+\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=38572, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x401e6000
mmap2(NULL, 69908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x401f1000
mprotect(0x401fa000, 28672, PROT_NONE)  = 0
mmap2(0x40201000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x40201000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\305B\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=104536, ...}) = 0
mmap2(NULL, 111136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40203000
mprotect(0x40214000, 28672, PROT_NONE)  = 0
mmap2(0x4021b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x4021b000
mmap2(0x4021d000, 4640, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4021d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0AU\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=918976, ...}) = 0
mmap2(NULL, 955668, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4021f000
mprotect(0x402fb000, 32768, PROT_NONE)  = 0
mmap2(0x40303000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdc) = 0x40303000
mmap2(0x40306000, 9492, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40306000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40081000
set_tls(0x400814c0, 0xf0005, 0x40081ba8, 0x400814c0, 0x400a0000) = 0
mprotect(0x40303000, 8192, PROT_READ)   = 0
mprotect(0x4021b000, 4096, PROT_READ)   = 0
mprotect(0x40201000, 4096, PROT_READ)   = 0
mprotect(0x401e4000, 4096, PROT_READ)   = 0
mprotect(0x4016f000, 12288, PROT_READ)  = 0
mprotect(0x1e000, 4096, PROT_READ)      = 0
mprotect(0x4009f000, 4096, PROT_READ)   = 0
munmap(0x400a1000, 58764)               = 0
set_tid_address(0x40081068)             = 1097
set_robust_list(0x40081070, 0xc)        = 0
futex(0xbeed4c0c, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xbeed4c0c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1,
NULL, 4021c000) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x40207221, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40207119, [],
SA_RESTART|SA_SIGINFO|0x4000000}, 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)                                  = 0x1486000
brk(0x14a7000)                          = 0x14a7000
open("/dev/cedar_dev", O_RDWR)          = 3
ioctl(3, 0x101, 0x148600c)              = 0
mmap2(NULL, 2048, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0xdc8d8) = 0x401e7000
ioctl(3, 0x200, 0)                      = 0
ioctl(3, FDGETPRM, 0)                   = 0
ioctl(3, 0x203, 0)                      = 0
open("/dev/cedar_dev", O_RDWR)          = 4
ioctl(4, 0x101, 0x148603c)              = 0
open("/dev/video0", O_RDWR|O_NONBLOCK)  = 5
ioctl(5, VIDIOC_QUERYCAP or VT_OPENQRY, 0xbeed49bc) = 0
ioctl(5, VIDIOC_S_FMT or VT_RELDISP, 0xbeed48f0) = -1 EINVAL (Invalid argument)
ioctl(5, VIDIOC_REQBUFS or VT_DISALLOCATE, 0xbeed48d8) = 0
ioctl(5, VIDIOC_QUERYBUF or VT_RESIZE, 0xbeed4894) = 0
mmap2(NULL, 614400, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) = 0x40309000
ioctl(5, VIDIOC_QUERYBUF or VT_RESIZE, 0xbeed4894) = 0
mmap2(NULL, 614400, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0x96) = 0x40424000
ioctl(5, VIDIOC_QUERYBUF or VT_RESIZE, 0xbeed4894) = 0
mmap2(NULL, 614400, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0x12c) = 0x404d3000
ioctl(5, VIDIOC_QUERYBUF or VT_RESIZE, 0xbeed4894) = 0
mmap2(NULL, 614400, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0x1c2) = 0x4063a000
ioctl(5, VIDIOC_QBUF, 0xbeed4850)       = 0
ioctl(5, VIDIOC_QBUF, 0xbeed4850)       = 0
ioctl(5, VIDIOC_QBUF, 0xbeed4850)       = 0
ioctl(5, VIDIOC_QBUF, 0xbeed4850)       = 0
ioctl(3, 0x103, 0)                      = 0
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc4000) = 0x40708000
mmap2(NULL, 471040, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc4800) = 0x40f79000
mmap2(NULL, 471040, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc4873) = 0x410b5000
mmap2(NULL, 81920, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc48e6) = 0x4115f000
mmap2(NULL, 81920, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc48fa) = 0x411d1000
mmap2(NULL, 1280, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0xc490e) = 0x412bf000
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x41359000
write(1, "open H264Enc ok\n", 16open H264Enc ok
)       = 16
open("h264.buf", O_RDWR|O_CREAT|O_TRUNC, 0666) = 6
write(1, "to stream on\n", 13to stream on
)          = 13
write(1, "V4L2Camera::v4l2StartStreaming\n", 31V4L2Camera::v4l2StartStreaming
) = 31
ioctl(5, VIDIOC_STREAMON, 0xbeed4a20)   = 0
write(1, "V4L2Camera::v4l2StartStreaming O"...,
34V4L2Camera::v4l2StartStreaming OK
) = 34
gettimeofday({1343746209, 477531}, NULL) = 0
gettimeofday({1343746209, 480178}, NULL) = 0
write(1, "cru: 1266417138, last: 126641449"..., 40cru: 1266417138,
last: 1266414491, 2647
) = 40
select(6, [5], NULL, NULL, {2, 0})      = 1 (in [5], left {1, 665590})
ioctl(5, VIDIOC_DQBUF, 0xbeed4900)      = 0
write(1, "VIDIOC_DQBUF id: 0\n", 19VIDIOC_DQBUF id: 0
)    = 19

> _______________________________________________
> arm-netbook mailing list arm-netbook at lists.phcomp.co.uk
> http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook
> Send large attachments to arm-netbook at files.phcomp.co.uk



More information about the arm-netbook mailing list