Skip to content

Instantly share code, notes, and snippets.

View Ravi-ERInfotech's full-sized avatar

Ravi @ ER Infotech™ Ravi-ERInfotech

View GitHub Profile
@Ravi-ERInfotech
Ravi-ERInfotech / create-vod-hls.sh
Created August 16, 2022 07:01 — forked from maitrungduc1410/create-vod-hls.sh
Bash scripts to create VOD HLS stream with ffmpeg (Extended version)
#!/usr/bin/env bash
START_TIME=$SECONDS
set -e
echo "-----START GENERATING HLS STREAM-----"
# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1
# comment/add lines here to control which renditions would be created
renditions=(
@Ravi-ERInfotech
Ravi-ERInfotech / README.md
Created August 16, 2022 06:58 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8