---
updatedAt: 2025-06-18T15:29:04.000Z
agentTools:
  projectIndex: https://api.encoding.com/llms.txt
---

# Fade In/Out

<a name="fading"></a>Create a fade effect at the beginning or end of your source video.

```xml
<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> {/* required */}
    <userkey>[UserKey]</userkey> {/* required */}
    <action>[Action]</action> {/* required */}
    <format>
        <fade_in>[FadeInStamp]</fade_in>
        <fade_out>[FadeOutStamp]</fade_out>
    </format>
</query>
```
```json
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "[Action]",
        "format": {
            "fade_in": "[FadeInStamp]",
            "fade_out": "[FadeOutStamp]"
        }
    }
}
```

| Parameter     | Description                                     | Allowed Values                                                                                                                                                                                                              | Default Values |
| :------------ | :---------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------- |
| **fade\_in**  | Add fade in effect to audio and video streams.  | **FadeInStart:FadeInDuration** — where both parameters are positive float values.<br/><br/>**FadeInStart** — start of fade in effect in seconds.<br/><br/>**FadeInDuration** — duration of fade in effect in seconds.       | None           |
| **fade\_out** | Add fade out effect to audio and video streams. | **FadeOutStart:FadeOutDuration** — where both parameters are positive float values.<br/><br/>**FadeOutStart** — start of fade out effect in seconds.<br/><br/>**FadeOutDuration** — duration of fade out effect in seconds. | None           |

```
```