HLS-9: Allow filename prefix to be specified



Issue Information

Issue Type: New Feature
 
Priority: Minor
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: HLS Stream Creator (HLS)
Resolution: Done (2015-06-15 12:53:03)
Target version: 1.0,
Components: Playlists , CLI Options ,

Created: 2015-06-12 16:21:59
Time Spent Working


Description
The filename prefix is currently (by default) the filename of the input source - it's pretty ugly really.
foo.avi.m3u8
foo.avi_00001.ts


Need to add an option to allow the filename prefix to be specified if preferred, e.g.
./HLS-Stream-Creator.sh -i foo.avi -s 10 -p foo
foo.m3u8
foo_00001.ts


Toggle State Changes

Activity


Thinking about it some more, I'd like to add this as two options, one for segment titles and one for the playlist
./HLS-Stream-Creator.sh -i foo.avi -s 10 -p foo-bar -t bar
foo-bar.m3u8
bar_00001.ts

That way, downstream systems that require a specific filename for the manifest can be satisfied whilst not necessarily being tied to having the same name for the segments themselves.

Repo: HLS-Stream-Creator
Commit: 7d3c159a3bf1816e145250bd15bc0ee29028588c
Author: Ben Tasker <github@<Domain Hidden>>

Date: Mon Jun 15 12:39:15 2015 +0100
Commit Message: Allowed playlist prefix to be specified for HLS-9



Modified (-)(+)
-------
HLS-Stream-Creator.sh




Webhook User-Agent

GitHub-Hookshot/99ae70d


View Commit


Repo: HLS-Stream-Creator
Commit: a35a41bd9aed268372e2bb37383ce14d5fc11aba
Author: Ben Tasker <github@<Domain Hidden>>

Date: Mon Jun 15 12:42:32 2015 +0100
Commit Message: Allowed segment filename prefix to be specified. See HLS-9



Modified (-)(+)
-------
HLS-Stream-Creator.sh




Webhook User-Agent

GitHub-Hookshot/99ae70d


View Commit

Have added two new options
-p [name]     Playlist filename prefix
-t [name]     Segment filename prefix (title)

If the playlist name isn't specified it takes it from the inputfile. If the segment name isn't specified, it's taken from the playlist name (so may also come from the inputfilename).
In a wrapper script, the values can be set in
PLAYLIST_PREFIX='foo'
SEGMENT_PREFIX='bar'

Will update the README shortly
btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'

Repo: HLS-Stream-Creator
Commit: 55d3a7e7c823b7e77fe6df833adc8e37c0856d92
Author: Ben Tasker <github@<Domain Hidden>>

Date: Mon Jun 15 12:52:49 2015 +0100
Commit Message: Updated README to reflect changes in HLS-9



Modified (-)(+)
-------
README.md




Webhook User-Agent

GitHub-Hookshot/99ae70d


View Commit