From 59f2ba32cd05319ec86188de803329ad8bbd8618 Mon Sep 17 00:00:00 2001 From: MIfoodie <94649676+MIfoodie@users.noreply.github.com> Date: Sun, 21 Jan 2024 23:16:16 -0500 Subject: [PATCH] rpicam-{hello,jpeg,raw,still,vid}: add page (#12078) * rpicam-{hello,jpeg,raw,still,vid}: add page --------- Co-authored-by: Juri Dispan Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/linux/rpicam-hello.md | 12 ++++++++++++ pages/linux/rpicam-jpeg.md | 16 ++++++++++++++++ pages/linux/rpicam-raw.md | 12 ++++++++++++ pages/linux/rpicam-still.md | 16 ++++++++++++++++ pages/linux/rpicam-vid.md | 13 +++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 pages/linux/rpicam-hello.md create mode 100644 pages/linux/rpicam-jpeg.md create mode 100644 pages/linux/rpicam-raw.md create mode 100644 pages/linux/rpicam-still.md create mode 100644 pages/linux/rpicam-vid.md diff --git a/pages/linux/rpicam-hello.md b/pages/linux/rpicam-hello.md new file mode 100644 index 000000000..d81543544 --- /dev/null +++ b/pages/linux/rpicam-hello.md @@ -0,0 +1,12 @@ +# rpicam-hello + +> View a live camera stream using a Raspberry Pi camera. +> More information: . + +- Display a camera preview stream for a specific amount of time (in milliseconds): + +`rpicam-hello -t {{time}}` + +- Tune the configuration for a particular camera sensor: + +`rpicam-hello --tuning-file {{/usr/share/libcamera/ipa/rpi/path/to/config.json}}` diff --git a/pages/linux/rpicam-jpeg.md b/pages/linux/rpicam-jpeg.md new file mode 100644 index 000000000..5a735d311 --- /dev/null +++ b/pages/linux/rpicam-jpeg.md @@ -0,0 +1,16 @@ +# rpicam-jpeg + +> Capture and store a JPEG image using a Raspberry Pi camera. +> More information: . + +- Capture an image and name the file: + +`rpicam-jpeg -o {{path/to/file.jpg}}` + +- Capture an image with set dimensions: + +`rpicam-jpeg -o {{path/to/file.jpg}} --width {{1920}} --height {{1080}}` + +- Capture an image with an exposure of 20 seconds and a gain of 150%: + +`rpicam-jpeg -o {{path/to/file.jpg}} --shutter 20000 --gain 1.5` diff --git a/pages/linux/rpicam-raw.md b/pages/linux/rpicam-raw.md new file mode 100644 index 000000000..e85c8f5f7 --- /dev/null +++ b/pages/linux/rpicam-raw.md @@ -0,0 +1,12 @@ +# rpicam-raw + +> Capture a raw video on a Raspberry Pi camera. +> More information: . + +- Capture a video for a specific amount of seconds: + +`rpicam-raw -t {{2000}}} -o {{path/to/file.raw}}` + +- Change video dimensions and framerate: + +`rpicam-raw -t {{5000}} --width {{4056}} --height {{3040}} -o {{path/to/file.raw}} --framerate {{8}}` diff --git a/pages/linux/rpicam-still.md b/pages/linux/rpicam-still.md new file mode 100644 index 000000000..d82d6ae36 --- /dev/null +++ b/pages/linux/rpicam-still.md @@ -0,0 +1,16 @@ +# rpicam-still + +> Capture and store a photo using a Raspberry Pi camera with legacy features missing from `rpicam-jpeg`. +> More information: . + +- Capture a photo with different encoding: + +`rpicam-still -e {{bmp|png|rgb|yuv420}} -o {{path/to/file.{{bmp|png|rgb|yuv420}}}}` + +- Capture a raw image: + +`rpicam-still -r -o {{path/to/file.jpg}}` + +- Capture a 100 second exposure image: + +`rpicam-still -o {{path/to/file.jpg}} --shutter 100000` diff --git a/pages/linux/rpicam-vid.md b/pages/linux/rpicam-vid.md new file mode 100644 index 000000000..417614163 --- /dev/null +++ b/pages/linux/rpicam-vid.md @@ -0,0 +1,13 @@ +# rpicam-vid + +> Capture a video using a Raspberry Pi camera. +> Some subcommands such as `vlc` have their own usage documentation. +> More information: . + +- Capture a 10 second video: + +`rpicam-vid -t 10000 -o {{path/to/file.h264}}` + +- Play the video using `vlc`: + +`vlc {{path/to/file.h264}}`