zshot/cliDownload

--video-selector

ValueSELECTOR

CSS selector of the element to capture as a video. The selector is resolved once when recording begins, and every frame is cropped to that element’s bounding box. Applies to video output types; an empty selector or one that matches no element is an error.

Example

zshot --video-selector 'main' -f clip.webm https://example.com