[hawkboard.org] Composite video input working?

48 views
Skip to first unread message

steve

unread,
May 8, 2010, 7:15:25 PM5/8/10
to hawkboard
Hello

Has anyone gotten the composite video working on the hawkboard? Or is
working on it? I need to use it. The composite video hardware was one
of my main reasons for buying a number of boards.

I would like to help with it if there is a effort already begun.

Thanks,
Steve

Caglar Akyuz

unread,
May 9, 2010, 4:05:34 AM5/9/10
to hawk...@googlegroups.com, steve
Yes it is working. What is your use case of it?

Regards,
Caglar

Harishkumar V

unread,
May 9, 2010, 8:50:42 AM5/9/10
to hawk...@googlegroups.com, steve
Caglar,

Can u share the information regarding how to make composite video work in hawkboard.
--
Thanks and Regards,
Harish Kumar. V

Caglar Akyuz

unread,
May 9, 2010, 10:20:36 AM5/9/10
to hawk...@googlegroups.com, Harishkumar V, steve
On Sunday 09 May 2010 03:50:42 pm Harishkumar V wrote:
> Caglar,
>
> Can u share the information regarding how to make composite video work in
> hawkboard.
>

Sure, but it's a little bit picky though. Here is what I did to make it work:

I downloaded sources for kernel coming with Angstrom [1]. Kernel version
is 2.6.33-rc4, I guess it is the PSP kernel.

This kernel was supporting VPIF input and output out of the box, moreover
associated filesystem was creating /dev/video0 node automatically. However, in
my experience TVP5147 driver was a little bit buggy(due to noise I guess)
so it wasn't detecting camera standard. Then I patched my kernel with the
attached patch to solve this issue.

Next trouble was color space conversion. VPIF was giving data in NV16
(two plane YUV) format but LCDC was expecting an RGB data. This was a little
bit problematic for generic players; for instance gstreamer v4l2 plugin was not
supporting NV16 and mplayer was unable to detect the format. So I wrote my own
program to do the following:

* Grab a frame from V4l2 driver
* Convert color space from NV16 to RGB565
* Copy buffer to framebuffer memory.

But this was not enough as framerate was not so good. So I modified Codec
Engine video_copy example to utilize DSP and that way I offloaded color space
conversion to the DSP. This gave me a beautiful 25 fps from my camera.

Currently I don't have any appropriate place to upload my example codes but I
can share them with anyone interested. Actually binaries can serve a good
purpose for anybody want to give it a quick try on their board.

Best Regards,
Caglar

[1] http://www.angstrom-distribution.org/narcissus/

____________________________________________________________________________

--- kernel_source_original/drivers/media/video/tvp514x.c 2010-03-18 14:33:44.000000000 +0200
+++ kernel_source/drivers/media/video/tvp514x.c 2010-05-07 00:46:05.284494625 +0300
@@ -741,8 +741,9 @@
break;
}

- if ((current_std == STD_INVALID) || (try_count < 0))
- return -EINVAL;
+ if ((current_std == STD_INVALID) || (try_count < 0)) {
+ current_std = STD_PAL_BDGHIN;
+ }

decoder->current_std = current_std;
decoder->input = input;

Harishkumar V

unread,
May 9, 2010, 11:49:29 AM5/9/10
to Caglar Akyuz, hawk...@googlegroups.com, steve
gr8... nice...

it will be good if u put these information with clean steps and patches in hawkboard wiki.

Syed Mohammed, Khasim

unread,
May 10, 2010, 3:03:33 AM5/10/10
to hawk...@googlegroups.com
Caglar,

I can upload all your work on code.google.com/p/hawkboard. Good work.

Please send it across.

Regards,
Khasim

Caglar Akyuz

unread,
May 11, 2010, 4:11:46 PM5/11/10
to Harishkumar V, hawk...@googlegroups.com, steve
On Sunday 09 May 2010 06:49:29 pm Harishkumar V wrote:
> gr8... nice...
>
> it will be good if u put these information with clean steps and patches in
> hawkboard wiki.
>

This is an FAQ now :)

Regards,
Caglar

[1] http://elinux.org/Hawkboard#FAQs

Syed Mohammed, Khasim

unread,
May 12, 2010, 11:35:21 AM5/12/10
to hawk...@googlegroups.com
Great, thanks a lot.

Regards,
Khasim

auzieman

unread,
May 13, 2010, 1:43:33 PM5/13/10
to hawkboard
I had gotten Mencoder to at least record a test pattern, you might try
that one.. But I couldn't figure out how to get it to actually capture
my NTSC video source (output from a camcorder)..

I would really like to get this working even if at 3-5 fps so that I
could hook up a security camera with IR backlit / audio out.. (Robots
need eyes/ webcams generally suck re light levels)


I'll try your gstreamer notes though too,, maybe this weekend..


On May 11, 1:11 pm, Caglar Akyuz <caglarak...@gmail.com> wrote:
> On Sunday 09 May 2010 06:49:29 pm Harishkumar V wrote:
>
> > gr8... nice...
>
> > it will be good if u put these information with clean steps and patches in
> > hawkboard wiki.
>
> This is an FAQ now :)
>
> Regards,
> Caglar
>
> [1]http://elinux.org/Hawkboard#FAQs
>
Reply all
Reply to author
Forward
0 new messages