1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-02-12 06:21:16 +00:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Yohann D'ANELLO
85a5606291 Investigate of why I don't have any audio 2020-11-09 15:57:30 +01:00
Yohann D'ANELLO
33f86a0742 Investigate of why I don't have any audio 2020-11-09 15:55:44 +01:00
Yohann D'ANELLO
11d89c6950 Encode audio with opus codec 2020-11-09 15:48:30 +01:00
Yohann D'ANELLO
c9a2d5b359 Add ovenmediaengine in example config 2020-11-09 15:47:42 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ forwarding:
# - rtmp://live-cdg.twitch.tv/app/STREAM_KEY
# - rtmp://a.rtmp.youtube.com/live2/STREAM_KEY
# - /home/ghostream/lives/%name/live-%Y-%m-%d-%H-%M-%S.flv
# - rtmp://ovenmediaengine:1915/app/demo # For player
## Prometheus monitoring ##
# Expose a monitoring endpoint for Prometheus

View File

@ -74,8 +74,8 @@ func forward(streamName string, q *messaging.Quality, fwdCfg []string) {
formattedURL = strings.ReplaceAll(formattedURL, "%S", fmt.Sprintf("%02d", now.Second()))
formattedURL = strings.ReplaceAll(formattedURL, "%name", streamName)
params = append(params, "-f", "flv", "-preset", "ultrafast", "-tune", "zerolatency",
"-c", "copy", formattedURL)
params = append(params, "-f", "flv",
"-c:v", "copy", "-c:a", "aac", "-b:a", "160k", "-ar", "44100", formattedURL)
}
ffmpeg := exec.Command("ffmpeg", params...)