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=true1280x720:
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=true1920x1080:
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=true5 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=true1080p@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=true5 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.mp41080p@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