Browse Source

Do not transcode audio just pass it along

pull/5/head
Gabe Kangas 5 years ago
parent
commit
2829d14144
  1. 5
      ffmpeg.go
  2. 0
      hls/.gitkeep
  3. 0
      webroot/hls/.gitkeep

5
ffmpeg.go

@ -43,7 +43,8 @@ func startFfmpeg(configuration Config) { @@ -43,7 +43,8 @@ func startFfmpeg(configuration Config) {
"-hide_banner",
"-i pipe:",
strings.Join(videoMaps, " "), // All the different video variants
strings.Join(audioMaps, " ") + " -c:a aac -b:a 192k -ac 2", // Audio for all the variants
strings.Join(audioMaps, " ") + " -c:a copy", // Audio for all the variants
// strings.Join(audioMaps, " ") + " -c:a aac -b:a 192k -ac 2", // Audio for all the variants
"-master_pl_name stream.m3u8",
"-g 48",
"-keyint_min 48",
@ -59,7 +60,7 @@ func startFfmpeg(configuration Config) { @@ -59,7 +60,7 @@ func startFfmpeg(configuration Config) {
"-hls_segment_filename " + path.Join(outputDir, "stream-%Y%m%d-%s.ts"),
"-hls_flags delete_segments+program_date_time+temp_file",
"-segment_wrap 100",
"-master_m3u8_publish_rate 5",
// "-master_m3u8_publish_rate 5",
"-var_stream_map \"" + strings.Join(streamMaps, " ") + "\"",
variantPlaylistName,
}

0
hls/.gitkeep

0
webroot/hls/.gitkeep

Loading…
Cancel
Save