Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

HLS Labels


Hi I am trying to set the HLS Labels in the options.

However, every bitrate or parameter I try doesn't match. I'm wondering if it's the manifest file. Can you have a look and see if this will work?

#EXTM3U
#EXT-X-VERSION:4
## Created with Unified Streaming Platform(version=1.6.6)

# AUDIO groups
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-64",NAME="audio",AUTOSELECT=YES,DEFAULT=YES

# variants
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=386000,CODECS="mp4a.40.2,avc1.42C00D",RESOLUTION=320x180,AUDIO="audio-64"
live-audio=64000-video=300000.m3u8?&vbegin=1422371730
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=969000,CODECS="mp4a.40.2,avc1.42C01E",RESOLUTION=640x360,AUDIO="audio-64"
live-audio=64000-video=850000.m3u8?&vbegin=1422371730
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1446000,CODECS="mp4a.40.2,avc1.42C01F",RESOLUTION=1024x576,AUDIO="audio-64"
live-audio=64000-video=1300000.m3u8?&vbegin=1422371730

# variants
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=68000,CODECS="mp4a.40.2",AUDIO="audio-64"
live-audio=64000.m3u8?&vbegin=1422371730

# keyframes
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=128000,CODECS="avc1.42C00D",RESOLUTION=320x180,URI="keyframes/live-video=300000.m3u8?&vbegin=1422371730"
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=361000,CODECS="avc1.42C01E",RESOLUTION=640x360,URI="keyframes/live-video=850000.m3u8?&vbegin=1422371730"
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=552000,CODECS="avc1.42C01F",RESOLUTION=1024x576,URI="keyframes/live-video=1300000.m3u8?&vbegin=1422371730"

8 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

I believe the NAME parameter will do the trick:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1600000,RESOLUTION=1280×720,NAME=“720p HD”
1280/prog_index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=832000,RESOLUTION=640×360,NAME=“360p SD”
640/prog_index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=320000,RESOLUTION=320×180,NAME=“180p 3G”
320/prog_index.m3u8

http://support.jwplayer.com/customer/portal/articles/1430240-hls-adaptive-streaming

Best Regards,
Cooper

chris.airey

User  
0 rated :

Yes, but the label overrides are also meant to work.

"By default, the JW Player will set video quality levels using information from the manifest files. Use this configuration option to apply a custom quality label to a desired bandwidth in kbps. For example:"

From http://support.jwplayer.com/customer/portal/articles/1413113-configuration-options-reference

However, when trying this. I could not get it to work.

Best
Chris

Cooper Reid

JW Player Support Agent  
0 rated :

Are you positive you’re using kb in your labels?
1600000 b = 1600 kb
832000 b = 832 kb
320000 b = 320 kb

Cooper

chris.airey

User  
0 rated :

Yeah that's not working correctly.

What are you matching on in the manifest for this?

Best
Chris

Cooper Reid

JW Player Support Agent  
0 rated :

#EXT-X-STREAM-INF:BANDWIDTH=3604351
hlslabels: { medium: 3604 }

Cooper

chris.airey

User  
0 rated :

Hi Cooper,

Tried this as well based on my manifest and that still doesn't work.

hlslabels:{
high: 1300,
medium: 969,
low: 386
},

Best

djoworisak

User  
0 rated :

The documentation is wrong. The KBPS should appear first, then the label:

hlslabels:{
1300: "high",
969: "medium",
386: "low"
},

Cooper Reid

JW Player Support Agent  
0 rated :

You’re right! We’ll update our docs accordingly -

Best Regards,
Cooper

This question has received the maximum number of answers.