> 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?

Vertical video is helpful on smartphones and vertical video platforms such as TikTok. It is encoded and transmitted for free with the datarhei Restreamer.

{% 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.](https://304400748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS3qj4cW170AMeE1ckj-1703796690%2Fuploads%2F85EpVyyLIvfloapI4H2p%2FBildschirmfoto%202022-07-20%20um%2015.42.30.png?alt=media\&token=48c05405-4259-4411-84dc-462ce7239c10)

## 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 %}
