Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:add-ons:edge2-mipi-camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:edge2:add-ons:edge2-mipi-camera [2025/08/28 21:44]
gray update imx585 & imx678 support in diff fenix version
products:sbc:edge2:add-ons:edge2-mipi-camera [2026/05/12 23:03] (current)
nick
Line 67: Line 67:
 gst-launch-1.0 v4l2src device=/dev/video42 io-mode=dmabuf min-buffers=64 num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video42.mp4 gst-launch-1.0 v4l2src device=/dev/video42 io-mode=dmabuf min-buffers=64 num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video42.mp4
 ``` ```
 +
 +Preview:
 +
 +```shell
 +gst-launch-1.0 v4l2src device=/dev/video42 io-mode=dmabuf min-buffers=64 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! waylandsink
 +```
 +
  
 Record video from ''CAM2'': Record video from ''CAM2'':
Line 73: Line 80:
 gst-launch-1.0 v4l2src device=/dev/video33 io-mode=dmabuf min-buffers=64 num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video33.mp4 gst-launch-1.0 v4l2src device=/dev/video33 io-mode=dmabuf min-buffers=64 num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video33.mp4
 ``` ```
 +
 +Preview:
 +
 +```shell
 +gst-launch-1.0 v4l2src device=/dev/video33 io-mode=dmabuf min-buffers=64 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! waylandsink
 +```
 +
 For 4K@60fps, framerate should be set 60/1 For 4K@60fps, framerate should be set 60/1
  
Line 80: Line 94:
 gst-launch-1.0 v4l2src device=/dev/video51 io-mode=dmabuf min-buffers=64 num-buffers=600 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=60/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video51.mp4 gst-launch-1.0 v4l2src device=/dev/video51 io-mode=dmabuf min-buffers=64 num-buffers=600 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=60/1 ! mpph264enc ! h264parse ! qtmux ! filesink location=/tmp/video51.mp4
 ``` ```
 +
 +Preview:
 +
 +```shell
 +gst-launch-1.0 v4l2src device=/dev/video51 io-mode=dmabuf min-buffers=64 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! waylandsink
 +```
 +
  
 /* /*
Line 199: Line 220:
  
 ==== Camera Interfaces Performance ==== ==== Camera Interfaces Performance ====
-=== For hardware version V11, V12, and V13 without adding ''cam2-4lane'' overlay node:=== 
  
-  Only activate one cameras:+<tabbox IMX415> 
 +  connect one camera separately: 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@30fps          | 
 +^  CAM2  |       4K@30fps        |          4K@60fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          | 
 + 
 +  * connect two cameras to CAM3 and CAM2 simultaneously 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM2  |       4K@30fps        |          4K@60fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          | 
 + 
 +  * connect three camera simultaneously: 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@25fps          | 
 +^  CAM2  |       4K@30fps        |          4K@50fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          | 
 + 
 +<tabbox OS08A10> 
 +  * connect one camera separately: 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@30fps          | 
 +^  CAM2  |       4K@30fps        |          4K@46fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          | 
 + 
 +  * connect two cameras to CAM3 and CAM2 simultaneously 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM2  |       4K@30fps        |          4K@46fps          | 
 +^  CAM3  |       4K@46fps        |          4K@46fps          | 
 + 
 +  * connect three camera simultaneously: 
 + 
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@30fps          | 
 +^  CAM2  |       4K@30fps        |          4K@46fps          | 
 +^  CAM3  |       4K@46fps        |          4K@46fps          |
  
-|        ^  Frame rate    ^ +<tabbox IMX585> 
-^  CAM1  |  4K@30fps +  * connect one camera separately:
-^  CAM2  |  4K@30fps +
-^  CAM3  |  4K@60fps  |+
  
-  * Simultaneously activate three cameras:+|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@30fps          | 
 +^  CAM2  |       4K@30fps        |          4K@60fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
-|        ^  Frame rate    ^ +  * connect two cameras to CAM3 and CAM2 simultaneously
-^  CAM1  |  4K@20fps +
-^  CAM2  |  4K@25fps +
-^  CAM3   4K@60fps  |+
  
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^
 +^  CAM2  |       4K@30fps        |          4K@60fps          |
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
-===For hardware version V13 with adding ''cam2-4lane'' overlay node:===+  * connect three camera simultaneously:
  
-  * Only activate one cameras:+|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@18fps        |          4K@15fps          | 
 +^  CAM2  |       4K@23fps        |          4K@30fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
-|        ^  Frame rate    ^ +<tabbox IMX678> 
-^  CAM1  |  4K@30fps +  * connect one camera separately:
-^  CAM2  |  4K@60fps +
-^  CAM3  |  4K@60fps  |+
  
-  * Simultaneously activate three cameras:+|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM1  |       4K@30fps        |          4K@30fps          | 
 +^  CAM2  |       4K@30fps        |          4K@60fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
-|        ^  Frame rate    ^ +  * connect two cameras to CAM3 and CAM2 simultaneously
-^  CAM1  |  4K@15fps +
-^  CAM2  |  4K@30fps +
-^  CAM3   4K@60fps  |+
  
-  * connect 2 cameras to CAM3 and CAM2 interfaces:+|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^ 
 +^  CAM2  |       4K@30fps        |          4K@60fps          | 
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
-|        ^  Frame rate    ^ +  * connect three camera simultaneously:
-^  CAM2  |  4K@60fps +
-^  CAM3  |  4K@60fps  |+
  
 +|    ^    CAM2 2lane    ^    CAM2 4lane (only V13 or later version support)    ^
 +^  CAM1  |       4K@30fps        |          4K@25fps          |
 +^  CAM2  |       4K@30fps        |          4K@50fps          |
 +^  CAM3  |       4K@60fps        |          4K@60fps          |
  
 +</tabbox>
  
 ===== Android ===== ===== Android =====
Last modified: 2025/08/28 21:44 by gray