How to download and decode HTTP Live Streaming (HLS) videos in iOS?

I want to download chunks of M3U8 (HLS) files and save this video (after decrypting it) for later viewing. I did a demo to play the M3U8 file, but I want to download the video data for later viewing.

+9
source share
6 answers

I had problems loading HLS streams a few months ago. But after spending a lot of time, I was able to implement loading hls streams and save it as a single mp4 file. you can use here here .

+5
source

ffmpeg HTTP-LS:

ffmpeg -i http://example.org/playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

iOS ffmpeg.

+22

Chrome, m3u8, HLS Video Saver

+4

Perl script : https://github.com/osklil/hls-fetch

:

wget https://raw.githubusercontent.com/osklil/hls-fetch/master/hls-fetch
chmod +x hls_fetch
./hls_fetch --playlist "THE_URL"

THE_URL URL- M3U8 ( --help).

: Perl JSON ( ), sudo cpan JSON.

+4

All Articles