开发者

How does a V4L2 video capture driver knows where the stream is coming from

I need to write a driver that receives 24-bit RGB input and put it on the display (either by 3rd party app as mplayer, or by dumping it to the fame buffer, it is not important at the moment)

The setup is 2.3.39 kernel on a OMAP3 platform, with a video capture chip connected to it.

I know which GPIOs receive the data from the video capture chip (including clk, hsync and vsync).

I tried to review several drivers to understand how they define to stream the CPU GPIO input to the device, but could find no clue on how it connects. I currently have a camera working on those exact GPIOs, which uses oma开发者_如何学编程p3isp. I am trying to replace it with other video input.

Can some please shed some light on the matter, any help will be appreciated.

Best, Jonathan.


In Ubuntu, you can check for video capture devices by entering following command in a terminal:

ls /dev/video*

Consequently, v4l2 also uses these same devices. If you have a device at /dev/video0 or /dev/video1, you can use VLC/FFmpeg/MPlayer/MEncoder to capture these streams. From https://help.ubuntu.com/community/Webcam#VLC, a simple test to make sure you can see a webcam stream would be to type the following command into a terminal.

vlc v4l2:///dev/video0
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