...
viewer: YUView
format: YUV422(UYVY)
test frame count: 300 Frame
5.1 Do not write camera data to rootfs
...
Code Block |
---|
nohup v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY --set-parm=60 --stream-mmap=10 --stream-count=300 > my_script.log 2>&1 & top -d 0.5 | grep "v4l2-ctl" |
Result:
Frame size/Frame rate/Format | bitrate | CPU loading | memory | FPS | drop frame |
1920*1080@30FPS UYVY | 124.416MB/s | 1.9% | 0.0 | 30 | NO |
1920*1080@15FPS UYVY | 62.208MB/s | 1.9% | 0.0 | 15 | NO |
1280*720@60FPS UYVY | 110.592MB/s | 2.0% | 0.0 | 60 | NO |
1280*720@30FPS UYVY | 55.296MB/s | 1.9% | 0.0 | 30 | NO |
1280*720@15FPS UYVY | 27.648MB/s | 2.0% | 0.0 | 15 | NO |
640*480@60FPS UYVY | 36.864MB/s | 1.9% | 0.0 | 60 | NO |
640*480@30FPS UYVY | 18.432MB/s | 1.9% | 0.0 | 30 | NO |
640*480@15FPS UYVY | 9.216MB/s | 1.9% | 0.0 | 15 | NO |
5.2 Write camera data to rootfs
...
Code Block |
---|
echo Y > /sys/module/videobuf2_dma_contig/parameters/dmaremap nohup v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-parm=30 --stream-mmap=10 --stream-count=300 --stream-to=/tmp/OV5640_UYVY_1080P_30FPS.yuv > my_script.log 2>&1 & top -d 0.5 | grep "v4l2-ctl" |
Result:
Frame size/Frame rate/Format | bitrate | CPU loading | memory | FPS | Drop frame | Video |
1920*1080@30FPS UYVY | 124.416MB/s | 32.7% | 0.0 | 30 | NO | normal |
1920*1080@15FPS UYVY | 62.208MB/s | 17.0% | 0.0 | 15 | NO | normal |
1280*720@60FPS UYVY | 110.592MB/s | 30.2% | 0.0 | 60 | NO | video is dark. |
1280*720@30FPS UYVY | 55.296MB/s | 15.1% | 0.0 | 30 | NO | normal |
1280*720@15FPS UYVY | 27.648MB/s | 7.5% | 0.0 | 15 | NO | normal |
640*480@60FPS UYVY | 36.864MB/s | 11.3% | 0.0 | 60 | NO | video is pinkish |
640*480@30FPS UYVY | 18.432MB/s | 5.7% | 0.0 | 30 | NO | normal |
640*480@15FPS UYVY | 9.216MB/s | 2.6% | 0.0 | 15 | NO | normal |