x

Programs, configuration and documentation that don't fit anywhere else
Log | Files | Refs | README | LICENSE

commit 48138d0986aa809d5a0255d6f4722bbc6183caaa
parent f5a9007125ae212352facb8e2c55eccc174e2a23
Author: Oliver Lowe <o@olowe.co>
Date:   Wed, 24 May 2023 13:27:25 +1000

Add hlsget manual page

Diffstat:
Mbin/hlsget | 1+
Aman/hlsget.1 | 33+++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/bin/hlsget b/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 diff --git a/man/hlsget.1 b/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