mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
always transcode multichannel aac if surround sound is detected
This commit is contained in:
parent
f7487708e5
commit
c0f0a184b0
@ -81,6 +81,19 @@ function ItemPostPlaybackInfo(id as string, mediaSourceId = "" as string, audioT
|
||||
end if
|
||||
end if
|
||||
end for
|
||||
|
||||
' don't direct play multi-channel AAC
|
||||
if selectedAudioStream.Codec <> invalid and LCase(selectedAudioStream.Codec) = "aac"
|
||||
for each rule in deviceProfile.DirectPlayProfiles
|
||||
if rule.audioCodec <> invalid
|
||||
if rule.AudioCodec = "aac"
|
||||
rule.AudioCodec = ""
|
||||
else if rule.AudioCodec.Left(4) = "aac,"
|
||||
rule.AudioCodec = mid(rule.AudioCodec, 5)
|
||||
end if
|
||||
end if
|
||||
end for
|
||||
end if
|
||||
end if
|
||||
|
||||
end if
|
||||
|
@ -87,7 +87,7 @@ function GetDirectPlayProfiles() as object
|
||||
}
|
||||
' all possible codecs (besides those restricted by user settings)
|
||||
videoCodecs = ["h264", "mpeg4 avc", "vp8", "vp9", "h263", "mpeg1"]
|
||||
audioCodecs = ["mp3", "mp2", "pcm", "lpcm", "wav", "ac3", "ac4", "aiff", "wma", "flac", "alac", "aac", "opus", "dts", "wmapro", "vorbis", "eac3", "mpg123"]
|
||||
audioCodecs = ["aac", "mp3", "mp2", "pcm", "lpcm", "wav", "ac3", "ac4", "aiff", "wma", "flac", "alac", "opus", "dts", "wmapro", "vorbis", "eac3", "mpg123"]
|
||||
|
||||
' check if hevc is disabled
|
||||
if globalUserSettings["playback.compatibility.disablehevc"] = false
|
||||
|
Loading…
Reference in New Issue
Block a user