Disable bitrate check to allow h265 to be transcoded to h264

This commit is contained in:
Zoe Roux 2024-03-27 20:53:37 +01:00
parent 22b68f4dc7
commit 12276ed034
No known key found for this signature in database

View File

@ -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())