[FFmpeg-user] Error Encoding AAC to HLS Using ffmpeg

Ashish Jha ashish.jha at hoichoi.tv
Mon Dec 2 14:37:10 EET 2019

I want to encode an AAC formatted audio file into multi bitrate HLS using ffmpeg:

fmpeg -re -i input.aac -b:a:0 128k -af volume=6dB -ar 48000 -hls_time 20 -vn -hls_list_size 0 -b:a:1 256k -af volume=6dB -ar 48000  -hls_time 20 -vn -hls_list_size 0     -map 0:a -map 0:a -f hls -var_stream_map "a:0,agroup:aud_low a:1,agroup:aud_high" -master_pl_name index.m3u8 index_%v.m3u8

This lets me get 1 master manifest and 2 child manifests, which are playable on android. However, this does not play on desktop using chrome. I found these 2 lines in master manifest that seem to cause the issue. When manually removed, it plays perfectly.


Is there a way to encode audio in multibitrate that avoids this issue?

More information about the ffmpeg-user mailing list