Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup tvp5151 video decoder

1,054 bytes removed, 14:00, 26 July 2013
Remove kernel 2.6.35 (deprecated)
<br>
= Dependecies<br> =
*IGEP Board with TVP5151 peripheral (IGEPv2 board with a Expansion boardBoard or IGEP Berlin).<br> *Camera with PAL output live video.<br> *ISEE IGEPv2 toolchain IGEP SDK (IGEP VM suggested)<br> *Gstreamer.
= Get the ISP kernel binaries Kernel 2.6.37.y === IGEP Firmware Yocto ==
You can download ''(from [[How to create a SD-card with the compiled images from herelatest software image]])'' {{: 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/uImage Kernel 2.6.35 (uImage)]
[http://downloads.isee.biz/pub/files/tvp5151/2.6.35/zImage Kernel 2.6.35 *Connect a video composite input to J501 connector from IGEPv2 Expansion (zImagenear CAN Bus)]  [http://downloads.isee.biz/pub/files/tvp5151/2.6.35/linux-2.6.35-10-modules.tgz Kernel 2.6.35 or J402 connector from IGEP BERLIN (Modules]near HDMI output= 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 *Connect a screen, for configure the ISP. You can download the sources from [http://downloads.iseeexample HDMI monitor.biz/pub/files/tvp5151/2.6.37/media-ctl.tar.gz here]&nbsp;or access to media-ctl git from [http://git.ideasonboard.org/media-ctl.git/commit/b16cbe7bce0fd8d9d940473a2272b6b0148795c3 here].<br>  There are two modules that you will use that are not inserted into the kernel: iommu2 (tvp5151) *Refresh repositories and ispaccept it.  You have to load these kernel modules before start:<br> <pre>modprobe iommu2modprobe omap3-ispzypper ref </pre> (Note: The first load order must be the iommu2 and then the omap3-isp)<br>  == Steps to configure the ISP and TVP5151<br> == 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> *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.&nbsp;You can download the sources from [http://downloads.isee.biz/pub/files/tvp5151/2.6.37/yavta.tar.gz here] or access to yavta git from [http://git.ideasonboard.org/yavta.git/commit/82ff2efdb9787737b9f21b6f4759f077c827b238 here].  This is the suggested yavta capture setup:<br> <pre>./yavta -f UYVY -s 720x628 -n 4 --capturesection begin=4 -F /dev/video2<playigepv2 /pre> or the gstreamer pipeline setup:<br> <pre>gst-launch-0.10 -v v4l2src device=/dev/video2 queue-sizesection begin=1&nbsp;! videoplayberlin /x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=628&nbsp;! omapdmaifbsink</pre> or using gstreamer for the TCP live streaming:  Set up UDP server from IGEPv2:*Load OMAP ISP kernel module<br> <pre>gst-launchmodprobe omap3-0.10 -v v4l2src device=/dev/video2 queue-size=8&nbsp;! video/x-raw-yuv,format=\(fourcc\)UYVY&nbsp;! TIVidenc1 codecName=h264enc \engineName=codecServer resolution=720x576&nbsp;! rtph264pay pt=96&nbsp;! 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-005c":0 [UYVY 720x480]'media-ctl -v --set-rtp, format '"OMAP3 ISP CCDC":0 [UYVY 720x480]'media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre> <section end=(string)videoplayigepv2 /><section begin=playberlin />*Configure ISP, clockfor PAL resulution use 720x576 for NTSC resolution use 720x480 for '''IGEP BERLIN''':<br><pre>media-rate=(int)90000ctl -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]'encodingmedia-ctl -v -name-set-format '"OMAP3 ISP CCDC":1 [UYVY 720x480]' </pre> <section begin=(string)H264, payloadplayigepv2 />*Export display<pre>export DISPLAY=(int)96, ssrc=(uint)446210637, clock:0.0 </pre> *Launch gstreamer<pre>gst-launch-0.10 -basev v4l2src device=(uint)697749128, seqnum/dev/video2 queue-basesize=(uint)21380"8&nbsp;! queue video/x-raw-yuv,format=\(fourcc\ ! rtph264depay)UYVY,width=720,height=480&nbsp;! ffdec_h264ffmpegcolorspace&nbsp;! xvimagesinkautovideosink</pre> = 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