Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To turn a picture to a certain angle RTMP metadata containing ‘orientation’ field should be sent. The following orientations are supported:


Значение поля

Угол поворота в градусах

0

0

1

90

2

180

3

270

A picture is rotated clockwise.

...

Note that orientation value should be sent but not angle itself.

How to rotate stream published from ffmpeg

ffmpeg RTMP encoder allows to send orientation metadata to WCS server using command line switches:

Code Block
languagebash
themeRDark
ffmpeg -i input.mp4 -metadata:s:v rotate=90 -vcodec copy -acodec copy -strict -2 -f flv rtmp://test1.flashphoner.com:1935/live/stream_ffmpeg

Note that ffmpeg sends orientattion value but not angle itself.

Known issues

Excerpt Include
From another server via RTMP
From another server via RTMP
nopaneltrue

...