From 12276ed034b6ff54d916d7c6bfa249290a02c570 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 27 Mar 2024 20:53:37 +0100 Subject: [PATCH] Disable bitrate check to allow h265 to be transcoded to h264 --- transcoder/src/filestream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/src/filestream.go b/transcoder/src/filestream.go index 8793a2f8..410352e6 100644 --- a/transcoder/src/filestream.go +++ b/transcoder/src/filestream.go @@ -87,7 +87,7 @@ func (fs *FileStream) GetMaster() string { } aspectRatio := float32(fs.Info.Video.Width) / float32(fs.Info.Video.Height) for _, quality := range Qualities { - if quality.Height() < fs.Info.Video.Quality.Height() && quality.AverageBitrate() < fs.Info.Video.Bitrate { + if quality.Height() < fs.Info.Video.Quality.Height() { master += "#EXT-X-STREAM-INF:" master += fmt.Sprintf("AVERAGE-BANDWIDTH=%d,", quality.AverageBitrate()) master += fmt.Sprintf("BANDWIDTH=%d,", quality.MaxBitrate())