Skip to content

Commit

Permalink
convert aac and opus 5.1 to ac3 instead of eac3
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 2, 2023
1 parent 6a906cb commit 0de0071
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ItemGrid/LoadVideoContentTask.brs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,11 @@ sub addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external)
if not di.CanDecodeAudio({ Codec: selectedAudioStream.Codec, ChCnt: selectedAudioStream.Channels, PassThru: 1 }).Result
print "Users receiver can not decode the selected multichannel audio stream"
' check to see if the receiver can decode our preferred audio codec
preferredCodec = "eac3"
preferredCodec = "ac3"
if m.global.session.user.settings["playback.forceDTS"]
preferredCodec = "dts"
if selectedAudioStream.Container = "webm" or selectedAudioStream = "mkv"
preferredCodec = "dts"
end if
end if
if di.CanDecodeAudio({ Codec: preferredCodec, ChCnt: selectedAudioStream.Channels, PassThru: 1 }).Result
print "Attempting to transcode audio to our preferred multichannel codec"
Expand Down

0 comments on commit 0de0071

Please sign in to comment.