[i.MX8M] How to display camera screen

$dmesg | grep ov5640    (先看有沒有抓到camera device)

$v4l2-ctl --list-devices  (列出camera device)

$gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! waylandsink
(把camera 畫面顯示在yocto上)

$gst-launch-1.0 v4l2src device="/dev/video0" num-buffers=1 ! capsfilter caps="video/x-raw, width=640, height=480, framerate=30/1" ! videoconvert ! jpegenc ! filesink location=snapshot.jpeg
(透過camera 拍照並存檔 snapshot.jpeg )

留言