USB depolama ve USB (UVC) kamera kullanımı
Banana Pi BPI-M7 · USB belleği bağlama ve UVC kamerayla GStreamer üzerinden önizleme/fotoğraf/video.
USB belleği takıp tanındığını kontrol edin, ardından bağlayın:
cat /proc/partitions | grep "sd*"
sudo mount /dev/sda1 /test/
df -h | grep "sd"UVC kamerayı takıp aygıt düğümünü bulun ve önizleyin:
v4l2-ctl --list-devices
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;Fotoğraf çekmek ve video kaydetmek için:
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=/home/armsom/test.jpg;gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/armsom/test.mp4/dev/video0 yerine v4l2-ctl çıktısındaki aygıtı kullanın. Masaüstünde Cheese ile de açabilirsiniz.