bentasker / HLS-Stream-Creator

Simple Bash Script to take a media file, segment it and create an M3U8 playlist for serving using HLS
BSD 3-Clause "New" or "Revised" License
273 stars 101 forks source link

Make OUTPUT_DIRECTORY play nicely with -S & -o #18

Closed JapSeyz closed 6 years ago

JapSeyz commented 6 years ago

The command: ./segment.sh -i video.mov -s 4 -b 512 -t video -p video -S partials -o streams would fail without this fix, as it would try to access streamspartials (notice the missing directory-separator).

and you would have to append the slash in your config and make the command look like this: ./segment.sh -i video.mov -s 4 -b 512 -t video -p video -S partials -o streams/

This fixes the issue, and you can now omit the last slash in the -o flag.

bentasker commented 6 years ago

Nice catch thanks. merging

JapSeyz commented 6 years ago

Np, thanks for the awesome script!