> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/documentation/start-here/ai-agents/transfer-media-encode-and-publish/start-stop-and-monitor-encoding.md).

# Start, stop, and monitor encoding

Start an episode production, monitor encoding, or stop eligible in-progress work.

Use the production ID to control and inspect media encoding.

## Before you start

* Keep the production ID and confirm its episode.
* Check encoding allowance for the podcast.
* Decide whether the episode should publish automatically after encoding.

## Start encoding

1. Preview `start_production` with the production ID and `dry_run: true`.
2. Set `publish_episode` to `true` only when the episode should publish after encoding.
3. Review the production and the publish choice.
4. Confirm the exact preview.
5. Poll `get_production` with the production ID.
6. Stop polling when the production is encoded or reports failure.

## Stop encoding

1. Read the production and confirm that encoding is in progress.
2. Preview `stop_production` with the production ID.
3. Confirm the exact stop request.
4. Read the production again and verify the resulting state.

## Expected result

The production encodes successfully, optionally publishes after encoding, or stops at a supported boundary.

## If encoding fails

Preserve the production ID and status. Confirm encoding allowance and media validity. Do not create a second production from the same upload. Follow the returned recovery path or contact Support.

## Next step

[Publish an episode that already has media](/documentation/start-here/ai-agents/transfer-media-encode-and-publish/publish-an-episode-that-already-has-media.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.podigee.com/documentation/start-here/ai-agents/transfer-media-encode-and-publish/start-stop-and-monitor-encoding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
