HLS over IPFS video player

How to use:

Accepts three query parameters:

Usage Examples:

How to make compatible videos:

Here is a Bash script you can use to encode a video into a HLS folder with a playlist:

#!/usr/bin/env bash
outdir=${1%.*}
mkdir "$outdir"
pushd "$outdir"
ffmpeg -i "../$1" -profile:v baseline -level 3.0 -start_number 0 -hls_time 5 -hls_list_size 0 -f hls master.m3u8
popd

(If you add that to your path as recode-to-hls you can convert a folder of MP4 files with the command ls *.mp4 -1 | xargs -d "\n" -n1 recode-to-hls.)

A folder produced this way can be posted to IPFS, and that hash is used in this page URL. Here are two hashes created following this format: