• 07/14/2017
  • Public Content
Contents

5MP Camera Examples with GStreamer

5 MPixel camera viewfinding 30 fps
5 MPixel camera viewfinding is supported for the following resolutions:
640x480:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=640,height=480 ! vaapisink dmabuf-alloc-tiled=true
1280x720:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=1280,height=720 ! vaapisink dmabuf-alloc-tiled=true
1920x1080:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=1920,height=1080 ! vaapisink dmabuf-alloc-tiled=true
5 MPixel camera viewfinding above 30 fps
5 MPixel camera viewfinding for higher framerates is supported for:
720p@60:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=1 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1280,height=720,framerate=60/1 ! vaapisink dmabuf-alloc-tiled=true
1080p@60:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=1 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1 ! vaapisink dmabuf-alloc-tiled=true
5 MPixel camera video recording
5 MPixel camera video recording is supported for the following resolutions:
640x480:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true !
h264parse !
mp4 mux ! queue ! filesink location=test.mp4
1280x720:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true !
h264parse !
mp4mux ! queue ! filesink location=test.mp4
1920x1080:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=1 io-mode=3 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true !
h264parse !
mp4mux ! queue ! filesink location=test.mp4
5 Mpixel camera video recording above 30 fps
5 MPixel camera video recording for higher framerates is supported for:
720p@60:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=1 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1280,height=720,framerate=60/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true ! h264parse ! mp4mux ! queue ! filesink location=test.mp4
1080p@60:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=1 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true ! h264parse ! mp4mux ! queue ! filesink location=test.mp4
 

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.