2026-07-036 min readhls tutorial, http live streaming tutorial, hls setup guide
HLS 初学者教程
从零开始设置 HLS 流媒体的分步教程。
你需要什么
视频文件、FFmpeg 编码和分段工具、Web 服务器(Apache/Nginx/CDN)、HLS 兼容播放器。
FFmpeg 创建 HLS 流
ffmpeg -i input.mp4 -c:v libx264 -c:a aac -f hls -hls_time 6 -hls_playlist_type vod playlist.m3u8