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

Hubert Liao liao.hubertt at gmail.com
Tue Jul 31 03:27:32 BST 2012


On Tue, Jul 31, 2012 at 10:09 AM, Piyush Verma <piyush.pv at gmail.com> wrote:
>
> Could u try to run with strace then see where it stuck ?
>
yes, I will try it. but i don't know if  can get useful information by strace
I want to know if anybody test the EncoderDemo with a usb webcamera?

> On Tue, Jul 31, 2012 at 3:07 AM, Hubert Liao <liao.hubertt at gmail.com> wrote:
>>
>> 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!
>>
>> _______________________________________________
>> 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
>
>
>
>
> --
> Thanks & Regards
>
> Piyush Verma
>
>
>
> _______________________________________________
> 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