Template:Glsdk video demos

{{#ifeq: {{{processor}}} | DRA7xx |

Video Input Port
Video Input Port is used to capture video frames from Camera.

GLSDK linux kernel includes a V4L2 standard capture driver for VIP

Currently the VIP driver supports following features


 * Standard V4L2 capture driver
 * Supports single planar buffers
 * Supports MMAP and DMABUF based buffering methods
 * Supports V4L2 endpoint standard way of specifying camera nodes
 * Supports captures upto 60FPS
 * Multi instance capture - Currently only Vin1a, Vin2a, Vin3a, Vin5a supported
 * Capture from a YUYV camera(8bit) or RGB camera(24bit)

GLSDK release supports following sensors/cameras/video inputs:-


 * OV10633/635 sensors - YUYV sensors controlled via i2c2
 * TVP5158 decoder - Decodes multichannel NTSC/PAL video and gives out digital video
 * FPDlink - Output of FPDlink display can be used as a camera input source

To test the VIP functionality, OV10633 sensor has to be connected to J6 EVM baseboard

Running dmabuftest
dmabuftest is a user space application which demonstrates capture display loopback.

Video buffers are allocated by libdrm and they are shared to VIP through dmabuf.

It interfaces with the VIP through standard v4l2 ioctls.

Arago filesystem from GLSDK release has dmabuftest app preinstalled.

To capture and display on the LCD screen, run following command dmabuftest -s 4:800x480 -d /dev/video1 -c 1280x720@YUYV

To capture and display on the HDMI display, run following command dmabuftest -s 12:1920x1200 -d /dev/video1 -c 1280x720@YUYV

Video Processing Engine
VPE supports Scalar, Colour Space Conversion and Deinterlace.It uses V4L2 mem2mem API.

Supported Input formats: nv12, yuyv, uyvy

Supported Output formats: nv12, yuyv, uyvy, rgb24, bgr24, argb24, abgr24

Not Supported formats: yuv444, yvyu, vyuy, nv16, nv61, nv21

Usage: testvpe         

Note:

output height should be twice of input height.

Deinterlace(DI)
target# testvpe frame-176-144-nv12-inp.yuv 176 144 nv12 progressive_output.nv12 176 288 nv12 1 1 /dev/video0

Scalar(SC)
target# testvpe frame-176-144-nv12-inp.yuv 176 144 nv12 sc-ip-176-144-nv12-op-1920-1080-nv12-0.nv12 1920 1080 nv12 0 1 /dev/video0

Colour Space Conversion(CSC)
target# testvpe frame-720-240-yuyv-inp.yuv 720 240 yuyv csc-ip-720-240-yuyv-op-720-240-argb32-0.argb32 720 240 argb32 0 1 /dev/video0

SC+CSC+DI
target# testvpe frame-720-240-yuyv-inp.yuv 720 240 yuyv sc-csc-ip-720-240-yuyv-op-1920-1080-rgb24-1.rgb24 1920 1080 rgb24 1 1 /dev/video0

Currently only single instance deinterlacing is supported.

}}

Description
This template describes how to run video capture and process demos on.

Parameters
This template takes following parameters - processor, in DRA7xx

Example
To use this template simply add the following line to your wiki page.

Here's how it will look in your wiki page: