cedarx h.264 video encoding

Started by ugurlu, February 15, 2013, 02:33:36 PM

Previous topic - Next topic

ugurlu

Hi,

I am trying to encode h.264 video using uvc webcam. Capturing frames over usb is not a problem.

However I wasn't able to run EncoderDemo in a10_h264_encode sample. After creating an softfloat kernel and rootfs program can be executed. However it hangs in InitSPS.

Then I tried to test under android. But as soon as camera program is opened error "Unfortunately, Camera has stopped" error.

My questions are
How can I encode h.264 with cedarx under debian/android?
How can I make usb webcam work?


jwischka

USB webcam should be fairly straightforward - add driver support in your kernel.

I'm not at my linux machine at the moment, but I think there are some .264 options in the 3.4 kernel config (but to be honest, I don't remember if they are for encoding or decoding). I'm not sure, though, that the encoding support has been ported over in the drivers yet (there are still several outstanding issues in the Mali/Cedar support).

Quote from: ugurlu on February 15, 2013, 02:33:36 PM
Hi,

I am trying to encode h.264 video using uvc webcam. Capturing frames over usb is not a problem.

However I wasn't able to run EncoderDemo in a10_h264_encode sample. After creating an softfloat kernel and rootfs program can be executed. However it hangs in InitSPS.

Then I tried to test under android. But as soon as camera program is opened error "Unfortunately, Camera has stopped" error.

My questions are
How can I encode h.264 with cedarx under debian/android?
How can I make usb webcam work?

ugurlu

only possible reference seems to be in sun4i_cedar.c


        case 0xb: //avc enc
            ve_int_ctrl_reg = (unsigned int)(addrs.regs_macc + 0xb00 + 0x14);


which might mean encoding process shares the same path as decoding. Anyway there should be some userspace code/binary somewhere?

I'll look into libcedarv which only shows decode* functions. Seems like dead end.