デジタルカメラとして静止画を撮影するコマンド。コマンドラインで 「 raspistill -o photo.jpg 」のように使用。
オプション1 オプション2 機能 -? --help ヘルプの表示 -w --width 画像の幅の指定 (サイズ) -h --height 画像の高さの指定 (サイズ) -q --quality jpeg 品質を設定 (0 - 100) -r --raw jpeg メタデータに Bayer 配列データを追加する -o --output 出力ファイル名 (標準出力の場合は '-o -') -v --verbose 詳細情報の表示 -t --timeout 撮影までの時間をミリ秒単位で指定。指定しない場合は5秒 -th --thumb サムネイルパラメータを設定 (x:y:quality) -d --demo デモモードを実行、撮影しない -e --encoding 出力ファイルのエンコード方法の指定 (jpg, bmp, gif, png) -x --exif EXIFタグの指定 ('key=value'の形式) -tl --timelapse こま撮りモード(ミリ秒で指定した間隔で連続撮影) -fp --fullpreview 撮影する写真とモニターに映るプレビュー画面を同じサイズにする
ビデオ出力を表示するコマンド。指定したビットレイトで H264 形式で録画する。
オプション1 オプション2 機能 -? --help ヘルプの表示 -w --width 画像の幅の指定 (サイズ、デフォルトは 1920) -h --height 画像の高さの指定 (サイズ、デフォルトは 1080) -b --bitrate ビットレイトの設定 (例. 10MBits/s は -b 10000000) -o --output 出力ファイル名 (標準出力の場合は '-o -') -v --verbose 詳細情報の表示 -t --timeout 撮影時間をミリ秒単位で指定。指定しない場合は5秒。0 は無効化 -d --demo デモモードを実行、撮影しない -fps --framerate フレーム/秒を指定 -e --penc エンコード後にプレビュー画像を表示(圧縮の効果を表示) -g --intra 内部リフレッシュ期間を指定 (key frame rate/GoP size)
ファイルを圧縮しない静止画撮影用のコマンド。
オプション1 オプション2 機能 -? --help ヘルプの表示 -w --width 画像の幅の指定 -h --height 画像の高さの指定 -o --output 出力ファイル名 (標準出力の場合は '-o -') -v --verbose 詳細情報の表示 -t --timeout 撮影までの時間をミリ秒単位で指定。指定しない場合は5秒
Raspberry Piをディスプレイに接続している時の、画面にプレビュー位置や大きさの指定。
オプション1 オプション2 機能 -p --preview プレビューウィンドウの設定 <'x,y,w,h'> -f --fullscreen フルスクリーン -op --opacity プレビューウィンドウの不透明度 (0-255) -n --nopreview プレビューウィンドウを表示しない
撮影条件に関するオプション。カメラと似たような設定ができる。
オプション1 オプション2 機能 -sh --sharpness シャープネス (-100 to 100) -co --contrast コントラスト (-100 to 100) -br --brightness ブライトネス (0 to 100) -sa --saturation サチュレーション (-100 to 100) -ISO --ISO ISO の設定 -vs --vstab Turn on video stablisation -ev --ev 露出補正 -ex --exposure 露出モードの設定 -awb --awb ホワイトバランスの設定 -ifx --imxfx 画像効果の設定 -cfx --colfx Set colour effect (U:V) -mm --metering 測光モードの設定 -rot --rotation 画像の回転 (0-359) -hf --hflip 水平反転 -vf --vflip 垂直反転
モード 意味 off オフ auto 自動 night ナイト nightpreview ナイトプレビュー backlight 逆光 spotlight スポットライト sports スポーツ snow スノー beach ビーチ verylong 長時間 fixedfps ? antishake ぶれ防止 fireworks 花火
モード 意味 off オフ auto 自動 sun 晴天 cloud くもり shade 日陰 tungsten タングステンタイプ fluorescent 蛍光灯 incandescent 白熱電球 flash フラッシュ horizon 日没光
モード 意味 none 無し negative 反転 solarise 日の出 sketch スケッチ denoise ノイズ除去 emboss エンボス oilpaint 油彩 hatch ハッチング gpen Gペン pastel パステル watercolour 水彩 film フィルム blur ぼやけ saturation 飽和 colourswap 色変更 washedout ウォッシュアウト posterise ポスタリゼーション(階調変更) colourpoint カラーポイント colourbalance カラーバランス cartoon アニメ絵
モード 意味 average 平均 spot スポット backlit 逆光 matrix 多分割
$ raspivid -? "raspivid" Camera App (commit ) Display camera output to display, and optionally saves an H264 capture at requested bitrate usage: raspivid [options] Image parameter commands -b, --bitrate : Set bitrate. Use bits per second (e.g. 10MBits/s would be -b 10000000) -t, --timeout : Time (in ms) to capture for. If not specified, set to 5s. Zero to disable -d, --demo : Run a demo mode (cycle through range of camera options, no capture) -fps, --framerate : Specify the frames per second to record -e, --penc : Display preview image *after* encoding (shows compression artifacts) -g, --intra : Specify the intra refresh period (key frame rate/GoP size). Zero to produce an initial I-frame and then just P-frames. -pf, --profile : Specify H264 profile to use for encoding -td, --timed : Cycle between capture and pause. -cycle on,off where on is record time and off is pause time in ms -s, --signal : Cycle between capture and pause on Signal -k, --keypress : Cycle between capture and pause on ENTER -i, --initial : Initial state. Use 'record' or 'pause'. Default 'record' -qp, --qp : Quantisation parameter. Use approximately 10-40. Default 0 (off) -ih, --inline : Insert inline headers (SPS, PPS) to stream -sg, --segment : Segment output file in to multiple files at specified interval <ms> -wr, --wrap : In segment mode, wrap any numbered filename back to 1 when reach number -sn, --start : In segment mode, start with specified segment number -sp, --split : In wait mode, create new output file for each start event -c, --circular : Run encoded data through circular buffer until triggered then save -x, --vectors : Output filename <filename> for inline motion vectors -if, --irefresh : Set intra refresh type -fl, --flush : Flush buffers in order to decrease latency -pts, --save-pts : Save Timestamps to file for mkvmerge -cd, --codec : Specify the codec to use - H264 (default) or MJPEG -lev, --level : Specify H264 level to use for encoding -r, --raw : Output filename <filename> for raw video -rf, --raw-format : Specify output format for raw video. Default is yuv -l, --listen : Listen on a TCP socket -stm, --spstimings : Add in h.264 sps timings -sl, --slices : Horizontal slices per frame. Default 1 (off) H264 Profile options : baseline,main,high H264 Level options : 4,4.1,4.2 H264 Intra refresh options : cyclic,adaptive,both,cyclicrows Raw output format options : yuv,rgb,gray Raspivid allows output to a remote IPv4 host e.g. -o tcp://192.168.1.2:1234or -o udp://192.168.1.2:1234 To listen on a TCP port (IPv4) and wait for an incoming connection use the -l option e.g. raspivid -l -o tcp://0.0.0.0:3333 -> bind to all network interfaces, raspivid -l -o tcp://192.168.1.1:3333 -> bind to a certain local IPv4 port Common Settings commands -?, --help : This help information -w, --width : Set image width <size> -h, --height : Set image height <size> -o, --output : Output filename <filename> (to write to stdout, use '-o -'). If not specified, no file is saved -v, --verbose : Output verbose information during run -cs, --camselect : Select camera <number>. Default 0 -md, --mode : Force sensor mode. 0=auto. See docs for other modes available -gps, --gpsdexif : Apply real-time GPS information to output (e.g. EXIF in JPG, annotation in video (requires libgps.so.22) Preview parameter commands -p, --preview : Preview window settings <'x,y,w,h'> -f, --fullscreen : Fullscreen preview mode -op, --opacity : Preview window opacity (0-255) -n, --nopreview : Do not display a preview window -dn, --dispnum : Display on which to display the preview window (dispmanx/tvservice numbering) Image parameter commands -sh, --sharpness : Set image sharpness (-100 to 100) -co, --contrast : Set image contrast (-100 to 100) -br, --brightness : Set image brightness (0 to 100) -sa, --saturation : Set image saturation (-100 to 100) -ISO, --ISO : Set capture ISO -vs, --vstab : Turn on video stabilisation -ev, --ev : Set EV compensation - steps of 1/6 stop -ex, --exposure : Set exposure mode (see Notes) -fli, --flicker : Set flicker avoid mode (see Notes) -awb, --awb : Set AWB mode (see Notes) -ifx, --imxfx : Set image effect (see Notes) -cfx, --colfx : Set colour effect (U:V) -mm, --metering : Set metering mode (see Notes) -rot, --rotation : Set image rotation (0-359) -hf, --hflip : Set horizontal flip -vf, --vflip : Set vertical flip -roi, --roi : Set region of interest (x,y,w,d as normalised coordinates [0.0-1.0]) -ss, --shutter : Set shutter speed in microseconds -awbg, --awbgains : Set AWB gains - AWB mode must be off -drc, --drc : Set DRC Level (see Notes) -st, --stats : Force recomputation of statistics on stills capture pass -a, --annotate : Enable/Set annotate flags or text -3d, --stereo : Select stereoscopic mode -dec, --decimate : Half width/height of stereo image -3dswap, --3dswap : Swap camera order for stereoscopic -ae, --annotateex : Set extra annotation parameters (text size, text colour(hex YUV), bg colour(hex YUV), justify, x, y) -ag, --analoggain : Set the analog gain (floating point) -dg, --digitalgain : Set the digital gain (floating point) -set, --settings : Retrieve camera settings and write to stdout Notes Exposure mode options : off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks Flicker avoid mode options : off,auto,50hz,60hz AWB mode options : off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon,greyworld Image Effect mode options : none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon Metering Mode options : average,spot,backlit,matrix Dynamic Range Compression (DRC) options : off,low,med,high
$ raspivid -? "raspivid" Camera App (commit ) Display camera output to display, and optionally saves an H264 capture at requested bitrate usage: raspivid [options] Image parameter commands -b, --bitrate : Set bitrate. Use bits per second (e.g. 10MBits/s would be -b 10000000) -t, --timeout : Time (in ms) to capture for. If not specified, set to 5s. Zero to disable -d, --demo : Run a demo mode (cycle through range of camera options, no capture) -fps, --framerate : Specify the frames per second to record -e, --penc : Display preview image *after* encoding (shows compression artifacts) -g, --intra : Specify the intra refresh period (key frame rate/GoP size). Zero to produce an initial I-frame and then just P-frames. -pf, --profile : Specify H264 profile to use for encoding -td, --timed : Cycle between capture and pause. -cycle on,off where on is record time and off is pause time in ms -s, --signal : Cycle between capture and pause on Signal -k, --keypress : Cycle between capture and pause on ENTER -i, --initial : Initial state. Use 'record' or 'pause'. Default 'record' -qp, --qp : Quantisation parameter. Use approximately 10-40. Default 0 (off) -ih, --inline : Insert inline headers (SPS, PPS) to stream -sg, --segment : Segment output file in to multiple files at specified interval <ms> -wr, --wrap : In segment mode, wrap any numbered filename back to 1 when reach number -sn, --start : In segment mode, start with specified segment number -sp, --split : In wait mode, create new output file for each start event -c, --circular : Run encoded data through circular buffer until triggered then save -x, --vectors : Output filename <filename> for inline motion vectors -if, --irefresh : Set intra refresh type -fl, --flush : Flush buffers in order to decrease latency -pts, --save-pts : Save Timestamps to file for mkvmerge -cd, --codec : Specify the codec to use - H264 (default) or MJPEG -lev, --level : Specify H264 level to use for encoding -r, --raw : Output filename <filename> for raw video -rf, --raw-format : Specify output format for raw video. Default is yuv -l, --listen : Listen on a TCP socket -stm, --spstimings : Add in h.264 sps timings -sl, --slices : Horizontal slices per frame. Default 1 (off) H264 Profile options : baseline,main,high H264 Level options : 4,4.1,4.2 H264 Intra refresh options : cyclic,adaptive,both,cyclicrows Raw output format options : yuv,rgb,gray Raspivid allows output to a remote IPv4 host e.g. -o tcp://192.168.1.2:1234or -o udp://192.168.1.2:1234 To listen on a TCP port (IPv4) and wait for an incoming connection use the -l option e.g. raspivid -l -o tcp://0.0.0.0:3333 -> bind to all network interfaces, raspivid -l -o tcp://192.168.1.1:3333 -> bind to a certain local IPv4 port Common Settings commands -?, --help : This help information -w, --width : Set image width <size> -h, --height : Set image height <size> -o, --output : Output filename <filename> (to write to stdout, use '-o -'). If not specified, no file is saved -v, --verbose : Output verbose information during run -cs, --camselect : Select camera <number>. Default 0 -md, --mode : Force sensor mode. 0=auto. See docs for other modes available -gps, --gpsdexif : Apply real-time GPS information to output (e.g. EXIF in JPG, annotation in video (requires libgps.so.22) Preview parameter commands -p, --preview : Preview window settings <'x,y,w,h'> -f, --fullscreen : Fullscreen preview mode -op, --opacity : Preview window opacity (0-255) -n, --nopreview : Do not display a preview window -dn, --dispnum : Display on which to display the preview window (dispmanx/tvservice numbering) Image parameter commands -sh, --sharpness : Set image sharpness (-100 to 100) -co, --contrast : Set image contrast (-100 to 100) -br, --brightness : Set image brightness (0 to 100) -sa, --saturation : Set image saturation (-100 to 100) -ISO, --ISO : Set capture ISO -vs, --vstab : Turn on video stabilisation -ev, --ev : Set EV compensation - steps of 1/6 stop -ex, --exposure : Set exposure mode (see Notes) -fli, --flicker : Set flicker avoid mode (see Notes) -awb, --awb : Set AWB mode (see Notes) -ifx, --imxfx : Set image effect (see Notes) -cfx, --colfx : Set colour effect (U:V) -mm, --metering : Set metering mode (see Notes) -rot, --rotation : Set image rotation (0-359) -hf, --hflip : Set horizontal flip -vf, --vflip : Set vertical flip -roi, --roi : Set region of interest (x,y,w,d as normalised coordinates [0.0-1.0]) -ss, --shutter : Set shutter speed in microseconds -awbg, --awbgains : Set AWB gains - AWB mode must be off -drc, --drc : Set DRC Level (see Notes) -st, --stats : Force recomputation of statistics on stills capture pass -a, --annotate : Enable/Set annotate flags or text -3d, --stereo : Select stereoscopic mode -dec, --decimate : Half width/height of stereo image -3dswap, --3dswap : Swap camera order for stereoscopic -ae, --annotateex : Set extra annotation parameters (text size, text colour(hex YUV), bg colour(hex YUV), justify, x, y) -ag, --analoggain : Set the analog gain (floating point) -dg, --digitalgain : Set the digital gain (floating point) -set, --settings : Retrieve camera settings and write to stdout Notes Exposure mode options : off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks Flicker avoid mode options : off,auto,50hz,60hz AWB mode options : off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon,greyworld Image Effect mode options : none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon Metering Mode options : average,spot,backlit,matrix Dynamic Range Compression (DRC) options : off,low,med,high