Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:add-ons: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
Previous revision
products:sbc:vim4:add-ons:vim4-mipi-camera [2023/09/28 03:24]
nick [Record Video via Gstreamer]
products:sbc:vim4:add-ons:vim4-mipi-camera [2024/09/24 03:46] (current)
nick [Preview video on ubuntu desktop]
Line 28: Line 28:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/video50 io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test_50.mp4+gst-launch-1.0 -e v4l2src device=/dev/video50 io-mode=mmap num-buffers=300 ! video/x-raw,format=NV21,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test_50.mp4
 ``` ```
  
Line 139: Line 139:
 ./mipi /dev/video50 ./mipi /dev/video50
 ``` ```
 +
 +==== Preview video on ubuntu desktop ====
 +
 +<tabbox Ubuntu 24.04>
 +
 +You can use gstreamer ''waylandsink'' to preview the video on Ubuntu Wayland desktop:
 +
 +```shell
 +gst-launch-1.0 v4l2src device=/dev/video50 io-mode=mmap  ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! waylandsink
 +```
 +
 +You can use the command below to check display fps:
 +
 +```shell
 +gst-launch-1.0 -v v4l2src device=/dev/video50 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! fpsdisplaysink video-sink=waylandsink sync=false text-overlay=false
 +```
 +
 +<tabbox Ubuntu 22.04>
 +
 +You can use gstreamer ''clutterautovideosink'' to preview the video on Ubuntu Wayland desktop:
 +
 +```shell
 +gst-launch-1.0 v4l2src device=/dev/video50 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! clutterautovideosink
 +```
 +
 +You can use the command below to check display fps:
 +
 +```shell
 +gst-launch-1.0 -v v4l2src device=/dev/video50 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! fpsdisplaysink video-sink=clutterautovideosink sync=false text-overlay=true
 +```
 +
 +You press ''Alt + F7'' and then move mouse to move the windown.
 +
 +</tabbox>
 +
 ===== Android ===== ===== Android =====
 WIP: WIP:
  
  
Last modified: 2023/09/28 03:24 by nick