Difference between revisions of "Using IGEP CAM OV5640 steps"

From IGEP - ISEE Wiki

Jump to: navigation, search
m (Resolutions and frame rates)
 
(16 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
This software is provided entirely and is not licensed for any use other than evaluation purposes of the IGEP technology based devices.
 
This software is provided entirely and is not licensed for any use other than evaluation purposes of the IGEP technology based devices.
  
Please see the corresponding sections above for details.
+
Please see the corresponding sections below for details.
  
 
= IGEP SMARC i.MX6 =
 
= IGEP SMARC i.MX6 =
  
IGEP SMARC i.MX6 has support for IGEP CAM OV5640, download or compile latest [http://www.example.com Yocto Project 1.8 - Poky 13.0.y "Fido"].
+
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://labs.isee.biz/index.php/Yocto_Project_1.8_-_Poky_13.0.y_%22Fido%22 Yocto Project 1.8 - Poky 13.0.y "Fido"].
  
== Resolutions and frame rates ==
+
The following steps and results has been tested with IGEP SMARC Expansion (BASE0040).
 +
 
 +
== Resolutions and frame rates for IGEP SMARC i.MX6==
  
 
The following table shows the available resolutions:
 
The following table shows the available resolutions:
  
{| align="JUSTIFY" cellpadding="1" border="1" style="width: 300px; height: 1px;"
+
{| align="JUSTIFY" cellpadding="1" border="1" style="width: 750px; height: 1px;"
 
|-
 
|-
| '''Resolution'''  
+
| '''Resolution:'''  
| '''Capture mode'''  
+
| '''Capture mode:'''  
| '''Available frame rates per second'''  
+
| '''Available frame rates per second:'''  
| '''Captured frame rates per second'''  
+
| '''Max captured frame rates per second:'''  
 
|-
 
|-
 
| QCIF (176x144)
 
| QCIF (176x144)
Line 69: Line 71:
 
| 6,5
 
| 6,5
 
|}
 
|}
 +
 +
== Gstreamer pipes for IGEP SMARC i.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 table '''Resolutions and frame rates for IGEP SMARC i.MX6'''.
 +
 +
* Stream video to main display output in 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=30 capture-mode=3 device=/dev/video0 ! filesink location=sample.yuv </pre>
 +
 +
* Capture jpeg image:
 +
 +
<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 =
 
= IGEP COM MODULE =

Latest revision as of 17:19, 21 April 2017

Overview

This article contains information about HOWTO use IGEP CAM OV5640 (CAMR0030) with IGEP processor boards.

IMPORTANT NOTE: This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This software is provided entirely and is not licensed for any use other than evaluation purposes of the IGEP technology based devices.

Please see the corresponding sections below for details.

IGEP SMARC i.MX6

IGEP SMARC i.MX6 has support for IGEP CAM OV5640, download firmware or compile latest 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 i.MX6

The following table shows the available resolutions:

Resolution: Capture mode: Available frame rates per second: Max captured frame rates per second:
QCIF (176x144) 7 15/30 30
QVGA (320x240) 1 15/30 30
VGA (640x480) 0 15/30 27,41
NTSC (720x480) 2 15/30 30
PAL (720x576) 3 15/30 30
XGA (1024x768) 8 15/30 26,37
720p (1280x720) 4 15/30 28,44
1080p (1920x1080) 5 15 14
QSXGA (2592x1944) 6 15 6,5

Gstreamer pipes for IGEP SMARC i.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 table Resolutions and frame rates for IGEP SMARC i.MX6.

  • Stream video to main display output in mode 3 (PAL):
export DISPLAY=:0.0; gst-launch imxv4l2src fps-n=30 capture-mode=3 device=/dev/video0 ! imxv4l2sink 
  • Stream video to main display output in mode 4 (720p):
export DISPLAY=:0.0; gst-launch imxv4l2src fps-n=30 capture-mode=4 device=/dev/video0 ! imxv4l2sink 
  • Save RAW video:
gst-launch imxv4l2src fps-n=30 capture-mode=3 device=/dev/video0 ! filesink location=sample.yuv 
  • Capture jpeg image:
gst-launch imxv4l2src fps-n=15 capture-mode = 6 num-buffers=1 device=/dev/video0 ! ffmpegcolorspace ! jpegenc ! filesink location=sample.jpg 
  • RTP Streaming (localhost loopback example):
    • Receiver
gst-launch -v udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" port=5000  ! rtph264depay ! vpudec ! imxv4l2sink
    • Sender
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

IGEP COM MODULE

under construction

IGEPv2

under construction