Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:add-ons:new-vim4-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 Both sides next revision
products:sbc:vim4:add-ons:new-vim4-mipi-camera [2023/09/24 21:27]
nick
products:sbc:vim4:add-ons:new-vim4-mipi-camera [2023/09/24 21:34]
nick
Line 91: Line 91:
  
 ==== Record video via gstreamer ==== ==== Record video via gstreamer ====
 +
 +<WRAP important >
 +Only for 5.15 kernel.
 +</WRAP>
 +
  
 Record video and perform ''H264'' encoding: Record video and perform ''H264'' encoding:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/media0  io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21 ! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test-h264.mp4+gst-launch-1.0 v4l2src device=/dev/media0  io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21,width=3840,height=2160,framerate=30/! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test-h264.mp4
  
 ``` ```
Line 103: Line 108:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/media0  io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21 ! amlvenc bitrate=8000 ! h265parse ! qtmux ! filesink location=test-h265.mp4+gst-launch-1.0 v4l2src device=/dev/media0  io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21,width=3840,height=2160,framerate=30/! amlvenc bitrate=8000 ! h265parse ! qtmux ! filesink location=test-h265.mp4
  
 ``` ```
Last modified: 2024/05/18 03:13 by nick