What a recording is: the photo or video mode, the format, quality and frame rate, and sound. This is one of the 7 pages of the settings reference, which names every setting. Video shows each at work in Studio, MCP, the CLI and Slate.
Read and write one with its typed getter and setter, or with setControl by id. A camera offers only some values of each: getCapabilities().controls lists them now. A setter refuses a value the camera does not offer with CameraRefusedError before sending anything; a getter throws CameraUnsupportedError when the setting is absent or does not apply in the current mode.
| Setting | Id | Getter and setter |
|---|---|---|
| Photo / video | photoVideoMode | getPhotoVideoMode setPhotoVideoMode |
| Audio level | audioLevel | getAudioLevel setAudioLevel |
| Video format | videoFormat | getVideoFormat setVideoFormat |
| Video quality | videoQuality | getVideoQuality setVideoQuality |
| Frame rate | frameRate | getFrameRate setFrameRate |
| Audio recording | audioRecording | getAudioRecording setAudioRecording |
Photo / video
Whether the camera is set up for photos or for video. Taking a photo or starting a recording switches it for you and switches it back.
Whether the camera is set up to take photos or record video. One view of each vendor's own switch: Canon's movie select switch, Nikon's LiveViewSelector, and on Sony the photo and movie halves of the exposure program (Manual and Movie Manual).
| Id | photoVideoMode, for setControl and getCapabilities().controls.photoVideoMode |
| Value type | PhotoVideoMode |
| How to use it | Video: Photo / video |
| Search words | photo video, photo/video, still/movie, Still/Movie/S&Q, S&Q, movie mode, video mode, stills, motion |
Values 2 named values. A camera offers only some of them: getCapabilities().controls.photoVideoMode.allowedValues lists which, right now.
photo video
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Nikon | LiveViewSelector (0xd1a6) |
getPhotoVideoMode
getPhotoVideoMode(): Promise<PhotoVideoMode> · MCP camera_get_photo_video_mode · CLI darkgrade camera get-photo-video-mode
setPhotoVideoMode
MCP camera_set_photo_video_mode · CLI darkgrade camera set-photo-video-mode
setPhotoVideoMode(value: PhotoVideoMode): Promise<PhotoVideoMode>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Audio level
How loud sound is recorded, on the camera's own scale (Canon 0 to 63, Nikon 1 to 20, Sony the range it reports). Whether sound is recorded at all is Audio recording.
The movie sound recording level, on the camera's own scale (Canon 0 to 63, Nikon 1 to 20, Sony its advertised range): allowedValues or range say what this body takes. Whether sound is recorded at all is audioRecording.
| Id | audioLevel, for setControl and getCapabilities().controls.audioLevel |
| Value type | AudioLevel |
| How to use it | Video: Audio level |
setControl also takes | A number, or its whole-number text. |
| Search words | audio level, audio input level, recording level, record level, mic level, microphone level, audio input sensitivity |
Values A number on the camera's own scale. getCapabilities().controls.audioLevel gives its range or allowedValues now.
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonMovieRecVolumeIntMic (0xd25e) |
| Nikon | NikonMovieMicrophoneLevelValue (0xd0a8) |
| Sony | AudioInputMasterLevel (0xe050) |
getAudioLevel
getAudioLevel(): Promise<AudioLevel> · MCP camera_get_audio_level · CLI darkgrade camera get-audio-level
setAudioLevel
MCP camera_set_audio_level · CLI darkgrade camera set-audio-level
setAudioLevel(value: AudioLevel): Promise<AudioLevel>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Video format
The codec and file type a recording is saved in.
A video format: Sony's codec names (XAVC S 4K), Nikon's file type (H.265 10-bit (MOV)) or Canon's complete movie record. A raw number a body reports without a name is not a value to write.
| Id | videoFormat, for setControl and getCapabilities().controls.videoFormat |
| Value type | VideoFormat |
| How to use it | Video: Video format |
| Search words | codec, movie format, movieFormat, recording format, video file type, movie file type |
Values Pattern <text> fps · <MOV / MP4 / unknown> · <unknown / ALL-I / IPB (Standard) / IPB (Light)>, and 15 named values. A camera offers only some of them: getCapabilities().controls.videoFormat.allowedValues lists which, right now.
Every named value (15)
Every named value (15)
AVCHD XAVC S 4K XAVC S HD XAVC HS 8K XAVC HS 4K XAVC S 4K (modern) XAVC S HD (modern) XAVC S-I 4K XAVC S-I HD H.264 8-bit (MP4) H.265 8-bit (MOV) H.265 10-bit (MOV) N-RAW 12-bit (NEV) ProRes 422 HQ 10-bit (MOV) ProRes RAW HQ 12-bit (MOV)
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonMovieFormat (0xd1cd), CanonMovieRecord (0xd29e) |
| Nikon | NikonMovieFileType (0xd0af) |
| Sony | MovieFileFormat (0xd241) |
getVideoFormat
getVideoFormat(): Promise<VideoFormat> · MCP camera_get_video_format · CLI darkgrade camera get-video-format
setVideoFormat
MCP camera_set_video_format · CLI darkgrade camera set-video-format
setVideoFormat(value: VideoFormat): Promise<VideoFormat>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Video quality
The frame size of a recording (Canon, Nikon) or its bit rate and colour sampling (Sony). On Sony, 4K or HD is part of the video format.
A video quality (bit rate, sampling and depth), as the vendor codecs name it: 150M 4:2:0 10-bit.
| Id | videoQuality, for setControl and getCapabilities().controls.videoQuality |
| Value type | VideoQuality |
| How to use it | Video: Video quality |
| Search words | resolution, bit rate, bitrate, record setting, movie setting, movieSetting, movie quality, movie rec size, frame size, video size, movie size |
Values 94 named values. A camera offers only some of them: getCapabilities().controls.videoQuality.allowedValues lists which, right now.
Every named value (94)
Every named value (94)
60p 50M · XAVC S 30p 50M · XAVC S 24p 50M · XAVC S 50p 50M · XAVC S 25p 50M · XAVC S 60i 24M (FX) · AVCHD 50i 24M (FX) · AVCHD 60i 17M (FH) · AVCHD 50i 17M (FH) · AVCHD 60p 28M (PS) · AVCHD 50p 28M (PS) · AVCHD 24p 24M (FX) · AVCHD 25p 24M (FX) · AVCHD 24p 17M (FH) · AVCHD 25p 17M (FH) · AVCHD 720 120p 50M · XAVC S 720 100p 50M · XAVC S 1080 30p 16M · MP4 1080 25p 16M · MP4 720 30p 6M · MP4 720 25p 6M · MP4 1080 60p 28M · MP4 1080 50p 28M · MP4 60p 25M · XAVC S HD 50p 25M · XAVC S HD 30p 16M · XAVC S HD 25p 16M · XAVC S HD 1080 120p 100M · XAVC S HD 1080 100p 100M · XAVC S HD 1080 120p 60M · XAVC S HD 1080 100p 60M · XAVC S HD 30p 100M · XAVC S 4K 25p 100M · XAVC S 4K 24p 100M · XAVC S 4K 30p 60M · XAVC S 4K 25p 60M · XAVC S 4K 24p 60M · XAVC S 4K 600M 4:2:2 10-bit 500M 4:2:2 10-bit 400M 4:2:0 10-bit 300M 4:2:2 10-bit 280M 4:2:2 10-bit 250M 4:2:2 10-bit 240M 4:2:2 10-bit 222M 4:2:2 10-bit 200M 4:2:2 10-bit 200M 4:2:0 10-bit 200M 4:2:0 8-bit 185M 4:2:2 10-bit 150M 4:2:0 10-bit 150M 4:2:0 8-bit 140M 4:2:2 10-bit 111M 4:2:2 10-bit 100M 4:2:2 10-bit 100M 4:2:0 10-bit 100M 4:2:0 8-bit 93M 4:2:2 10-bit 89M 4:2:2 10-bit 75M 4:2:0 10-bit 60M 4:2:0 8-bit 50M 4:2:2 10-bit 50M 4:2:0 10-bit 50M 4:2:0 8-bit 45M 4:2:0 10-bit 30M 4:2:0 10-bit 25M 4:2:0 8-bit 16M 4:2:0 8-bit 520M 4:2:2 10-bit 260M 4:2:2 10-bit 1920x1080 1280x720 640x480 4096x2160 3840x2160 2048x1080 8192x4320 7680x4320 1920x1080 (option 16) 1280x720 (option 16) 640x480 (option 16) 4096x2160 (option 16) 3840x2160 (option 16) 2048x1080 (option 16) 8192x4320 (option 16) 7680x4320 (option 16) 3984x2240 4032x2268 4128x2322 5376x3024 5392x3032 6048x3402 8256x4644 1920x1080 4x slow motion 1920x1080 5x slow motion
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonMovieFrameSize |
| Nikon | NikonMovieFrameSize |
| Sony | MovieRecordingSetting (0xd242) |
getVideoQuality
getVideoQuality(): Promise<VideoQuality> · MCP camera_get_video_quality · CLI darkgrade camera get-video-quality
setVideoQuality
MCP camera_set_video_quality · CLI darkgrade camera set-video-quality
setVideoQuality(value: VideoQuality): Promise<VideoQuality>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Frame rate
Frames per second. Names follow the camera: Nikon lists real frequencies (29.97p, 23.98p), while Sony lists both 24p and 23.98p.
A frame rate: 24p, 23.98p, 60p, 50i.
| Id | frameRate, for setControl and getCapabilities().controls.frameRate |
| Value type | FrameRate |
| How to use it | Video: Frame rate |
| Search words | fps, movie frame rate, movieFrameRate, recording frame rate |
Values 33 named values. A camera offers only some of them: getCapabilities().controls.frameRate.allowedValues lists which, right now.
Every named value (33)
Every named value (33)
120p 100p 60p 50p 30p 25p 24p 23.98p 29.97p 59.94p 19.98p 14.99p 12.50p 12.00p 11.99p 10.00p 9.99p 6.00p 5.99p 5.00p 4.995p 24.00p 119.88p 120i 100i 60i 50i 30i 25i 150p 179.82p 200p 239.76p
How the names are chosen
How the names are chosen
One name per exact frequency, so a rate never has two names:
| Rate | Name |
|---|---|
| 23.98 | 23.98p |
| 24.00 | 24.00p |
| 25.00 | 25p |
| 29.97 | 29.97p |
| 30.00 | 30p |
| 50.00 | 50p |
| 59.94 | 59.94p |
| 60.00 | 60p |
| 100.00 | 100p |
| 119.88 | 119.88p |
| 120.00 | 120p |
| 150.00 | 150p |
| 179.82 | 179.82p |
| 200.00 | 200p |
| 239.76 | 239.76p |
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonMovieFrameRate |
| Nikon | NikonMovieFrameRate |
| Sony | MovieRecordingFrameRate (0xd286) |
getFrameRate
getFrameRate(): Promise<FrameRate> · MCP camera_get_frame_rate · CLI darkgrade camera get-frame-rate
setFrameRate
MCP camera_set_frame_rate · CLI darkgrade camera set-frame-rate
setFrameRate(value: FrameRate): Promise<FrameRate>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Audio recording
Whether a recording has sound.
Movie sound, Canon only for now: On, Off or On (manual level).
| Id | audioRecording, for setControl and getCapabilities().controls.audioRecording |
| Value type | AudioRecording |
| How to use it | Video: Audio recording |
| Search words | sound, movie audio, movie sound, sound recording |
Values 3 named values. A camera offers only some of them: getCapabilities().controls.audioRecording.allowedValues lists which, right now.
Off On On (manual level)
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonMovieSoundRecording (0xd195) |
| Nikon | NikonMovieMicrophoneLevel (0xd0a2) |
| Sony | AudioRecording (0xd0d2) |
getAudioRecording
getAudioRecording(): Promise<AudioRecording> · MCP camera_get_audio_recording · CLI darkgrade camera get-audio-recording
setAudioRecording
MCP camera_set_audio_recording · CLI darkgrade camera set-audio-recording
setAudioRecording(value: AudioRecording): Promise<AudioRecording>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Other settings
How bright the picture is: shutter speed, ISO, aperture and the modes around them.
What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes.
The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile.
How the camera finds and follows a subject: focus mode and area, and subject detection.
The two settings beside the zoom operations: image stabilisation and digital zoom.
The one setting of the live picture: its quality.
Related
The class: constructor, every method, what each returns and throws.
Every setting id with its values, getter, setter and vendor properties.
Every exported type, field by field.
Every error class: when it is thrown and what to do.
Every import path of the package and what it exports.