Hello!
I’m sending a RTMP stream from FMLE to Wowza with 1280x720 Resolution and 15.00 fps. I want to receive RTMP streams from Wowza with different qualities. So, I have created the transcode.xml to do it. Here it is:
<Root>
<Transcode>
<Description>transcode.xml</Description>
<Encodes>
<Encode>
<Enable>true</Enable>
<Name>max</Name>
<StreamName>mp4:${SourceStreamName}_max</StreamName>
<Video>
<Codec>H.264</Codec>
<Implementation>NVENC</Implementation>
<GPUID>-1</GPUID>
<Bitrate>921600</Bitrate>
<FrameSize>
<FitMode>fit-height</FitMode>
<Width>1280</Width>
<Height>720</Height>
</FrameSize>
<Profile>main</Profile>
<KeyFrameInterval>
<FollowSource>true</FollowSource>
</KeyFrameInterval>
<Parameters>
</Parameters>
</Video>
<Audio>
<Codec>AAC</Codec>
<Bitrate>192000</Bitrate>
<Parameters>
</Parameters>
</Audio>
<Properties>
</Properties>
</Encode>
<Encode>
<Enable>true</Enable>
<Name>high</Name>
<StreamName>mp4:${SourceStreamName}_high</StreamName>
<Video>
<Codec>H.264</Codec>
<Implementation>NVENC</Implementation>
<GPUID>-1</GPUID>
<Bitrate>950000</Bitrate>
<FrameSize>
<FitMode>fit-height</FitMode>
<Width>854</Width>
<Height>480</Height>
</FrameSize>
<Profile>main</Profile>
<KeyFrameInterval>
<FollowSource>true</FollowSource>
</KeyFrameInterval>
<Parameters>
</Parameters>
</Video>
<Audio>
<Codec>AAC</Codec>
<Bitrate>128000</Bitrate>
<Parameters>
</Parameters>
</Audio>
<Properties>
</Properties>
</Encode>
<Encode>
<Enable>true</Enable>
<Name>medium</Name>
<StreamName>mp4:${SourceStreamName}_medium</StreamName>
<Video>
<Codec>H.264</Codec>
<Implementation>NVENC</Implementation>
<GPUID>-1</GPUID>
<Bitrate>440000</Bitrate>
<FrameSize>
<FitMode>fit-height</FitMode>
<Width>640</Width>
<Height>480</Height>
</FrameSize>
<Profile>main</Profile>
<KeyFrameInterval>
<FollowSource>true</FollowSource>
</KeyFrameInterval>
<Parameters>
</Parameters>
</Video>
<Audio>
<Codec>AAC</Codec>
<Bitrate>64000</Bitrate>
<Parameters>
</Parameters>
</Audio>
<Properties>
</Properties>
</Encode>
<Encode>
<Enable>true</Enable>
<Name>low</Name>
<StreamName>mp4:${SourceStreamName}_low</StreamName>
<Video>
<Codec>Disable</Codec>
<Implementation>NVENC</Implementation>
<GPUID>-1</GPUID>
<Bitrate></Bitrate>
<Profile></Profile>
<KeyFrameInterval>
<FollowSource>true</FollowSource>
</KeyFrameInterval>
<Parameters>
</Parameters>
</Video>
<Audio>
<Codec>AAC</Codec>
<Bitrate>64000</Bitrate>
<Parameters>
</Parameters>
</Audio>
<Properties>
</Properties>
</Encode>
</Encodes>
</Transcode>
</Root>
As you can see, the max quality has 1280x720 resolution and Bitrate 921600. But If I get the max quality stream via curl, it’s not the same as transcode.xml’s max quality:
$ curl http://my.example.net/live/_definst_/test123_max/playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1423402,CODECS="avc1.77.31",RESOLUTION=960x720
chunklist_w1743338469.m3u8
So, the actual resolution is 960x720. Why is it happening?