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

Hubert Liao liao.hubertt at gmail.com
Mon Jul 30 20:07:11 BST 2012


Hi:

I got the video source code from https://github.com/amery/allwinner-a10-video,
and try the EncoderDemo on Mele A1000 with a usb webcam, when I run it, the
output file h264.buf size is always 0.

./EncoderDemo
w: 640, h: 480, preview_left: 80, preview_top: 0, preview_h: 480,
preview_w : 640
video layer hdl:101
MODE: 2, format: 13
fb_layer hdl: 100
open H264Enc ok
to stream on
V4L2Camera::v4l2StartStreaming
V4L2Camera::v4l2StartStreaming OK
cru: 1586005820, last: 1586005799, 21
VIDIOC_DQBUF id: 0

I found it stop at
g_pCedarV->encode(g_pCedarV);
in the while(1) loop, main.c line 139

lack of the encode library source code, so I can not find the real stuck point
using gdb, maybe it stop at InitSPS @H264enclib.c

(gdb) r
Starting program:
/root/Downloads/amery-allwinner-a10-video-9fa91df/a10_h264_encode/EncoderDemo
[Thread debugging using libthread_db enabled]
w: 640, h: 480, preview_left: 80, preview_top: 0, preview_h: 480,
preview_w : 640
video layer hdl:101
MODE: 2, format: 13
fb_layer hdl: 100
open H264Enc ok
to stream on
V4L2Camera::v4l2StartStreaming
V4L2Camera::v4l2StartStreaming OK
cru: -1547703669, last: -1547703690, 21
VIDIOC_DQBUF id: 0
^C
Program received signal SIGINT, Interrupt.
0x0000d4c0 in InitSPS (pDev=0x21090) at F20/H264encLib.c:81
81	F20/H264encLib.c: No such file or directory.
	in F20/H264encLib.c
(gdb) bt
#0  0x0000d4c0 in InitSPS (pDev=0x21090) at F20/H264encLib.c:81
#1  0x0000c1fc in H264EncEncode (pDev=0x21090) at F20/H264encDrv.c:843
#2  0x0000a4dc in main () at main.c:139

Any help ? Thanks!



More information about the arm-netbook mailing list