From 2829d14144ebe55cbbd53f4e80482f41431b147b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 9 Jun 2020 02:47:02 -0700 Subject: [PATCH] Do not transcode audio just pass it along --- ffmpeg.go | 5 +++-- hls/.gitkeep | 0 webroot/hls/.gitkeep | 0 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 hls/.gitkeep delete mode 100644 webroot/hls/.gitkeep diff --git a/ffmpeg.go b/ffmpeg.go index 8cb277ecb..4dc5b16d6 100644 --- a/ffmpeg.go +++ b/ffmpeg.go @@ -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) { "-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, } diff --git a/hls/.gitkeep b/hls/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/webroot/hls/.gitkeep b/webroot/hls/.gitkeep deleted file mode 100644 index e69de29bb..000000000