También puede usar youtube-dl
para descargar su video desde una url m3u8, por ejemplo:
$ youtube-dl --hls-prefer-native "http://host/folder/file.m3u8"
[generic] playlist: Requesting header
[generic] playlist: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 275
[download] Destination: file-file.mp4
[download] 100% of 123.19MiB in 01:02
[ffmpeg] Fixing malformed AAC bitstream in "file-file.mp4"
Para instalar / actualizar youtube-dl
, debe escribir:
$ sudo -H $(which pip3) install -U youtube-dl
[sudo] password for xyztabcd:
Requirement already up-to-date: youtube-dl in /usr/local/miniconda3/lib/python3.6/site-packages (2019.4.7)