大视频文件切割成m3u8方式:
ffmpeg -i .\一秒钟-2020_HD国语中字.mp4 -codec: copy -bsf:v h264_mp4toannexb -start_number 0 -hls_time 10 -hls_list_size 0 -f hls one-second.m3u8
video.js 可以直接插入m3u8地址文件
<video id="my-video" class="video-js" controls preload="auto" width="1080" height="708" poster="MY_VIDEO_POSTER.jpg" data-setup="{}" > <source id="source" src="./one-second/one-second.m3u8" type="application/x-mpegURL"> </video>