From 1409477dce04dc89c07cc15bedf99985ca5e9565 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 11 Jul 2020 16:34:50 -0700 Subject: [PATCH] Use the built-in AAC codec --- core/ffmpeg/transcoder.go | 5 +++-- core/rtmp/rtmp.go | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ffmpeg/transcoder.go b/core/ffmpeg/transcoder.go index 98fba6835..c0bb2a8d8 100644 --- a/core/ffmpeg/transcoder.go +++ b/core/ffmpeg/transcoder.go @@ -296,8 +296,9 @@ func (v *HLSVariant) getAudioQualityString() string { return fmt.Sprintf("-map a:0 -c:a:%d copy", v.index) } - encoderCodec := "libfdk_aac" - return fmt.Sprintf("-map a:0 -c:a:%d %s -profile:a aac_he -b:a:%d %s", v.index, encoderCodec, v.index, v.audioBitrate) + // libfdk_aac is not a part of every ffmpeg install, so use "aac" instead + encoderCodec := "aac" + return fmt.Sprintf("-map a:0 -c:a:%d %s -b:a:%d %s", v.index, encoderCodec, v.index, v.audioBitrate) } // AddVariant adds a new HLS variant to include in the output diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go index b2b9bb1d3..880b77aa1 100644 --- a/core/rtmp/rtmp.go +++ b/core/rtmp/rtmp.go @@ -90,7 +90,6 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { f, err := os.OpenFile(pipePath, os.O_RDWR, os.ModeNamedPipe) _pipe = f - fmt.Println(pipePath) if err != nil { panic(err) }