> For the complete documentation index, see [llms.txt](https://docs.datarhei.com/restreamer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datarhei.com/restreamer/knowledge-base/user-guides/how-to-rotate-a-video.md).

# How to rotate a video?

{% embed url="<https://www.youtube.com/watch?v=wYQeTk6GmB4>" %}
**YouTube:** Quickstart on Raspberry Pi 4 to produce vertical video with filter.
{% endembed %}

In this video, a 16:9 video is rotated 90° using the datarhei Restreamer streaming server. In the video settings of the active channel, the encoding is changed to 9:16. There are different rotation presets available. In the example, a Raspberry Pi 4 is used, which performs the encoding via the GPU OpenMax.

{% hint style="info" %}
An encoding of the video is always necessary to get rotated video output.
{% endhint %}

## Prerequisite

You have already started your Restreamer and added a video source.

### Step 1

Edit the video source settings.

### Step 2

Start encoding

### Step 3

Various setting options are available besides rotation, also horizontal and vertical flipping.

![Fig 1: Various setting options are available.](/files/GCFuQswZlarv0TQ83uu1)

## Learn more

{% content-ref url="/pages/-MXb\_BFQq0tV8S0Onai7" %}
[Installing](/restreamer/installing/minimum-requirements.md)
{% endcontent-ref %}

{% content-ref url="/pages/-M\_uA53Pks3B1GyDSBc8" %}
[Manual](/restreamer/knowledge-base/manual.md)
{% endcontent-ref %}


---

# 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.datarhei.com/restreamer/knowledge-base/user-guides/how-to-rotate-a-video.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.
