mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
Use the built-in AAC codec
This commit is contained in:
parent
a0d27df8c6
commit
1409477dce
2 changed files with 3 additions and 3 deletions
|
@ -296,8 +296,9 @@ func (v *HLSVariant) getAudioQualityString() string {
|
||||||
return fmt.Sprintf("-map a:0 -c:a:%d copy", v.index)
|
return fmt.Sprintf("-map a:0 -c:a:%d copy", v.index)
|
||||||
}
|
}
|
||||||
|
|
||||||
encoderCodec := "libfdk_aac"
|
// libfdk_aac is not a part of every ffmpeg install, so use "aac" instead
|
||||||
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)
|
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
|
// AddVariant adds a new HLS variant to include in the output
|
||||||
|
|
|
@ -90,7 +90,6 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
|
||||||
|
|
||||||
f, err := os.OpenFile(pipePath, os.O_RDWR, os.ModeNamedPipe)
|
f, err := os.OpenFile(pipePath, os.O_RDWR, os.ModeNamedPipe)
|
||||||
_pipe = f
|
_pipe = f
|
||||||
fmt.Println(pipePath)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue