Rotate video stream

we generate the stream in landscape mode, and we want to send it as portrait.
so I am trying to rotate the whole video stream 90 degree clockwise, I tried with ffmpeg, but it did not work,

<ffmpeg>
    <path>udp://localhost:5004</path>
    <args>-filter:v transpose=dir=1:passthrough=portrait</args>
</ffmpeg>

what did I do wrong ?
or is there any another way to rotate the stream ?

I put ffmpeg tag inside consumers

<channels>
<channel>
    <video-mode>1080p2500</video-mode>
    <consumers>
<decklink>
        <device>3</device>
            <embedded-audio>true</embedded-audio>
            <latency>low</latency>
            <keyer>external</keyer>
            <key-only>false</key-only>
            <buffer-depth>3</buffer-depth>
            <custom-allocator>true</custom-allocator>
        </decklink>
        <decklink>
        <device>4</device>
            <embedded-audio>true</embedded-audio>
            <latency>low</latency>
            <keyer>external</keyer>
            <key-only>false</key-only>
            <buffer-depth>3</buffer-depth>
            <custom-allocator>true</custom-allocator>
        </decklink>
    <decklink>
        <device>7</device>
            <embedded-audio>true</embedded-audio>
            <latency>low</latency>
            <keyer>external</keyer>
            <key-only>false</key-only>
            <buffer-depth>3</buffer-depth>
            <custom-allocator>true</custom-allocator>
        </decklink>
        <ffmpeg>
            <path>udp://localhost:5004</path>
            <args> -filter:v transpose=dir=1:passthrough=portrait</args>
        </ffmpeg>
    </consumers>
</channel>
</channels>

Hm, I don’t think, that this works.

By the way: You have one channel sending it’s output to 3 separate SDI outputs? Does that make sense? Why not use an SDI distribution amp?

I would use a separate channel for the stream output and add a MIXER ROTATION command to it.

thank u for your suggestion about the 3 SDI outputs.

about the mixer rotation, I could not apply it by myself, It would be appreciated if you walk me through it.
how/where to add the mixer rotation command ?

You can not do much with CasparCG only from the config file. There is that “Client” that controls it (over TCP/IP) and that allows you do do all sort of stuff.

Add it to the rundown by double clicking. It will present you with settings on the right:

Grab4

Play around with it (and with other stuff) and you will find your way.

thank u,
I have tested this one, but this rotate every layer by its own, I will try again with it,
thank u again :slight_smile:

How many layers do you have? You can use one channel (whiteout an output attached) to composite together all layers and move them to another channel using the Route producer, if you have many layers or a variable amount of them.