Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup tvp5151 video decoder

1,529 bytes added, 14:00, 26 July 2013
Remove kernel 2.6.35 (deprecated)
= What is?<br> =
The [http://focus.ti.com/docs/prod/folders/print/tvp5151.html TVP5151 ] device is an ultralow-power NTSC/PAL/SECAM video decoder. Available in a space-saving 48-terminal PBGA package or a 32-terminal TQFP package, the TVP5151 decoder converts NTSC, PAL, and SECAM video signals to 8-bit ITU-R BT.656 format. Discrete syncs are also available. The optimized architecture of the TVP5151 decoder allows for ultralow power consumption. The decoder consumes 138-mW power under typical operating conditions and consumes less than 1 mW in power-down mode, considerably increasing battery life in portable applications. The decoder uses just one crystal for all supported standards. The TVP5151 decoder can be programmed using an I2C serial interface.
The TVP5151 decoder converts baseband analog video into digital YCbCr 4:2:2 component video.
The YCbCr digital output can be programmed as 8-bit 4:2:2 or 8-bit ITU-R BT.656 parallel interface standard.<br>'''Summary of Line Frequencies, Data Rates, and Pixel Counts'''<br>
{| width="480" cellspacing="1" cellpadding="1" border="0" align="left" width="480" style=""
|-
! scope="col" | STANDARDS <br>(ITU-R BT.601) <br>
<br>
= Get the ISP kernel branch Dependecies =
You can access to our latest isp kernel branch using our git repository from [http://git*IGEP Board with TVP5151 peripheral (IGEPv2 Expansion Board or IGEP Berlin).igep*Camera with PAL output live video.es/?p=pub/scm/linux-omap-2.6.git;a=shortlog;h=refs/heads/linux-2.6.35.y-omap3isp here]*IGEP SDK (IGEP VM suggested).
Get = Kernel 2.6.37.y === IGEP Firmware Yocto == ''(from [[How to create a local copy SD-card with the latest software image]])'' {{:How to create a SD-card with the latest software image}} == Configure TVP5151 ==<section begin=configure />Use the following steps to configure analog video:  *Connect a video composite input to J501 connector from IGEPv2 Expansion (near CAN Bus) or J402 connector from our repositoryIGEP BERLIN (near HDMI output)*Connect a screen, for example HDMI monitor. *Refresh repositories and accept it. <pre>git clone git:zypper ref </pre> *Install video4linux2 plugin<pre>zypper in gst-plugins-good-video4linux2</git.igep.espre><section end=configure /pub> == Play with TVP5151 ==<section begin=playigepv2 /scm><section begin=playberlin /linux-omap-2.6.git>*Load OMAP ISP kernel module<br>git checkout linux-2.6.35.y<pre>modprobe omap3-omap3ispisp
</pre>
<section end=playberlin />*Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480 for '''IGEPv2 Expansion''':<br><pre>media-ctl -r -l '"tvp5150 2-005c":0-&gt;"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1-&gt;"OMAP3 ISP CCDC output":0[1]'media-ctl -v --set-format '"tvp5150 2-005c":0 [UYVY 720x480]'media-ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre> <section end= Build the Kernel playigepv2 /><section begin=playberlin />*Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480 for '''IGEP BERLIN''':<br><pre>media-ctl -r -l '"tvp5150 3-005d":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'media-ctl -v --set-format '"tvp5150 3-005d":0 [UYVY 720x480]'media-ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre> <section begin=playigepv2 />*Export display<pre>export DISPLAY=:0.0 </pre> *Launch gstreamer<pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=8&nbsp;! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=480&nbsp;! ffmpegcolorspace&nbsp;! autovideosink</pre> *Now you can see in your IGEP screen a result similar like this
Configure the kernel<pre>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabimake ARCH{| cellspacing=arm CROSS_COMPILE"1" cellpadding=arm-none-linux-gnueabi- igep0020_defconfigmake ARCH"1" border=arm CROSS_COMPILE"1" width=arm-none-linux-gnueabi"200"|- uImage modulesmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=| [[path to your target rootfsImage:Igepv2expgstreamercapture.jpg|400px]]|}<section end=playigepv2 /pre>By default the iommu2, tvp5151 and omap3-isp drivers be build inside the kernel but you can configure it for build as module using this [http:<section end=playberlin //downloads.igep.es/files/tvp5151/config alternative configuration file].<br>
asdads[[Category:Gstreamer]][[Category:Software applications]]
0
edits