• 07/14/2017
  • Public Content
Contents

13MP Camera Examples with GStreamer

13 MPixel camera viewfinding 30 fps
13 MPixel camera viewfinding is supported for the following resolutions:
640x480:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=0 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=0 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=0 io-mode=3 ! video/x-raw,format=NV12,width=1920,height=1080 ! vaapisink dmabuf-alloc-tiled=true
3840x2160:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=0 io-mode=3 ! video/x-raw,format=NV12,width=3840,height=2160 ! vaapisink dmabuf-alloc-tiled=true
 
Note
: To get the 4k resolution viewfinder (3840x2160) running at a sustained 30 fps, it might be required to change the maximum TDP (Thermal Design Power) of the system and also apply an active cooling solution.
 
13 MPixel camera viewfinding above 30 fps
13 MPixel camera viewfinding for higher framerates is supported for:
720p@60:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=0 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=0 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1 ! vaapisink dmabuf-alloc-tiled=true
720p@115:
gst-launch-1.0 icamerasrc
num-buffers=300
device-name=0 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1280,height=720,framerate=120/1 ! vaapipostproc dmabuf-alloc-tiled=true ! fakesink
 
Note
: 115 fps only works with the fakesink since the vaapisink limits the framerate to the display framerate.
 
13 MPixel camera video recording
13 MPixel camera video recording is supported for the following resolutions:
640x480:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=0 io-mode=3 ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true ! h264parse ! mp4mux ! queue ! filesink location=test.mp4
1280x720:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=0 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=0 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
3840x2160:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=0 io-mode=3 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true ! h264parse ! mp4mux ! queue ! filesink location=test.mp4
 
Note
: To get the 4k resolution video recording (3840x2160) running at a sustained 30 fps, it might be required to change the maximum TDP (Thermal Design Power) of the system and also apply an active cooling solution. The TDP can be changed in the following BIOS menu:
 
Device Manager -> System Setup -> CPU Configuration -> CPU Power Management -> Change “Power Limit 1 Power” from 4 to 8 (Watt).
 
13 Mpixel camera video recording above 30 fps
13 MPixel camera video recording for higher framerates is supported for:
720p@60:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=0 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=0 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
720p@115:
gst-launch-1.0 -e icamerasrc
num-buffers=300
device-name=0 io-mode=3 printfps=true ! video/x-raw,format=NV12,width=1280,height=720,framerate=120/1 ! vaapih264enc tune=low-power dmabuf-alloc-tiled=true !
h264parse !
mp4mux ! queue ! filesink location=test.mp4
 
Note
: The field of view for 720p@115 is smaller than for other resolution/framerate combinations. This is a hardware limitation. The camera sensor needs to do cropping in order to fit within the CSI bandwidth.
 
 

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804