> For the complete documentation index, see [llms.txt](https://docs.facefusion.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facefusion.io/3.6.1/usage/cli-arguments/frame-extraction.md).

# Frame Extraction

## CLI Arguments

### Trim Frame Start

Specify the starting frame of the target video.

Argument: `--trim-frame-start`

Default: `None`

Example: `--trim-frame-start 100`

### Trim Frame End

Specify the ending frame of the target video.

Argument: `--trim-frame-end`

Default: `None`

Example: `--trim-frame-end 200`

### Temp Frame Format

Specify the temporary resources format.

Argument: `--temp-frame-format`

Default: `png`

Choices:

* `bmp`
* `jpeg`
* `png`
* `tiff`

Example: `--temp-frame-format bmp`

### Keep Temp

Keep the temporary resources after processing.

Argument: `--keep-temp`

Default: `None`

Example: `--keep-temp`

## Default Overrides

Modify the `facefusion.ini` file to override the defaults.

```ini
[frame_extraction]
trim_frame_start = 100
trim_frame_end = 200
temp_frame_format = bmp
keep_temp = True
```
