--- title: "Video: start and stop recording from your computer" description: "Start and stop video recording on a Sony, Canon or Nikon camera from your computer, with the clip confirmed on the card, and set format, frame rate and sound." url: https://darkgrade.com/docs/functionality/video last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Video: start and stop recording from your computer > Start and stop video recording on a Sony, Canon or Nikon camera from your computer, with the clip confirmed on the card, and set format, frame rate and sound. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. Start a recording on a Sony, Canon or Nikon camera from your computer, stop it, and get the finished clip from the card. The settings below decide what is recorded. Your camera takes only the values it offers right now and refuses the rest: [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) lists them. Every change answers with the value the camera reports afterwards, so you know it took. | What | Does | | - | - | | [Start recording](#start-recording) | Start a video recording. | | [Stop recording](#stop-recording) | Stop and get the finished clip. | | [Recording state](#recording-state) | Whether the camera is recording. | | [Photo / video](#photo--video) | Whether the camera shoots photos or video. | | [Video format](#video-format) | The codec and file type of a recording. | | [Video quality](#video-quality) | Frame size, or bit rate on Sony. | | [Frame rate](#frame-rate) | Frames per second. | | [Audio recording](#audio-recording) | Whether a recording has sound. | | [Audio level](#audio-level) | How loud sound is recorded. | Each example has a tab per product. Pick yours once and every example follows. In Studio, the microphone that starts [voice](https://darkgrade.com/docs/studio/voice.md) is under the picture. MCP tabs show the tool Claude calls on Studio; on [your own server](https://darkgrade.com/docs/ai/server.md#what-differs-from-studio) the tools also take `camera`. Each CLI command opens the camera, does one thing and closes it. ## Start recording Gets the camera ready (video mode, a card to record to), starts recording, and returns once the camera says it is recording. ```text Studio Click Record video under the picture. Or click the microphone and say “Start recording”. A take started by voice shows no REC or Stop recording button in Studio. Say “cut” to end it. ``` ```text MCP Ask Claude: “Start recording.” → camera_start_recording {} ``` ```bash CLI # Records for 10 seconds, then stops and prints the clip. # Without --duration, Ctrl-C stops it. npx darkgrade camera start-recording --duration 10s ``` ```typescript Slate await camera.startRecording() // …later const clip = await camera.stopRecording() ``` - The record command is sent once and never repeated. - Sound is recorded as [Audio recording](#audio-recording), or the camera's own menu, left it. - On the CLI the command stays in the foreground for the whole take: see [Commands that hold](https://darkgrade.com/docs/cli/output.md#commands-that-hold). Also called *record*, *start video*, *start movie*, *roll*. Slate reference: [`startRecording`](https://darkgrade.com/docs/slate/getting_started/camera.md#startrecording) ## Stop recording Stops the recording, waits until the finished clip is on the card, puts the camera back as it was, and gives you the clip. ```text Studio Click Stop recording under the picture. Or click the microphone and say “Cut”. The button shows only for a take started with Record video. End a take started by voice by saying “cut”. ``` ```text MCP Ask Claude: “Stop recording.” → camera_stop_recording {} ``` ```bash CLI # Only for a recording started elsewhere: # start-recording stops its own. npx darkgrade camera stop-recording ``` ```typescript Slate const clip = await camera.stopRecording() // { mediaId, name, sizeBytes } ``` ### What you get back Slate returns a [`Clip`](https://darkgrade.com/docs/slate/reference/types-results.md#clip). [MCP](https://darkgrade.com/docs/ai/results.md#what-a-tool-returns) and the [CLI](https://darkgrade.com/docs/cli/output.md#json-results) return the same fields as JSON. - **`mediaId`** · `string` The clip's id on the card, the same one [the file list](https://darkgrade.com/docs/functionality/media.md#list-photos-and-clips) gives it. - **`name`** · `string` The file name on the card, such as `C0001.MP4`. - **`sizeBytes`** · `number` · optional The size of the clip, in bytes; left out when the camera cannot state it (over 4 GiB). `npx darkgrade camera start-recording --json` prints `{ "stopped": true, "clip": { … } }` when it ends. - Always allowed, even while something else is running. - If the camera stopped but no new clip appeared on the card, you get an error ([`CameraClipNotFoundError`](https://darkgrade.com/docs/slate/reference/errors.md#cameraclipnotfounderror) in Slate). Also called *stop video*, *stop movie*, *cut*. Slate reference: [`stopRecording`](https://darkgrade.com/docs/slate/getting_started/camera.md#stoprecording) ## Recording state Tells you whether the camera is recording right now. ```text Studio The dot in the camera pill pulses red while the camera records. Or click the microphone and ask “Are we recording?” ``` ```text MCP Ask Claude: “Are we recording?” → camera_get_recording_state {} ``` ```bash CLI npx darkgrade camera get-recording-state ``` ```typescript Slate const state = await camera.getRecordingState() // 'idle', 'recording', … ``` ### What you get back One of `idle` `recording` `starting` `stopping` `unknown`. `unknown` means the camera did not say. It never counts as idle. [MCP](https://darkgrade.com/docs/ai/results.md#what-a-tool-returns) and the [CLI](https://darkgrade.com/docs/cli/output.md#json-results) return the same word as JSON. Also called *is recording*, *recording status*. Slate reference: [`getRecordingState`](https://darkgrade.com/docs/slate/getting_started/camera.md#getrecordingstate) ## 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. ```text Studio In the sidebar, click Photo or Movie at the top of Recording. Or click the microphone and say “Switch to video”, or ask “Is it in photo or video mode?” ``` ```text MCP Ask Claude: “Switch to video.” → camera_set_photo_video_mode {"value": "video"} Ask Claude: “Is it in photo or video mode?” → camera_get_photo_video_mode {} ``` ```bash CLI npx darkgrade camera set-photo-video-mode video npx darkgrade camera get-photo-video-mode ``` ```typescript Slate await camera.setPhotoVideoMode('video') const photoVideoMode = await camera.getPhotoVideoMode() // 'video' ``` **Values** `photo` `video`. Also called *photo video*, *photo/video*, *still/movie*, *Still/Movie/S&Q*, *S&Q*, *movie mode*, *video mode*, *stills*, *motion*. Slate reference: [Photo / video](https://darkgrade.com/docs/slate/reference/settings-video.md#photo--video) ## Video format The codec and file type a recording is saved in. ```text Studio In the sidebar, choose Recording › Video › Format. Or click the microphone and say “Record XAVC S 4K”, or ask “What video format is it?” ``` ```text MCP Ask Claude: “Record XAVC S 4K.” → camera_set_video_format {"value": "XAVC S 4K"} Ask Claude: “What video format is it?” → camera_get_video_format {} ``` ```bash CLI npx darkgrade camera set-video-format 'XAVC S 4K' npx darkgrade camera get-video-format ``` ```typescript Slate await camera.setVideoFormat('XAVC S 4K') const videoFormat = await camera.getVideoFormat() // 'XAVC S 4K' ``` **Values** `XAVC S 4K` `XAVC HS 4K` `H.265 10-bit (MOV)` `ProRes 422 HQ 10-bit (MOV)` and more. The first two are Sony names and the last two Nikon. Canon has one value for size, rate, file type and compression together, such as `4K 23.98 fps · MP4 · IPB (Standard)`. ### All values (15, plus patterns) Written as ` fps · MOV\|MP4 · ALL-I\|IPB (Standard)\|IPB (Light)`, or one of: `XAVC S 4K` `XAVC HS 4K` `H.265 10-bit (MOV)` `ProRes 422 HQ 10-bit (MOV)` `AVCHD` `XAVC S HD` `XAVC HS 8K` `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)` `N-RAW 12-bit (NEV)` `ProRes RAW HQ 12-bit (MOV)` Also called *codec*, *movie format*, *recording format*, *video file type*, *movie file type*. Slate reference: [Video format](https://darkgrade.com/docs/slate/reference/settings-video.md#video-format) ## 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](#video-format). ```text Studio In the sidebar, choose Recording › Video › Quality. Or click the microphone and say “Video quality to 3840 by 2160”, or ask “What's the video quality?” ``` ```text MCP Ask Claude: “Video quality to 3840 by 2160.” → camera_set_video_quality {"value": "3840x2160"} Ask Claude: “What's the video quality?” → camera_get_video_quality {} ``` ```bash CLI npx darkgrade camera set-video-quality 3840x2160 npx darkgrade camera get-video-quality ``` ```typescript Slate await camera.setVideoQuality('3840x2160') const videoQuality = await camera.getVideoQuality() // '3840x2160' ``` **Values** `3840x2160` `1920x1080` `100M 4:2:0 10-bit` and more. A frame size on Canon and Nikon; a bit rate with its sampling on Sony. The [settings reference](https://darkgrade.com/docs/slate/reference/settings-video.md#video-quality) lists all 94. Also called *resolution*, *bit rate*, *bitrate*, *record setting*, *movie setting*, *movie quality*, *movie rec size*, *frame size*, *video size*, *movie size*. Slate reference: [Video quality](https://darkgrade.com/docs/slate/reference/settings-video.md#video-quality) ## 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`. ```text Studio In the sidebar, choose Recording › Video › Frame rate. Or click the microphone and say “Frame rate to 23.98”, or ask “What's the frame rate?” ``` ```text MCP Ask Claude: “Frame rate to 23.98.” → camera_set_frame_rate {"value": "23.98p"} Ask Claude: “What's the frame rate?” → camera_get_frame_rate {} ``` ```bash CLI npx darkgrade camera set-frame-rate 23.98p npx darkgrade camera get-frame-rate ``` ```typescript Slate await camera.setFrameRate('23.98p') const frameRate = await camera.getFrameRate() // '23.98p' ``` **Values** `23.98p` `24p` `25p` `29.97p` `59.94p` `120p` and more. ### All values (33) `23.98p` `24p` `25p` `29.97p` `59.94p` `120p` `100p` `60p` `50p` `30p` `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` Also called *fps*, *movie frame rate*, *recording frame rate*. Slate reference: [Frame rate](https://darkgrade.com/docs/slate/reference/settings-video.md#frame-rate) ## Audio recording Whether a recording has sound. ```text Studio In the sidebar, choose Recording › Video › Audio. Or click the microphone and say “Record sound”, or ask “Is it recording sound?” ``` ```text MCP Ask Claude: “Record sound.” → camera_set_audio_recording {"value": "On"} Ask Claude: “Is it recording sound?” → camera_get_audio_recording {} ``` ```bash CLI npx darkgrade camera set-audio-recording On npx darkgrade camera get-audio-recording ``` ```typescript Slate await camera.setAudioRecording('On') const audioRecording = await camera.getAudioRecording() // 'On' ``` **Values** `On` `Off` `On (manual level)`. Also called *sound*, *movie audio*, *movie sound*, *sound recording*. Slate reference: [Audio recording](https://darkgrade.com/docs/slate/reference/settings-video.md#audio-recording) ## 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](#audio-recording). ```text Studio Click the microphone and say “Audio level to 15”, or ask “What's the audio level?” ``` ```text MCP Ask Claude: “Audio level to 15.” → camera_set_audio_level {"value": 15} Ask Claude: “What's the audio level?” → camera_get_audio_level {} ``` ```bash CLI npx darkgrade camera set-audio-level 15 npx darkgrade camera get-audio-level ``` ```typescript Slate await camera.setAudioLevel(15) const audioLevel = await camera.getAudioLevel() // 15 ``` **Values** a number on the camera's own scale, such as `15`. See [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) for the range (minimum, maximum and step) or the list your camera takes. Also called *audio input level*, *recording level*, *record level*, *mic level*, *microphone level*, *audio input sensitivity*. Slate reference: [Audio level](https://darkgrade.com/docs/slate/reference/settings-video.md#audio-level)