Use a custom segement name function #2

Open
opened 2024-06-16 23:46:35 +02:00 by togir · 0 comments
togir commented 2024-06-16 23:46:35 +02:00 (Migrated from gitlab.com)

Restarting the stream causes "skips" in the audio with the default function.

We can use the one provided in the hls example:

def segment_name(~position,~extname,stream_name) =
  timestamp = int_of_float(gettimeofday())
  duration = 2
  "#{stream_name}_#{duration}_#{timestamp}_#{position}.#{extname}"
end
Restarting the stream causes "skips" in the audio with the default function. We can use the one provided in the [hls example](https://www.liquidsoap.info/doc-2.2.4/hls_output.html): ``` def segment_name(~position,~extname,stream_name) = timestamp = int_of_float(gettimeofday()) duration = 2 "#{stream_name}_#{duration}_#{timestamp}_#{position}.#{extname}" end ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Bavariabeats/videostream#2
No description provided.