Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge-2l:add-ons:edge-2l-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:edge-2l:add-ons:edge-2l-mipi-camera [2025/12/01 05:05]
gray update to Edge-2L data, but unverified
products:sbc:edge-2l:add-ons:edge-2l-mipi-camera [2026/05/11 02:05] (current)
nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:add-ons:edge-2l-mipi-camera to products:sbc:edge-2l:add-ons:edge-2l-mipi-camera
Line 2: Line 2:
  
  
-====== Edge-2L MIPI Camera Usage ======+====== Edge-2L MIPI camera usage ======
  
  
 ===== Linux ===== ===== Linux =====
  
-Edge-2L all camera interfaces support **4K@60fps** record.+All camera interfaces on the Edge-2L support 4K@60fps recording.
  
-==== Video Node ====+==== Video node ====
  
  
Line 15: Line 15:
  
 |        ^  Video Node    ^ |        ^  Video Node    ^
-^  CAM0   /dev/video33  | +^  CAM1   /dev/video22  | 
-^  CAM1   /dev/video21  |+^  CAM2   /dev/video31  |
  
-==== Record Video with Gstreamer ====+==== Record video with gstreamer ====
  
  
-Record video from ''CAM0'':+Record video from ''CAM2'':
  
 ```shell ```shell
-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/video31 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/video31.mp4
 ``` ```
  
Line 30: Line 30:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/video21 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/video21.mp4+gst-launch-1.0 v4l2src device=/dev/video22 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/video22.mp4
 ``` ```
  
-==== Capture Frame with V4L2 Utils ====+==== Capture frame with V4L2 utils ====
  
 Follow the steps below to install ''v4l-utils'': Follow the steps below to install ''v4l-utils'':
Line 42: Line 42:
 ``` ```
  
-Capture frame from ''CAM0'':+Capture frame from ''CAM2'':
  
 ```shell ```shell
-v4l2-ctl -d /dev/video33 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/data33.yuv --stream-count=1 --stream-poll+v4l2-ctl -d /dev/video31 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/data31.yuv --stream-count=1 --stream-poll
 ``` ```
  
Line 51: Line 51:
  
 ```shell ```shell
-v4l2-ctl -d /dev/video21 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/data21.yuv --stream-count=1 --stream-poll+v4l2-ctl -d /dev/video22 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/data22.yuv --stream-count=1 --stream-poll
 ``` ```
  
  
-Preview the file:+Preview the captured file:
  
 ```shell ```shell
Line 62: Line 62:
 ``` ```
  
-==== Camera Interfaces Performance ====+==== Camera interfaces performance ====
  
 <tabbox IMX415> <tabbox IMX415>
-  * connect one camera separately:+  * Connect one camera separately:
  
 |    ^    frame rate    ^  |    ^    frame rate    ^ 
-^  CAM0  |       4K@60fps        | 
 ^  CAM1  |       4K@60fps        | ^  CAM1  |       4K@60fps        |
 +^  CAM2  |       4K@60fps        |
  
  
-  * connect two cameras simultaneously+  * Connect two cameras simultaneously:
  
 |    ^   frame rate     ^ |    ^   frame rate     ^
 +^  CAM1  |       4K@60fps        |
 ^  CAM2  |       4K@60fps        | ^  CAM2  |       4K@60fps        |
-^  CAM3  |       4K@60fps        | 
  
 <tabbox OS08A10> <tabbox OS08A10>
-  * connect one camera separately:+  * Connect one camera separately: 
 |    ^    frame rate    ^  |    ^    frame rate    ^ 
-^  CAM0  |       4K@60fps        | 
 ^  CAM1  |       4K@60fps        | ^  CAM1  |       4K@60fps        |
 +^  CAM2  |       4K@60fps        |
  
  
-  * connect two cameras simultaneously+  * Connect two cameras simultaneously:
  
 |    ^   frame rate     ^ |    ^   frame rate     ^
 +^  CAM1  |       4K@60fps        |
 ^  CAM2  |       4K@60fps        | ^  CAM2  |       4K@60fps        |
-^  CAM3  |       4K@60fps        | 
  
 <tabbox IMX585> <tabbox IMX585>
-  * connect one camera separately:+  * Connect one camera separately:
  
 |    ^    frame rate    ^  |    ^    frame rate    ^ 
-^  CAM0  |       4K@60fps        | 
 ^  CAM1  |       4K@60fps        | ^  CAM1  |       4K@60fps        |
 +^  CAM2  |       4K@60fps        |
  
  
-  * connect two cameras simultaneously+  * Connect two cameras simultaneously:
  
 |    ^   frame rate     ^ |    ^   frame rate     ^
 +^  CAM1  |       4K@60fps        |
 ^  CAM2  |       4K@60fps        | ^  CAM2  |       4K@60fps        |
-^  CAM3  |       4K@60fps        | 
  
  
 <tabbox IMX678> <tabbox IMX678>
-  * connect one camera separately:+  * Connect one camera separately:
  
 |    ^    frame rate    ^  |    ^    frame rate    ^ 
-^  CAM0  |       4K@60fps        | 
 ^  CAM1  |       4K@60fps        | ^  CAM1  |       4K@60fps        |
 +^  CAM2  |       4K@60fps        |
  
  
-  * connect two cameras simultaneously+  * Connect two cameras simultaneously:
  
 |    ^   frame rate     ^ |    ^   frame rate     ^
 +^  CAM1  |       4K@60fps        |
 ^  CAM2  |       4K@60fps        | ^  CAM2  |       4K@60fps        |
-^  CAM3  |       4K@60fps        | 
  
 </tabbox> </tabbox>
Last modified: 2025/12/01 05:05 by gray