AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://airensoft.com/ome.html
GNU Affero General Public License v3.0
2.55k stars 1.06k forks source link

Specify Default Playlist Rendition Quality #891

Closed Zibbp closed 2 years ago

Zibbp commented 2 years ago

Hi, Is there a way to specify, either in the server config or player, a default playlist rendition quality? I'm using LLHLS with playlist quality renditions and the player defaults to "auto" and the lowest quality rendition possible. I can't seem to get the "auto" working as it will not switch to the higher quality rendition on a good internet connection. I can manually swap to the higher quality but would love to have that as the default or at least have the "auto" work. I tested this using the "THEO" player and the auto worked perfectly there.

I'm using the standard player configuration with type "hls" and the URL pointing to the playlist filename, in this case it is abr.m3u8.

image

Playlist config:

<OutputProfile>
    <Name>default</Name>
    <OutputStreamName>${OriginStreamName}</OutputStreamName>

    <Playlist>
        <Name>llhls</Name>
        <FileName>abr</FileName>
        <Rendition>
            <Name>Bypass</Name>
            <Video>bypass_video</Video>
            <Audio>bypass_audio</Audio>
        </Rendition>
        <Rendition>
            <Name>720p</Name>
            <Video>video_720p</Video>
            <Audio>bypass_audio</Audio>
        </Rendition>
    </Playlist>

    <Encodes>
        <Video>
            <Name>bypass_video</Name>
            <Bypass>true</Bypass>
        </Video>

        <Video>
            <Name>video_720p</Name>
            <Codec>h264</Codec>
            <Width>1280</Width>
            <Height>720</Height>
            <Bitrate>2000000</Bitrate>
            <Framerate>30</Framerate>
        </Video>
        <Audio>
            <Name>bypass_audio</Name>
            <Bypass>True</Bypass>
        </Audio>
        <Audio>
            <Name>aac</Name>
            <Codec>aac</Codec>
            <Bitrate>128000</Bitrate>
            <Samplerate>48000</Samplerate>
            <Channel>2</Channel>
        </Audio>
    </Encodes>
</OutputProfile>
getroot commented 2 years ago

This seems to be an issue with hls.js . Could you please move the issue to the OvenPlayer repo?