# Codec

ADMIN privilege is required for all of these functions except codec\_profile/list.

### codec/list

Lists available codecs and their properties. This is a very verbose list.

### codec\_profile/class

Lists the text strings, options and defaults used when configuring codec profiles.

### codec\_profile/create

Add a new codec profile.

* `class` The name of the codec profile.
* `conf` A JSON object describing the codec profile.

### codec\_profile/list

```
{
   "entries" : [
      {
         "uuid" : "d3f76d002a895f5c65dd57715d169399",
         "title" : "webtv-vorbis (WEBTV codec Vorbis)",
         "status" : "codecEnabled"
      },
      {
         "status" : "codecEnabled",
         "title" : "webtv-aac (WEBTV codec AAC)",
         "uuid" : "77e7184d6ade386137f553de0687254d"
      },
      {
         "title" : "webtv-h264 (WEBTV codec H264)",
         "status" : "codecEnabled",
         "uuid" : "eb7281ade724c77d23add9223bc2a480"
      }
   ]
}
```


---

# Agent Instructions: 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:

```
GET https://docs.tvheadend.org/documentation/development/json-api/api-description/codec.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
