Skip to content

Assigning audio group in multibitrate HLS #899

Open
@vasudevavarun

Description

System info

Operating System: Centos 7.4(64bit)
Shaka Packager Version: 2.4.3

Issue and steps to reproduce the problem

Packager Command:

./packager-linux-2.4.3 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_2000.mp4,stream=video,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/2000-$Number$.ts,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/2000.m3u8' 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_700.mp4,stream=video,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/700-$Number$.ts,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/700.m3u8' 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_250.mp4,stream=video,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/250-$Number$.ts,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/250.m3u8' 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_2000.mp4,stream=audio,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/128-$Number$.aac,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/128.m3u8,hls_group_id=audio' 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_250.mp4,stream=audio,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/32-$Number$.aac,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/32.m3u8,hls_group_id=audio' 'in=/opt/video/data/amritatv_ott615/bulk_video/dest/mp4/a_2_700.mp4,stream=audio,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/64-$Number$.aac,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/64.m3u8,hls_group_id=audio' 'in=/tmp/Subtitle\ 1.vtt,stream=text,segment_template=/opt/video/data/amritatv_ott615/bulk_video/dest/$Number$.vtt,playlist_name=/opt/video/data/amritatv_ott615/bulk_video/dest/main.m3u8,hls_group_id=text,hls_name=ENGLISH' --hls_master_playlist_output /opt/video/data/amritatv_ott615/bulk_video/dest/hls/a_2/a.m3u8

What is the expected result?

#EXTM3U

Generated with https://github.com/google/shaka-packager version v2.4.3-dd98700-release

#EXT-X-MEDIA:TYPE=AUDIO,URI="128.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_1",AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,URI="64.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_5",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,URI="32.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_3",CHANNELS="2"

#EXT-X-MEDIA:TYPE=SUBTITLES,URI="main.m3u8",GROUP-ID="text",NAME="ENGLISH",AUTOSELECT=YES

#EXT-X-STREAM-INF:BANDWIDTH=2264710,AVERAGE-BANDWIDTH=2189543,CODECS="avc1.4d4029,mp4a.40.2",RESOLUTION=768x576,AUDIO="audio_128",SUBTITLES="text"
2000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=893814,AVERAGE-BANDWIDTH=865367,CODECS="avc1.4d4029,mp4a.40.2",RESOLUTION=640x480,AUDIO="audio_64",SUBTITLES="text"
700.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=421558,AVERAGE-BANDWIDTH=408952,CODECS="avc1.42c01f,mp4a.40.2",RESOLUTION=384x288,AUDIO="audio_32",SUBTITLES="text"
250.m3u8

What happens instead?

#EXTM3U

Generated with https://github.com/google/shaka-packager version v2.4.3-dd98700-release

#EXT-X-MEDIA:TYPE=AUDIO,URI="128.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_1",AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,URI="64.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_5",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,URI="32.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="stream_3",CHANNELS="2"

#EXT-X-MEDIA:TYPE=SUBTITLES,URI="main.m3u8",GROUP-ID="text",NAME="ENGLISH",AUTOSELECT=YES

#EXT-X-STREAM-INF:BANDWIDTH=2264710,AVERAGE-BANDWIDTH=2189543,CODECS="avc1.4d4029,mp4a.40.2",RESOLUTION=768x576,AUDIO="audio",SUBTITLES="text"
2000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=893814,AVERAGE-BANDWIDTH=865367,CODECS="avc1.4d4029,mp4a.40.2",RESOLUTION=640x480,AUDIO="audio",SUBTITLES="text"
700.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=421558,AVERAGE-BANDWIDTH=408952,CODECS="avc1.42c01f,mp4a.40.2",RESOLUTION=384x288,AUDIO="audio",SUBTITLES="text"
250.m3u8

I want to associate audio group with desired bitrate.
Thanks

Metadata

Assignees

No one assigned

    Labels

    flag: seeking PRWe are actively seeking PRs for this; we do not currently expect the core team will resolve thistype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions