diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts index f8be95b3..0f8cbbc2 100644 --- a/locale/en_US/translations.ts +++ b/locale/en_US/translations.ts @@ -707,6 +707,7 @@ Next episode Next episode + Play Trailer Play Trailer @@ -820,5 +821,15 @@ Unable to find any albums or songs belonging to this artist Popup message when we find no audio data for an artist + + MPEG-4 Support + MPEG-4 Support + Settings Menu - Title for option + + + Support Direct Play of MPEG-4 content. This may need to be disabled for playback of DIVX encoded video files. + Support Direct Play of MPEG-4 content. This may need to be disabled for playback of DIVX encoded video files. + Settings Menu - Description for option + diff --git a/settings/settings.json b/settings/settings.json index 8a860c9b..83d63934 100644 --- a/settings/settings.json +++ b/settings/settings.json @@ -10,6 +10,13 @@ "type": "bool", "default": "false" }, + { + "title": "MPEG-4 Support", + "description": "Support Direct Play of MPEG-4 content. This may need to be disabled for playback of DIVX encoded video files.", + "settingName": "playback.mpeg4", + "type": "bool", + "default": "true" + }, { "title": "Attempt Direct Play (Profile Lvl)", "description": "Attempt Direct Play for H.264 media with unsupported profile levels (> 4.2) before falling back to transcoding if it fails.", diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.brs index 0f4002f7..0a1c03c7 100644 --- a/source/utils/deviceCapabilities.brs +++ b/source/utils/deviceCapabilities.brs @@ -177,7 +177,7 @@ end function function GetDirectPlayProfiles() as object - mp4Video = "h264,mpeg4" + mp4Video = "h264" mp4Audio = "mp3,pcm,lpcm,wav" mkvVideo = "h264,vp8" mkvAudio = "mp3,pcm,lpcm,wav" @@ -202,6 +202,10 @@ function GetDirectPlayProfiles() as object mkvVideo = mkvVideo + ",mpeg2video" end if + if get_user_setting("playback.mpeg4") = "true" + mp4Video = mp4Video + ",mpeg4" + end if + ' Check for supported Audio if di.CanDecodeAudio({ Codec: "ac3" }).result mkvAudio = mkvAudio + ",ac3"