Page 1 of 2

Profile for Support of Android Devices

PostPosted: Fri Jun 29, 2012 4:36 am
by jhb50
Android Devices are capable of being DLNA Renderers communicating directly via DLNA with Serviio to access its files and streams.

This only requires the installation of UPnP software on the Android device and the addition of a device profile to the Serviio profiles.xml file.

While there are other possible combinations, the BubbleUPnP Renderer, combined with the MX Video Player, and the attached "BubbleUPnP" profile play all variations of file containers and codecs without transcoding on my Nextbook 7 Android 2.3 ARMv7 cpu device, plus all my online streams with limited transcoding.

It would be of value to know if this profile supports other Android and CPU versions with simlar results.

EDIT:
Confirmed below to also work with:

Galaxy tab 10.1
HTC EVO 3D
eeepad Transformer TF300 Tegra3

Re: Android Support

PostPosted: Tue Jul 03, 2012 8:30 pm
by khurram23
Testing with my tablet now... Galaxy tab 10.1

Re: Android Support

PostPosted: Fri Jul 06, 2012 9:25 pm
by molitar
Thanks for this information.. I have an HTC EVO 3D and it is working great.

Re: Android Support

PostPosted: Mon Jul 09, 2012 12:02 pm
by scapman
Great post!

I have tried it out with my Asus eeepad Transformer TF300 Tegra3.

With the combination of BubbleUPnP Renderer and MX Video Player I could not listen to DTS or AC3 sound.
Could see al formats but wouldn't listen.

I solved using DicePlayer instead.

Everything now works perfectly and smoothly...

Thanks again!!

Re: Android Support

PostPosted: Mon Jul 09, 2012 12:53 pm
by loop
scapman wrote:Great post!

I have tried it out with my Asus eeepad Transformer TF300 Tegra3.

With the combination of BubbleUPnP Renderer and MX Video Player I could not listen to DTS or AC3 sound.
Could see al formats but wouldn't listen.

I solved using DicePlayer instead.

Everything now works perfectly and smoothly...

Thanks again!!


Not sure if this could be the cause, but MX Player recently removed support for DTS sound

Re: Android Support

PostPosted: Wed Jul 11, 2012 3:49 am
by khurram23
I've had issues with MX player. DicePlayer seems to work better, specially with hardware decoding option.

I have a Samsung Galaxy Tab 10.1.

Online/Live streams don't seem to work well. They load just fine when using VLC/XBMC on computer, but don't work on tablet.

Re: Android Support

PostPosted: Wed Jul 11, 2012 1:50 pm
by jhb50
Online Streams work fine for me using MX player. I have found that it takes MXPlayer up to a minute to decide if it can use hw decoding on my 7" Nextbook but if I set the default to sw decode it plays within seconds.

Re: Profile for Support of Android Devices

PostPosted: Mon Jul 23, 2012 5:14 pm
by jhb50
Updated Title and added list of Devices Confirmed to work.

Re: Profile for Support of Android Devices

PostPosted: Sun Jul 29, 2012 6:28 am
by lollylegs
Just got it working on a Galaxy Tab II 10.1.

Had to use it with Dice Player, default video player & MX Player would not play the streams from Serviio over WiFi. They would play fine if I downloaded the file to the device, but not over WiFi - would get stuttering video (ie play 1sec pause for 5sec, etc). But with Dice Player it works perfectly.

Re: Profile for Support of Android Devices

PostPosted: Sun Jul 29, 2012 4:03 pm
by jhb50
Would you try downloading and playing this video?

http://www.filedropper.com/testavcac312sec

Re: Profile for Support of Android Devices

PostPosted: Tue Oct 02, 2012 10:57 am
by Bravia-Ex7
Hi guys,

