#----------------------------------------------------------------------------
# Profile for BubbleUPnP Media Renderer combined with MX Player.
# See DefaultRenderer.conf for descriptions of all the available options.
#
# Version 1.3
# Author leroy
#
# Tested with:
#  Android 4.2.2 phone (Wolfgang AT-AS50SE)
#  Android 5.1.1 phone (Samsung Galaxy S6 Edge SM-G925F)
#
#  Software:
#  BubbleUPnP 2.5.1.2
#  MX Player 1.7.40
#  Custom codec 1.7.32
#  Universal Media Server 5.2.3
#
# Notes:
#  This config requires two apps installed on your Android device wich can be found in the "Play Store":
#  BubbleUPnP (Chromecast/DLNA)
#  MX Player
#
#  For DTS, Enhanced AC-3, and MLP audio support, install the custom codec for MX Player instead of
#  the one provided in the Play Store that can be downloaded from:
#  http://forum.xda-developers.com/apps/mx-player/mx-player-custom-codec-dts-support-t2156254
#
#  Uncheck "Mime-type check" in the BubbleUPnP app so that MX Player is used to play audio files
#  the BubbleUPnP audio player can't play. (Supported audio formats with given MIME type: video/blabla)
#  Go to: Settings >> UPnP Tweaks
#
# Issues:
#  Video transcoding by UMS to the MX Player fails. After some time the video playback freezes.
#  This however is not a big issue because the MX Player can handle almost every kind of media file,
#  so transcoding by the UMS is rarely needed.
#  However strange that DVD ISO files, transcode and play fine without issues.
#
#  The automatic launch of MX Player to play audio sometimes fails the first time. (a time out error is displayed)
#  A second try will almost always work.
#
# Changelog:
# 1.0 - Initial posted version
# 1.1 - Added more support to the Supported lines
#     - LoadingPriority solved the wrong recognizing of other Android renderer config files
#     - Removed default settings and removed some not needed
#     - The default transcode profile MPEGPS-MPEG2-AC3 is now used instead of MPEGTS-H264-AAC,
#       this works with MX Player for DVD/ISO files and VIDEO_TS folder transcoding
#     - Used MP3 audio transcode profile
#     - Added support for PGS subtitles
# 1.2 - Added support for audio formats: AIFF, ATRAC, Meridian Lossless Packing, Musepack, Shorten and WavPack
#     - Added support for FLAC audio format with more than 2 channels
#     - Added support for FLV video format with ADPCM and LPCM audio
#     - Added support for MKV video format with VP8 video
#     - Added support for Ogg audio format with FLAC audio
#     - Added support for Ogg audio format with Vorbis audio with more than 2 audio channels
#     - Changed MIME type application/x-mpegurl to video/blabla to prevent misnaming the format as MP4
#     - Changed MIME type for 3g2 and 3gp audio format with AAC audio to audio/aac (was audio/3gpp)
#     - Changed MIME type for 3g2 and 3gp audio format with AMR audio to audio/amr (was audio/3gpp)
#     - Changed MIME type for H.265 video format to video/h265 (was video/vnd.dlna.mpeg-tts)
#     - Changed MIME type for MPEG-2 video format to video/mpeg2 (was video/wtv)
#     - Changed MIME type for MP4 format with aac-he audio to audio/aac (was audio/x-m4a)
#     - Support for ALAC audio with MP4 format limited to 705000 bit/s and 44100 audio sample frequency
#     - Removed support for AAC audio codec with MP4 video format (these files get AAC format in UMS code)
#     - Removed support for HE-AAC audio codec with AAC audio format (these files get MP4 format in UMS code)
#     - Removed support for MPEG-1 video codec with MKV video format (no test file)
# 1.3 - Added SUBRIP as a supported internal subtitle format
#     - Added support for the audio formats: AC3, AMR and TTA (True Audio)
#     - Added support for alac and mpa audio in mkv audio format
#     - Added support for Opus audio in Ogg audio format
#     - Changed MIME type for 3G2/3GP audio format to audio/mp4 (audio/aac is not supported with my older v4.0.4 android phone)
#     - Changed MIME type for AAC audio format to audio/mp4 (audio/aac is not supported with my older v4.0.4 android phone)
#     - Changed MIME type for AIFF audio format to audio/L16 (now these files be played with the BubbleUPnP audio player)
#     - Changed MIME type for MP4 audio format with aac-he audio to: audio/mp4 (audio/aac is not supported with my older v4.0.4 android phone)
#     - Improved support for WAV audio

