Skip to content

Commit

Permalink
code forgotten in copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher committed Dec 17, 2023
1 parent 09012fa commit a4cfd46
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions playout/libretime_playout/liquidsoap/templates/outputs.liq.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ output_hls_{{ output_id }}_source = s

streams = ref([])

{% for stream in output.streams -%}

streamout = %ffmpeg(format="{{output.format}}" ,
%audio( codec="{{stream.codec}}",
channels=2,
ar={{stream.sample_rate}},
b="{{stream.bitrate}}"))
streams := list.append([("{{stream.fragment_prefix}}", streamout)], !streams)

{% endfor -%}

def segment_name(~position,~extname, stream_name) =
timestamp = int_of_float(time())
duration = {{output.segment_duration}}
Expand Down

0 comments on commit a4cfd46

Please sign in to comment.