Code: Select all
pi@raspberrypi:~/raspiraw $ ./raspiraw --help
-?, --help : This help information
-md, --mode : Set sensor mode <mode>
-hf, --hflip : Set horizontal flip
-vf, --vflip : Set vertical flip
-e, --ss : Set the sensor exposure time (not calibrated units)
-g, --gain : Set the sensor gain code (not calibrated units)
-o, --output : Set the output filename
-hd, --header : Write the BRCM header to the output file <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-t, --timeout : Time (in ms) before shutting down (if not specified, set to 5s)
-sr, --saverate : Save every Nth frame
-b, --bitdepth : Set output raw bit depth (8, 10, 12 or 16, if not specified, set to sensor native)
-c, --cameranum : Set camera number to use (0=CAM0, 1=CAM1).
-eus, --expus : Set the sensor exposure time in micro seconds.
-y, --i2c : Set the I2C bus to use.
-awbg, --awbgains : Set the AWB gains to use.
-r, --regs : Change (current mode) regs
-hi, --hinc : Set horizontal odd/even inc reg
-vi, --vinc : Set vertical odd/even inc reg
-f, --fps : Set framerate regs
-w, --width : Set current mode width
-h, --height : Set current mode height
-lt, --left : Set current mode left
-tp, --top : Set current mode top
-hd0, --header0 : Sets filename to write the BRCM header to
-hdg, --headerg : Sets filename to write the .pgm header to
-ts, --tstamps : Sets filename to write timestamps to
-emp, --empty : Write empty output files
-m, --metadata : Decode register metadata
-awb, --awb : Use a simple grey-world AWB algorithm
-n, --nopreview : Do not send the stream to the display
-P, --processing : Pass images into an image processing function
-p, --preview : Preview window settings <'x,y,w,h'>
-fs, --fullscreen : Fullscreen preview mode
-op, --opacity : Preview window opacity (0-255)
-PY, --processing_yuv : Pass processed YUV images into an image processing function
-oY, --output_yuv : Set the output filename for YUV data
"raspiraw -o foo%u.raw" writes just the raw data
"raspiraw -hd -o foo%u.raw" writes the header and raw data
"raspiraw -hd0 foo.hdr -o foo%u.raw" writes the header to foo.hdr, and just the raw data to the remaining files.