> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt.

# Interface: ApiTranscodeState

Defined in: [extensions/timedmediahandler.ts:109](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L109)

One transcode state of `prop=transcodestatus`, keyed by transcode key (e.g.
`240p.vp9.webm`) on the file page. The keys mirror the `transcode` table
columns with the `transcode_` prefix stripped.

## Properties

### error?

> `optional` **error?**: `string`

Defined in: [extensions/timedmediahandler.ts:111](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L111)

Error output of the transcode run; `""` unless the transcode failed.

***

### final_bitrate?

> `optional` **final_bitrate?**: `string` | `number`

Defined in: [extensions/timedmediahandler.ts:129](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L129)

Achieved bitrate in bit/s of the finished transcode; may be a number or a
numeric string.

***

### size?

> `optional` **size?**: `string` | `null`

Defined in: [extensions/timedmediahandler.ts:152](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L152)

Size in bytes of the finished transcode, `null` while unfinished; a numeric
string.

#### Since

MediaWiki 1.46

***

### state?

> `optional` **state?**: `string`

Defined in: [extensions/timedmediahandler.ts:137](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L137)

Transcode job state as a numeric string (e.g. `"3"` while working, `"4"`
when ready).

#### Since

MediaWiki 1.46

***

### time_addjob?

> `optional` **time_addjob?**: `string` | `null`

Defined in: [extensions/timedmediahandler.ts:114](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L114)

When the job was queued; a 14-digit MediaWiki timestamp or `null`.

***

### time_error?

> `optional` **time_error?**: `string` | `null`

Defined in: [extensions/timedmediahandler.ts:123](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L123)

When the transcode failed; a 14-digit MediaWiki timestamp or `null`.

***

### time_startwork?

> `optional` **time_startwork?**: `string` | `null`

Defined in: [extensions/timedmediahandler.ts:117](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L117)

When the job started working; a 14-digit MediaWiki timestamp or `null`.

***

### time_success?

> `optional` **time_success?**: `string` | `null`

Defined in: [extensions/timedmediahandler.ts:120](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L120)

When the transcode finished; a 14-digit MediaWiki timestamp or `null`.

***

### touched?

> `optional` **touched?**: `string`

Defined in: [extensions/timedmediahandler.ts:144](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/timedmediahandler.ts#L144)

When the transcode state was last touched; a 14-digit MediaWiki timestamp.

#### Since

MediaWiki 1.46
