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.
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 .
ffmpeg HTTP-LS:
ffmpeg -i http://example.org/playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4
iOS ffmpeg.
Chrome, m3u8, HLS Video Saver
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).
THE_URL
--help
: Perl JSON ( ), sudo cpan JSON.
sudo cpan JSON
iOS 10 AVFoundation HTTP Live Streaming (HLS) iOS.
https://developer.apple.com/documentation/avfoundation/media_assets_playback_and_editing/asset_manipulation/downloading_and_playing_offline_http_live_streaming_content?changes=_4
git: HLSion
, . , HLS AES-128.
https://assist-software.net/snippets/how-play-encrypted-http-live-streams-offline-avfoundation-ios-using-swift-4