HLS FLAC stream using FFMPEG

纵然是瞬间 提交于 2021-01-25 05:51:12

问题


I have created a HLS stream from a FLAC file with an output of FLAC using the following command:

ffmpeg 
    -i 10-brass-in-pocket.flac 
    -map 0:a -c:a:0 flac 
    -f hls 
    -hls_playlist_type vod 
    -master_pl_name master.m3u8 
    -hls_time 30 
    -hls_segment_type fmp4 
    -strict -2  
    -hls_segment_filename music.m4s 
    -hls_flags single_file  
    -var_stream_map "a:0" stream_%v.m3u8`

I have published it here:

https://di5wym8npn4cm.cloudfront.net/stackoverflow_fmp4_singlefile/master.m3u8. (this works in VLC)

Page with audio controls here:

https://di5wym8npn4cm.cloudfront.net/stackoverflow_fmp4_singlefile/index.html

I can see from the network tab in Safari that the second segment fails with a http code 206.

Why does this stream not play?

来源:https://stackoverflow.com/questions/65629475/hls-flac-stream-using-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!