Skip to content

Commit

Permalink
update envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman SHamagin committed Sep 3, 2023
1 parent 1042cad commit fd04f84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ func (c *Config) m3u8ReverseProxy(ctx *gin.Context) {
if hlsListSize == "" {
hlsListSize = "5" // значение по умолчанию
}
fmt.Println("CRF:", crf)
fmt.Println("SCALE:", scale)
fmt.Println("BITRATE_VIDEO:", bitrateVideo)
fmt.Println("BITRATE_AUDIO:", bitrateAudio)
fmt.Println("HLS_TIME:", hlsTime)
fmt.Println("HLS_LIST_SIZE:", hlsListSize)
// Запуск ffmpeg для трансляции
cmd := exec.Command("ffmpeg", "-i", fullURL,
"-c:v", "libx265", "-preset", preset, "-tune", "zerolatency", "-crf", crf,
Expand Down

0 comments on commit fd04f84

Please sign in to comment.