Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup tvp5151 video decoder

549 bytes removed, 14:00, 26 July 2013
Remove kernel 2.6.35 (deprecated)
<br>
= Get the ISP kernel binaries Dependecies =
You can download the compiled images from here: *IGEP Board with TVP5151 peripheral (IGEPv2 Expansion Board or IGEP Berlin).*Camera with PAL output live video.*IGEP SDK (IGEP VM suggested).
[http://downloads.isee.biz/pub/files/tvp5151/= Kernel 2.6.35/uImage Kernel 2.637.35 (uImage)] y === IGEP Firmware Yocto ==
''(from [[httpHow to create a SD-card with the latest software image]])'' {{://downloads.isee.biz/pub/files/tvp5151/2.6.35/zImage Kernel 2.6.35 (zImage)] How to create a SD-card with the latest software image}}
[http== Configure TVP5151 ==<section begin=configure />Use the following steps to configure analog video://downloads.isee.biz/pub/files/tvp5151/2.6.35/linux-2.6.35-10-modules.tgz Kernel 2.6.35 (Modules])
= TVP5151 Setup<br> = You need the program [http://downloads.isee.biz/pub/files/tvp5151/2.6.35/media-ctl media-ctl] this program it's useful for configure the ISP.<br>  There are two modules that you will use that are not inserted into the kernel: iommu2 *Connect a video composite input to J501 connector from IGEPv2 Expansion (tvp5151near CAN Bus) and isp.  You have to load these kernel modules before start:<br> <pre>modprobe iommu2modprobe omap3-isp</pre> or J402 connector from IGEP BERLIN (Note: The first load order must be the iommu2 and then the omap3-ispnear HDMI output)<br> *Connect a screen, for example HDMI monitor. == Steps to configure the ISP *Refresh repositories and TVP5151<br> == Configure the right ISP routingaccept it.<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]'zypper ref </pre> Configure the video capture setup.<br> *Install video4linux2 plugin<pre>./media-ctl -zypper in gst-setplugins-format '"tvp5150 2good-005c":0 [UYVY 720x628]'video4linux2
</pre>
<section end=configure />
== Play with TVP5151<br> =You can use for get the captured images [http://downloads.isee.biz/pub/files/tvp5151/2.6.35/yavta yavta] or gstreamer as live stream.<br>  This is the suggested yavta capture setup:<br> <pre>./yavta -f UYVY -s 720x628 -n 4 --capturesection begin=4 -F playigepv2 /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,heightsection begin=628&nbsp;! omapdmaifbsink<playberlin /pre> or using gstreamer for the TCP live streaming:  Set up UDP server from IGEPv2:*Load OMAP ISP kernel module<br> <pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queuemodprobe omap3-size=8 ! video/x-raw-yuv,format=\(fourcc\)UYVY ! TIVidenc1 codecName=h264enc \engineName=codecServer resolution=720x576 ! rtph264pay pt=96 ! udpsink host=&lt;YOUR_PC_IP&gt; port=&lt;PORT&gt;isp
</pre>
Set up UDP client on your Machine<section end=playberlin />*Configure ISP, for PAL resulution use 720x576 for NTSC resolution use 720x480 for '''IGEPv2 Expansion''': <br><pre>gstmedia-ctl -r -launchl '"tvp5150 2-005c":0.10 -v udpsrc do-timestamp=false port=&ltgt;PORT"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1-&gt;&nbsp; caps="application/xOMAP3 ISP CCDC output":0[1]'media-ctl -v --set-format '"tvp5150 2-rtp, 005c":0 [UYVY 720x480]'media=(string)video, clock-rate=(int)90000, \ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'encodingmedia-namectl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre> <section end=(string)H264, payloadplayigepv2 /><section begin=(int)96playberlin />*Configure ISP, ssrc=(uint)446210637for 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], clock"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'media-base=(uint)697749128, seqnumctl -v --set-format '"tvp5150 3-base=(uint)21380005d" ! queue \ :0 [UYVY 720x480]'! rtph264depay ! ffdec_h264 ! xvimagesinkmedia-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= Dependecies<brpre> export DISPLAY*IGEPv2 board with a Expansion board:0.0 <br/pre> *Camera with PAL output live video.Launch gstreamer<brpre> *ISEE IGEPv2 toolchain gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=8&nbsp;! video/x-raw-yuv,format=\(IGEP VM suggestedfourcc\)UYVY,width=720,height=480&nbsp;! ffmpegcolorspace&nbsp;! autovideosink<br/pre> *Gstreamer. = BUGS Detected =Now you can see in your IGEP screen a result similar like this
{| width="1000" cellspacing="1" cellpadding="1" border="1"|-! scope="col" | Issue ID ! scope="col" | Description ! scope="col" | Affected ! scopewidth="col200" | 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 Patchjpg|400px]]
|}
<section end=playigepv2 /><brsection end=playberlin />
[[Category:Gstreamer]]
[[Category:Software applications]]
0
edits