RendererName = BubbleUPnP
RendererIcon = BubbleUPnP-MXPlayer.png

# ============================================================================
# BubbleUPnP Media Renderer has sent the following string(s):
#
# User-Agent: Android/4.2.2 UPnP/1.0 BubbleUPnP/2.3.6
# User-Agent: BubbleUPnP UPnP/1.1
#
# UPnP details:
# friendlyName=BubbleUPnP (AT-AS50SE)
# manufacturer=Bubblesoft
# modelName=BubbleUPnP Media Renderer
# modelDescription=BubbleUPnP Media Renderer
# manufacturerURL=http://forum.xda-developers.com/showthread.php?t=1118891
# ============================================================================
#
UserAgentSearch = BubbleUPnP
UpnpDetailsSearch = BubbleUPnP Media Renderer

# Loading priority is set to 2 to give priority to this configuration and
# override the "Google-Android.conf" and the ""Google-Android-Chromecast.conf"
LoadingPriority = 2

H264LevelLimit = 5.1
MaxVolume = 13
TranscodeFastStart = true

# Supported video formats:
Supported = f:3g2|3gp   v:h263|h264|mp4                              a:aac-lc|he-aac|amr|mp3                       m:video/3gpp
Supported = f:avi|divx  v:cvid|divx|dv|h263|h264|mjpeg|mp4|vc1|wmv   a:aac-lc|adpcm|ac3|lpcm|mp3|mpa|wma           m:video/avi
Supported = f:dv        v:dv                                         a:lpcm                                        m:video/mpeg
Supported = f:flv       v:h264|sor|vp6                               a:aac-lc|he-aac|adpcm|mp3|lpcm                m:video/x-flv
Supported = f:h265      v:h265                                       a:aac-lc|he-aac                               m:video/h265
Supported = f:mkv       v:divx|h264|h265|mp4|mpeg2|vc1|vp8           a:aac-lc|he-aac|ac3|adpcm|dts|eac3|flac|lpcm|mp3|mpa|opus|tta|vorbis|wavpack|wma   m:video/x-matroska
Supported = f:mov       v:divx|h263|h264|jpg|mp4|sor                 a:aac-lc|he-aac|adpcm|amr|lpcm|mp3|mpa|qdmc   m:video/quicktime
Supported = f:mp4       v:divx|h264|jpg|mp4                          a:aac-lc|he-aac|ac3|amr|lpcm|mp3|mpa          m:video/mp4
Supported = f:mpeg2     v:mpeg2                                                                                    m:video/mpeg2
Supported = f:mpegps    v:mpeg1|mpeg2|vc1                            a:ac3|dts|eac3|lpcm|mp3|mpa                   m:video/mpeg
Supported = f:mpegts    v:h264|h265|mpeg2|vc1                        a:aac-lc|he-aac|ac3|eac3|dts|lpcm|mpa         m:video/vnd.dlna.mpeg-tts
Supported = f:ogg       v:divx|theora                                a:vorbis                                      m:video/ogg
Supported = f:rm        v:rm                                         a:aac-lc|he-aac|ac3|cook|ralf                 m:application/vnd.rn-realmedia-vbr
Supported = f:webm      v:vp8|vp9                                    a:vorbis                                      m:video/webm
Supported = f:wmv       v:mp4|mpeg2|vc1|wmv                          a:adpcm|lpcm|mpa|wma|wma10|wmalossless|wmapro m:video/x-ms-wmv
Supported = f:wtv                                                                                                  m:video/wtv

