How to change the horizontal screen to the vertical screen when the ENC encoder RTMP pushes the stream
How to change the horizontal screen to the vertical screen when the ENC encoder RTMP pushes the stream
Today, a customer asked this question. I didn't pay attention to it before, so I tried it myself and posted the method. Next time, if a customer encounters this problem, there will be a basis for reference.
The original video is 1920*1080, as shown below:
Rotate 90 degree configuration method:
The first step into 编码设置
the 高级编码参数
will 分辨率
was changed1080*1920
The second step proceeds 编码设置
to 视频参数
the 旋转
setting 90
done, RTMP
plug flow preview:
Black screen compensation method
The first step into 编码设置
the 高级编码参数
will 分辨率
to 1080*1920
the second step, into the 视频混合
interface, will 混合开关
open, if desired HDMI output, open HDMI开关
, select Mix
as the 视频源
following figure:
The second step, disposed in a mixed video mixing page layout, as follows:
the Change the layout in the figure 上下
, and then 自定义布局
select the original layout 上下
as follows:
[{
"x":0,"y":0,"w":1,"h":0.5,"index":0},
{
"x":0,"y":0.5,"w":1,"h":0.5,"index":1}]
After the change:
[{
"x":0,"y":0,"w":1,"h":0.33,"index":0},
{
"x":0,"y":0.33,"w":1,"h":0.33,"index":1},
{
"x":0,"y":0.66,"w":1,"h":0.33,"index":2}]
After saving, we check the RTMP
push effect:
As shown in the figure above, the upper and lower parts have already compensated for the black screen. I just give an example. If you want to customize the layout, you can learn the custom layout parameters.
End. Thank you for your support and praise!
ENC1
Equipment reference address: https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.4ace1debu8flPw&ft=t&id=618201308044