Files
mp-qvyun/backend/readme.md
2024-12-04 14:11:50 +08:00

396 B

https://github.com/etherlabsio/go-m3u8

https://github.com/FlashFeiFei/m3u8Transmit/blob/main/main.go

mp4 -> ts

ffmpeg -y -i video.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb video.ts

ts -> m3u8

ffmpeg -y -i video.ts -hls_time 10 -hls_segment_filename ./m3u8/s%d.ts ./m3u8/index.m3u8

mp4 to m3u8

ffmpeg -i input.mp4 -c:v libx264 -c:a aac -strict -2 -f hls output.m3u8