I have a Galaxy Player 5.0 (YP-G70C/NAW) and I have been trying to get it to play my video files using Serviio but it has problems playing multi-track audio (AAC/AC-3/DTS 5.1 channels). I have been using the aVia Media Player with the MX PLayer (I'll try the DicePlayer next) but they have not done that great of a job. So I was wondering if this profile is able to turn AAC/DTS/AC-3 5.1 audio into stereo and 1080p video down to 720p so that my player can play them? If not how can I modify it to make it do that? :?

My specs are similar to a Galaxy S I or II:

Galaxy Player Specs:
Android OS: Android 2.3.5 Gingerbread
Display Resolution: WVGA (800 x 480)
Video: AVI, MP4, 3GP, WMV, ASF, MKV, FLV
Audio: MP3, WMA, Ogg, FLAC, AAC, WAV
Pictures: JPEG, GIF, BMP, PNG
Network: Wi-Fi 802.11b/g/n - DLNA/AllShare

Re: Profile for Support of Android Devices

PostPosted: Tue Oct 02, 2012 2:32 pm
by jhb50
The formats supported by Android are documented in http://developer.android.com/guide/appendix/media-formats.html.

Currently the profile plays all files natively, but you can add a section immediately after <Transcoding> to invoke transcoding.

For audio you can transcode to mp3, and for the video you can transcode to mpeg2video and limit the resolution using the maxHeight option. In your case to your screen size of 480. I also limit the bitrate to ensure it does not overload the device.

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video"  maxHeight="480" maxVBitrate="3000" targetACodec="mp3" forceStereo="true" aSamplerate="44100" >
   <Matches container="*" />
</Video>


While Android support does not include mpeg2video, it is needed for DLNA playback. The MX player (and most others) does support it with SW decoding and it plays great.

Re: Profile for Support of Android Devices

PostPosted: Fri Oct 05, 2012 12:48 pm
by chronosghost
jhb50 wrote:While Android support does not include mpeg2video, it is needed for DLNA playback. The MX player (and most others) does support it with SW decoding and it plays great.
It's not correct, others media server transcoders how mint media server o plex use h264 codec in mpegts and tablets with android and tegra 2 can play movies with hw decoding. it's needed for DLNA playback in serviio.

With that, serviio is a great server transcoder. And excuse my english please.

Re: Profile for Support of Android Devices

PostPosted: Fri Oct 05, 2012 5:38 pm
by jhb50
chronosghost wrote:
jhb50 wrote:While Android support does not include mpeg2video, it is needed for DLNA playback. The MX player (and most others) does support it with SW decoding and it plays great.
It's not correct, others media server transcoders how mint media server o plex use h264 codec in mpegts and tablets with android and tegra 2 can play movies with hw decoding. it's needed for DLNA playback in serviio.

You misunderstood my post. In the context of wanting to downscale the resolution, transcoding to mpeg2video is necessary, and requires software support from a player to do so via DLNA in the absence of Android support. As the Android documentation that I cited says, and you have repeated,it is capable of playing native h264 if you do not want to change the attributes.

Re: Profile for Support of Android Devices

PostPosted: Tue Oct 09, 2012 6:37 am
by Bravia-Ex7
Sorry for the late reply, I'll be testing your suggestions and modifying as needed. Thanks... ;)

Re: Profile for Support of Android Devices

PostPosted: Wed Mar 06, 2013 6:15 pm
by Swehawk
@jhb50:I tried to add your Android profile + the transcoding options you suggested (cause I have a cheap Rockchip single core tablet), but Serviio won't even run! I can't find anything wrong in the profiles.xml though. Strange! Any suggestions?

Re: Profile for Support of Android Devices

PostPosted: Wed Mar 06, 2013 7:01 pm
by jvingaard
Swehawk wrote:@jhb50:I tried to add your Android profile + the transcoding options you suggested (cause I have a cheap Rockchip single core tablet), but Serviio won't even run! I can't find anything wrong in the profiles.xml though. Strange! Any suggestions?


Found an error in the profile that cause Serviio not to start.

<SubtitlesMimeType>text/srt</SubtitlesMimeType>

replace with:

<Subtitles>
<SoftSubs mime-type="text/srt" />
</Subtitles>

Re: Profile for Support of Android Devices

PostPosted: Wed Mar 06, 2013 8:52 pm
by jhb50
the subtitle lines in profiles were changed in serviio 1.2

Re: Profile for Support of Android Devices

PostPosted: Fri Mar 08, 2013 6:00 pm
by Swehawk
Works now :) Just have to find the optimal bitrate setting for my tablet.

Thanks guys!

Edit: Found it! MaxVbitrate=2000 + maxHeight=480 works lika a charm on my low spec 480x800 tablet :)
Serviio+Android+BubbleUpnp+MXPlayer(H/W-decode setting) - what a great combo....

Re: Profile for Support of Android Devices

PostPosted: Sat Mar 23, 2013 12:56 pm
by chrismallia
jhb50 wrote:Android Devices are capable of being DLNA Renderers communicating directly via DLNA with Serviio to access its files and streams.

This only requires the installation of UPnP software on the Android device and the addition of a device profile to the Serviio profiles.xml file.

While there are other possible combinations, the BubbleUPnP Renderer, combined with the MX Video Player, and the attached "BubbleUPnP" profile play all variations of file containers and codecs without transcoding on my Nextbook 7 Android 2.3 ARMv7 cpu device, plus all my online streams with limited transcoding.

It would be of value to know if this profile supports other Android and CPU versions with simlar results.

EDIT:
Confirmed below to also work with:

Galaxy tab 10.1
HTC EVO 3D
eeepad Transformer TF300 Tegra3

I have a samsung galaxy i9001 s plus, I used this profile with bubblupnp and mx player, but when I played mkv with dts still I did not get Audio , I am using serviio 1.2. Thanks for any help or info

<Profile id="Android" name="BubbleUPnP" extendsProfileId="1" >
<Detection>
<HttpHeaders>
<X-AV-Client-Info>BubbleUPnP?.*</X-AV-Client-Info>
</HttpHeaders>
</Detection>

<Transcoding>
<Audio targetContainer="mp3">
<Matches container="mp4" />
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="lpcm" />
<Matches container="adts" />
<Matches container="asf" />
</Audio>
</Transcoding>

<OnlineTranscoding>
<!-- NOTE: Other rules are inherited from profile 1 -->
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video" maxVBitrate="4000">
<Matches container="flv" vCodec="vp6" />
<Matches container="asf"/> <!-- to support mms:// streams -->
</Video>
<Video targetContainer="mpegts" targetACodec="ac3" >
<Matches container="flv"/>
<Matches container="mp4"/>
</Video>
</OnlineTranscoding>

<Subtitles>
<SoftSubs mime-type="text/srt" />
</Subtitles>
</Profile>