Explorar o código

More M3U8 helpers

Zachary Kotlarek %!s(int64=10) %!d(string=hai) anos
pai
achega
9e06ed7934
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      m3u8-fetch.sh
  2. 0 0
      m3u8-uri.sh

+ 10 - 0
m3u8-fetch.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+URI="${1}"
+FILE="${2}"
+if [ -z "${URI}" || -z "${FILE}" || -e "${FILE}" ]; then
+	echo "Usage: ${0} URI output_file" 1>&2
+	exit 1
+fi
+
+ffmpeg -i "${1}" -bsf:a aac_adtstoasc -vcodec copy -c copy "${FILE}"

+ 0 - 0
m3u8.sh → m3u8-uri.sh