Changes

Jump to navigation Jump to search
Line 98: Line 98:  
==== v4l2-ctl ====
 
==== v4l2-ctl ====
    +
===== Install v4l2-utils =====
 +
<code>sudo apt-get install v4l-utils</code>
 +
 +
===== List the data formats supported by the camera =====
 +
<code>v4l2-ctl --list-formats-ext</code>
 +
 +
===== Snap YUV picture =====
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=uyvy-1920x1080.yuv</code>
 +
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code>
 +
 +
Play YUV picture
 +
 +
<code>ffplay -f rawvideo -video_size 1920x1080 -pix_fmt nv12 nv12-1920x1080.yuv</code>
 +
 +
===== Check frame rate =====
 +
<code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code>
 +
<br />
 
==== yavta ====
 
==== yavta ====
  

Navigation menu