# Media Codec Condition

With the help of the Media Codec Condition it is possible to use the codec of a video file as a condition for further actions. Helmut 4 uses Media Info for this, which is automatically installed when the client is installed. It is possible to define the codec in the form of a string. The exact designation and spelling of the possible codecs is defined by Media Info. This condition is helpful, for example, if every video file that deviates from the house standard is to be recoded.

The Media Codec Condition can theoretically be queried in every stream, as it is not linked to the project object or the user object, but it mostly makes sense if there is a job object in the stream. The job object is available if it is a HelmutIO stream.

<figure><img src="/files/Kf5a8VB0qK2KK6s3GtCC" alt="" width="375"><figcaption><p>Mediainfo binary path</p></figcaption></figure>

The path to the mediainfo binary can be customized if the binary is located in a different directory or if a different version is desired.


---

# 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.helmut.de/helmut4-releases/helmut4-components/streamdesigner/nodes/conditions/mediainfo-8/media-codec-condition.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.
