Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup tvp5151 video decoder

1,247 bytes removed, 14:00, 26 July 2013
Remove kernel 2.6.35 (deprecated)
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 a local copy from our repository. <pre>git clone git://git.igep.es/pub/scm/linux-omap-2.6.gitgit checkout linux-= Kernel 2.6.3537.y-omap3isp</pre> === Build the Kernel IGEP Firmware Yocto == Configure the kernel <pre>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabimake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- igep0020_defconfigmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modulesmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs</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://downloads.igep.es/files/tvp5151/config alternative configuration file].<br>  If you wish use this alternative configuration file copy it in the kernel sources root directory and rename the file as:<br> <pre>mv config .config</pre> Build the kernel with this configuration file:<br> <pre>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabimake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage modulesmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs</pre> After build the kernel and the modules you must install it on the IGEP board.  Also you can download the compiled images from here:  [http://downloads.igep.es/files/tvp5151/uImage Kernel 2.6.35 (uImage)]  [http://downloads.igep.es/files/tvp5151/zImage Kernel 2.6.35 (zImage)]
''(from [http://downloads.igep.es/files/tvp5151/linux[How to create a SD-2.6.35-10-modules.tgz Kernel 2.6.35 (Modulescard with the latest software image]]) '' {{:How to create a SD-card with the latest software image}}
= = Configure TVP5151 Setup==<brsection begin=configure /> =Use the following steps to configure analog video:
You need the program [http://downloads*Connect a video composite input to J501 connector from IGEPv2 Expansion (near CAN Bus) or J402 connector from IGEP BERLIN (near HDMI output)*Connect a screen, for example HDMI monitor.igep*Refresh repositories and accept it.es<pre>zypper ref </files/mediapre> *Install video4linux2 plugin<pre>zypper in gst-plugins-ctl mediagood-ctl] this program it's useful for video4linux2</pre><section end=configure the ISP.<br/>
If you use the iommu2, tvp5151 and isp as modules before start you must insert it inside the == Play with TVP5151 ==<section begin=playigepv2 /><section begin=playberlin />*Load OMAP ISP kernel as:module<br> <pre>modprobe iommu2modprobe omap3-isp
</pre>
The insert order must be first the iommu2 and after that the omap3-isp.<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=playigepv2 /><section begin= Seteps playberlin />*Configure ISP, for PAL resulution use 720x576 for configure the 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 and TVP5151CCDC":1 [UYVY 720x480]' </pre> <section begin=playigepv2 />*Export display<pre>export DISPLAY=:0.0 </pre> *Launch gstreamer<brpre> 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 right ISP routing.<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]'</pre> Configure the video capture setup.<br> <pre>./media-ctl --set-format '"tvp5150 2-005c":0 [UYVY 720x628]'</pre> = Play with TVP5151<br> = You can use for get the captured images [http://downloads.igep.es/files/tvp5151/yavta yavta] or gstreamer as live stream.<br>  This is the suggested yavta capture setup:<br> <pre>./yavta -f UYVY -s 720x628 -n 4 --capture=4 -F /dev/video2</pre> or the gstreamer pipeline setup:<br> <pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=1&nbsp;! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=628&nbsp;! omapdmaifbsink</pre> = Dependeces<br> = *IGEPv2 board with a Expansion board.<br> *Camera with PAL output live video.<br> *ISEE IGEPv2 toolchain (IGEP VM suggested)<br> *Gstreamer. = BUGS Detected = {| widthcellspacing="5001" bordercellpadding="1" cellpaddingborder="1" cellspacingwidth="1200"
|-
! scope="col" | Issue ID! scope="col" | Description! scope="col" | Affected! scope="col" | Resolution|-| TVP5151-0031| TVP5151 it's not right initialized with IGEPv2 - DM3730| IGEPv2 RC board with DM3730| [http[Image://gitIgepv2expgstreamercapture.igep.es/?p=pub/scm/linux-omap-2.6.git;a=commit;h=4a2cb9a2582e1252f5643d196f876d81c7d57904 Pjpg|400px]]atch
|}
<section end=playigepv2 />
<section end=playberlin />
<br>     [[Category:How_to_forge]] [[Category:Gstreamer]] [[Category:Hardware]] [[Category:LinuxSoftware applications]]
0
edits