# Supported audio formats:
Supported = f:adts      a:aac-lc|he-aac                     m:audio/aac
Supported = f:aiff                          s:6000     n:1   m:audio/L16;rate=6000;channels=1
Supported = f:aiff                          s:6000     n:2   m:audio/L16;rate=6000;channels=2
Supported = f:aiff                          s:8000     n:1   m:audio/L16;rate=8000;channels=1
Supported = f:aiff                          s:8000     n:2   m:audio/L16;rate=8000;channels=2
Supported = f:aiff                          s:11025    n:1   m:audio/L16;rate=11025;channels=1
Supported = f:aiff                          s:11025    n:2   m:audio/L16;rate=11025;channels=2
Supported = f:aiff                          s:16000    n:1   m:audio/L16;rate=16000;channels=1
Supported = f:aiff                          s:16000    n:2   m:audio/L16;rate=16000;channels=2
Supported = f:aiff                          s:22050    n:1   m:audio/L16;rate=22050;channels=1
Supported = f:aiff                          s:22050    n:2   m:audio/L16;rate=22050;channels=2
Supported = f:aiff                          s:24000    n:1   m:audio/L16;rate=24000;channels=1
Supported = f:aiff                          s:24000    n:2   m:audio/L16;rate=24000;channels=2
Supported = f:aiff                          s:32000    n:1   m:audio/L16;rate=32000;channels=1
Supported = f:aiff                          s:32000    n:2   m:audio/L16;rate=32000;channels=2
Supported = f:aiff                          s:44100    n:1   m:audio/L16;rate=44100;channels=1
Supported = f:aiff                          s:44100    n:2   m:audio/L16;rate=44100;channels=2
Supported = f:aiff                          s:48000    n:1   m:audio/L16;rate=48000;channels=1
Supported = f:aiff                          s:48000    n:2   m:audio/L16;rate=48000;channels=2
Supported = f:aiff                          s:64000    n:1   m:audio/L16;rate=640060;channels=1
Supported = f:aiff                          s:64000    n:2   m:audio/L16;rate=64000;channels=2
Supported = f:aiff                          s:88200    n:1   m:audio/L16;rate=88200;channels=1
Supported = f:aiff                          s:88200    n:2   m:audio/L16;rate=88200;channels=2
Supported = f:aiff                          s:96000    n:1   m:audio/L16;rate=96000;channels=1
Supported = f:aiff                          s:96000    n:2   m:audio/L16;rate=96000;channels=2
Supported = f:aiff                          s:176400   n:1   m:audio/L16;rate=176400;channels=1
Supported = f:aiff                          s:176400   n:2   m:audio/L16;rate=176400;channels=2
Supported = f:aiff                          s:192000   n:1   m:audio/L16;rate=192000;channels=1
Supported = f:aiff                          s:192000   n:2   m:audio/L16;rate=192000;channels=2
Supported = f:amr       a:amr                                m:audio/3gpp
Supported = f:flac                                           m:audio/flac
Supported = f:lpcm                          s:192000   n:2   m:audio/L16
Supported = f:m4a|3ga   a:alac   b:705000   s:44100          m:audio/mp4
Supported = f:m4a|3ga   a:aac-lc|he-aac|amr                  m:audio/mp4
Supported = f:mp3|mp2|mpa                                    m:audio/mpeg
Supported = f:oga       a:vorbis                       n:2   m:audio/x-ogg
Supported = f:wav       a:adpcm|lpcm|mp3                     m:audio/wav

