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

Compare commits

..

No commits in common. "85a560629170979d5f941db0a572c64c24ae7100" and "ee927c5b8fdaa37868e7cb7596cab3160d88b5e1" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,6 @@ forwarding:
# - rtmp://live-cdg.twitch.tv/app/STREAM_KEY # - rtmp://live-cdg.twitch.tv/app/STREAM_KEY
# - rtmp://a.rtmp.youtube.com/live2/STREAM_KEY # - rtmp://a.rtmp.youtube.com/live2/STREAM_KEY
# - /home/ghostream/lives/%name/live-%Y-%m-%d-%H-%M-%S.flv # - /home/ghostream/lives/%name/live-%Y-%m-%d-%H-%M-%S.flv
# - rtmp://ovenmediaengine:1915/app/demo # For player
## Prometheus monitoring ## ## Prometheus monitoring ##
# Expose a monitoring endpoint for Prometheus # 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, "%S", fmt.Sprintf("%02d", now.Second()))
formattedURL = strings.ReplaceAll(formattedURL, "%name", streamName) formattedURL = strings.ReplaceAll(formattedURL, "%name", streamName)
params = append(params, "-f", "flv", params = append(params, "-f", "flv", "-preset", "ultrafast", "-tune", "zerolatency",
"-c:v", "copy", "-c:a", "aac", "-b:a", "160k", "-ar", "44100", formattedURL) "-c", "copy", formattedURL)
} }
ffmpeg := exec.Command("ffmpeg", params...) ffmpeg := exec.Command("ffmpeg", params...)