Skip to content

Instantly share code, notes, and snippets.

@darkphase
darkphase / m3u8download.sh
Created January 14, 2018 05:24 — forked from patrickgill/m3u8download.sh
download m3u8 ts segments, then decode, join, and remux them! (HTTP Live Streaming TS files)
# download
aria2c -x 5 -i file.m3u8
# decode (example)
openssl aes-128-cbc -d -K 15D0F46608409DA364E3F5D92BDE9F61 -iv 00000000000000000000000000000000 -nosalt -in G00000000.ts -out G00000000.d.ts
# join all ts files
cat *.ts > out.ts
# convert ts output file
#!/bin/bash
red="\033[31m"
green="\033[32m"
blue="\033[34m"
yellow="\033[33m"
reset="\033[0m"
echo -e $green"Detected Interfaces"$reset
echo ""