# Supported subtitles formats:
SupportedExternalSubtitlesFormats = ASS,MICRODVD,SAMI,SUBRIP,TEXT,WEBVTT
SupportedInternalSubtitlesFormats = ASS,DIVX,PGS,SUBRIP,TEXT,VOBSUB

# ============================================================================
# Sink BubbleUPnP Media Renderer:
#
# http-get:*:audio/wav:*,
# http-get:*:audio/wave:*,
# http-get:*:audio/x-wav:*,
# http-get:*:audio/mpeg:*,
# http-get:*:audio/x-mpeg:*,
# http-get:*:audio/mp1:*,
# http-get:*:audio/aac:*,
# http-get:*:audio/flac:*,
# http-get:*:audio/x-flac:*,
# http-get:*:audio/m4a:*,
# http-get:*:audio/mp4:*,
# http-get:*:audio/x-m4a:*,
# http-get:*:audio/vorbis:*,
# http-get:*:audio/ogg:*,
# http-get:*:audio/x-ogg:*,
# http-get:*:audio/x-scpls:*,
# http-get:*:audio/x-ms-wma:*,
# http-get:*:application/x-ms-wma:*,
# http-get:*:audio/wma:*,
# http-get:*:application/wma:*,
# http-get:*:audio/L16;rate=11025;channels=1:*,
# http-get:*:audio/L16;rate=22050;channels=1:*,
# http-get:*:audio/L16;rate=44100;channels=1:*,
# http-get:*:audio/L16;rate=48000;channels=1:*,
# http-get:*:audio/L16;rate=88200;channels=1:*,
# http-get:*:audio/L16;rate=96000;channels=1:*,
# http-get:*:audio/L16;rate=176400;channels=1:*,
# http-get:*:audio/L16;rate=192000;channels=1:*,
# http-get:*:audio/L16;rate=11025;channels=2:*,
# http-get:*:audio/L16;rate=44100;channels=2:*,
# http-get:*:audio/L16;rate=48000;channels=2:*,
# http-get:*:audio/L16;rate=88200;channels=2:*,
# http-get:*:audio/L16;rate=96000;channels=2:*,
# http-get:*:audio/L16;rate=176400;channels=2:*,
# http-get:*:audio/L16;rate=192000;channels=2:*,
# http-get:*:video/vnd.dlna.mpeg-tts:*,
# http-get:*:video/mpeg2:*,
# http-get:*:video/mpeg:*,
# http-get:*:application/x-mpegurl:*,
# http-get:*:application/vnd.apple.mpegurl:*,
# http-get:*:video/x-m4v:*,
# http-get:*:video/mp4v-es:*,
# http-get:*:video/mp4:*,
# http-get:*:video/mp2t:*,
# http-get:*:video/quicktime:*,
# http-get:*:video/x-ms-wmv:*,
# http-get:*:video/x-ms-asf:*,
# http-get:*:video/x-ms-video:*,
# http-get:*:video/divx:*,
# http-get:*:video/vnd.divx:*,
# http-get:*:video/x-divx:*,
# http-get:*:video/x-ms-avi:*,
# http-get:*:video/avi:*,
# http-get:*:video/x-msvideo:*,
# http-get:*:video/x-mkv:*,
# http-get:*:video/mkv:*,
# http-get:*:video/x-matroska:*,
# http-get:*:video/ogg:*,
# http-get:*:video/3gpp:*,
# http-get:*:video/webm:*,
# http-get:*:application/flv:*,
# http-get:*:video/x-flv:*,
# http-get:*:video/flv:*,
# http-get:*:video/wtv:*,
# http-get:*:application/vnd.rn-realmedia-vbr:*,
# http-get:*:video/vnd.rn-realvideo:*,
# http-get:*:application/vnd.rn-realmedia:*,
# http-get:*:image/mpo:*,
# http-get:*:image/bmp:*,
# http-get:*:image/gif:*,
# http-get:*:image/jpeg:*,
# http-get:*:image/png:*,
# http-get:*:image/jpg:*
