Skip to content

Commit

Permalink
Revert "rearrange to fix build"
Browse files Browse the repository at this point in the history
This reverts commit 0902d6f.
  • Loading branch information
cewert committed Sep 28, 2023
1 parent 0902d6f commit cb474dc
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions source/utils/deviceCapabilities.brs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ function getDeviceProfile() as object
"IsRequired": true
}
'
' add mp3 directly to transcoding profile.
' for music i think?
' add mp3 to TranscodingProfile for music
deviceProfile.TranscodingProfiles.push({
"Container": "mp3",
"Type": "Audio",
Expand All @@ -398,30 +397,6 @@ function getDeviceProfile() as object
"MaxAudioChannels": maxAudioChannels
})

' setup container arrays
tsArray = {
"Container": "ts",
"Context": "Streaming",
"Protocol": "hls",
"Type": "Video",
"AudioCodec": tsAudioCodecs,
"VideoCodec": tsVideoCodecs,
"MaxAudioChannels": maxAudioChannels,
"MinSegments": 1,
"BreakOnNonKeyFrames": false
}
mp4Array = {
"Container": "mp4",
"Context": "Streaming",
"Protocol": "hls",
"Type": "Video",
"AudioCodec": mp4AudioCodecs,
"VideoCodec": mp4VideoCodecs,
"MaxAudioChannels": maxAudioChannels,
"MinSegments": 1,
"BreakOnNonKeyFrames": false
}

' set preferred audio codec for transcoding
if isValid(surroundSoundCodec)
' use preferred surround sound codec
Expand Down Expand Up @@ -475,6 +450,29 @@ function getDeviceProfile() as object
})
end if

tsArray = {
"Container": "ts",
"Context": "Streaming",
"Protocol": "hls",
"Type": "Video",
"AudioCodec": tsAudioCodecs,
"VideoCodec": tsVideoCodecs,
"MaxAudioChannels": maxAudioChannels,
"MinSegments": 1,
"BreakOnNonKeyFrames": false
}
mp4Array = {
"Container": "mp4",
"Context": "Streaming",
"Protocol": "hls",
"Type": "Video",
"AudioCodec": mp4AudioCodecs,
"VideoCodec": mp4VideoCodecs,
"MaxAudioChannels": maxAudioChannels,
"MinSegments": 1,
"BreakOnNonKeyFrames": false
}

' apply max res to transcoding profile
if maxResSetting <> "off"
tsArray.Conditions = [maxVideoHeightArray, maxVideoWidthArray]
Expand Down

0 comments on commit cb474dc

Please sign in to comment.