Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Using IGEP CAM OV5640 steps

912 bytes added, 17:19, 21 April 2017
no edit summary
= IGEP SMARC i.MX6 =
IGEP SMARC i.MX6 has support for IGEP CAM OV5640, download [http://downloads.isee.biz/pub/releases/firmware/igep_firmware-yocto-1.8-0-imx6q-igep0046.tar.bz2 firmware] or compile latest [http://wwwlabs.isee.biz/index.php/Yocto_Project_1.8_-_Poky_13.example0.com y_%22Fido%22 Yocto Project 1.8 - Poky 13.0.y "Fido"].
The following steps and results has been tested with IGEP SMARC Expansion (BASE0040).
== Resolutions and frame rates for IGEP SMARC Ii.MX6==
The following table shows the available resolutions:
{| align="JUSTIFY" cellpadding="1" border="1" style="width: 300px750px; height: 1px;"
|-
| '''Resolution:''' | '''Capture mode:''' | '''Available frame rates per second:''' | '''Captured Max captured frame rates per second:'''
|-
| QCIF (176x144)
|}
== Gstreamer pipes for IGEP SMARC Ii.MX6==
'''IMPORTANT NOTES:'''
See available fps-n parameters into '''Available frame rates per second''' column from table'''Resolutions and frame rates for IGEP SMARC i.MX6'''.
See available capture-mode parameters into '''Capture mode''' column from column table'''Resolutions and frame rates for IGEP SMARC i.MX6'''.
* Stream video to main display outputin mode 3 (PAL):
<pre>export DISPLAY=:0.0; gst-launch imxv4l2src fps-n=30 capture-mode=3 device=/dev/video0 ! imxv4l2sink </pre>
 
* Stream video to main display output in mode 4 (720p):
 
<pre>export DISPLAY=:0.0; gst-launch imxv4l2src fps-n=30 capture-mode=4 device=/dev/video0 ! imxv4l2sink </pre>
* Save RAW video:
<pre>gst-launch imxv4l2src fps-n=15 capture-mode = 6 num-buffers=1 device=/dev/video0 ! ffmpegcolorspace ! jpegenc ! filesink location=sample.jpg </pre>
 
* RTP Streaming (localhost loopback example):
** Receiver
<pre>gst-launch -v udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" port=5000 ! rtph264depay ! vpudec ! imxv4l2sink</pre>
** Sender
<pre>
gst-launch-0.10 -e -v imxv4l2src capture-mode=0 fps-n=30 device=/dev/video0 ! vpuenc codec=avc force-framerate=1 framerate-nu=25 ! rtph264pay ! udpsink host=127.0.0.1 port=5000 sync=false
</pre>
= IGEP COM MODULE =