Simplify segment filenames. Closes #1778

Remove the seconds as an identifier to allow for segments to be written
more than one per second.
This commit is contained in:
Gabe Kangas 2022-03-10 14:13:15 -08:00
parent 994145b609
commit b9a597299f
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -220,9 +220,8 @@ func (t *Transcoder) getString() string {
// Filenames
"-master_pl_name", "stream.m3u8",
"-strftime 1", // Support the use of strftime in filenames
"-hls_segment_filename", localListenerAddress + "/%v/stream-" + t.segmentIdentifier + "%s.ts", // Send HLS segments back to us over HTTP
"-hls_segment_filename", localListenerAddress + "/%v/stream-" + t.segmentIdentifier + "-%d.ts", // Send HLS segments back to us over HTTP
"-max_muxing_queue_size", "400", // Workaround for Too many packets error: https://trac.ffmpeg.org/ticket/6375?cversion=0
"-method PUT", // HLS results sent back to us will be over PUTs