commit 48138d0986aa809d5a0255d6f4722bbc6183caaa from: Oliver Lowe date: Thu Jun 15 02:17:59 2023 UTC Add hlsget manual page commit - f5a9007125ae212352facb8e2c55eccc174e2a23 commit + 48138d0986aa809d5a0255d6f4722bbc6183caaa blob - cdb22c849fb672e74882bca30adaa16bfa879c7b blob + fc72c752f5ce20b4cf77eb9b3ce698cfd5962736 --- bin/hlsget +++ bin/hlsget @@ -32,6 +32,7 @@ then fi url=$1 +# basename may not have the -d option, so try dirname too. base=`basename -d $url || dirname $url` # strip manifest tags and carriage returns blob - /dev/null blob + bb05b8cd32b5f1c8102ec3d1df4a6854f6fa2ab3 (mode 644) --- /dev/null +++ man/hlsget.1 @@ -0,0 +1,33 @@ +.Dd +.Dt HLSGET 1 +.Sh Name +.Nm hlsget +.Nd download the contents of a HLS playlist +.Sh SYNOPSIS +.Nm +.Op Fl d +.Op Fl ls +.Ar url +.Sh DESCRIPTION +.Nm +reads the m3u8 playlist pointed to by +.Ar url, +fetches each file listed +and writes it to the standard output. +.Pp +The following flags are understood: +.Bl -tag -width Ds +.It Fl d +Enable debugging output to standard error. +.It Fl l +Print the URLs to each file in the playlist; do not download. +.It Fl s +Write each file in the playlist to a new file in the current working directory +instead of concatenating to the standard output. +.Sh EXAMPLE +Stream video to ffplay(1): +.Dl hlsget http://video.example.com/index.m3u8 | ffplay -i - +.Sh EXIT STATUS +.Ex +.Sh SEE ALSO +.Xr curl 1