Android Devices

Discuss alternative media renderers (not PS3) supported by PS3 Media Server (e.g. Xbox 360, TVs &c.)

Android Devices

Postby DeFlanko » Tue Aug 02, 2011 5:20 am

Much like the iPhone and iPad thread, this one is specificly designed around not only Android Devices but for Android Media Renders.

First up which struck me as odd:

Code: Select all
http://www.appbrain.com/app/arkmc-free-media-server-player/com.arkudadigital.arkmc.light.gm

Code: Select all
http://www.arkudadigital.com/


[New I/O server worker #1-1] INFO 21:07:02.728 Media renderer was not recognized. HTTP User agent: Arkuda SDK/1.0 DLNADOC/1.50

Image

It could be the phone im using, but i couldn't get a video to play "out of the box". Which is an LG-P509.
Developed a few CONF files...
DeFlanko
 
Posts: 111
Joined: Sat Dec 05, 2009 6:49 pm
Location: San Pedro, CA

Re: Android Devices

Postby DeFlanko » Tue Aug 02, 2011 6:28 am

::UPnPlay::

[New I/O server worker #1-3] INFO 22:20:40.388 Media renderer was not recognized. HTTP User agent: Dalvik/1.2.0 (Linux; U; Android 2.2; LG-P509 Build/FRF91)
[New I/O server worker #1-2] INFO 22:23:24.224 Media renderer was not recognized. HTTP User agent: CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2)

Code: Select all
https://market.android.com/details?id=cx.hoohol.silanoid


Still couldn't get Video to work out of the box with this app.

Leading to believe that its the phone causing this issue.

The phones Video Specs are:
  • DivX/Xvid/MP4/H.264/H.263/WMV player
  • MP3/WAV/WMA/eAAC+ player
Developed a few CONF files...
DeFlanko
 
Posts: 111
Joined: Sat Dec 05, 2009 6:49 pm
Location: San Pedro, CA

Re: Android Devices

Postby DeFlanko » Tue Aug 02, 2011 6:48 am

My Android.conf - i don't think it helped... :D
Code: Select all
#----------------------------------------------------------------------------
# Android.conf
#
# PS3 Media Server profile for the AirPlayer app on iPad, iPhone and iPod.
# See PS3.conf for a description of all possible configuration options.
#
# This profile is still in an experimental stage.
# You are encouraged to experiment and report back the results on the forums
# at http://www.ps3mediaserver.org/.
#
# TODO:

#----------------------------------------------------------------------------
# General informations / detection

RendererName=Android
RendererIcon=android.png

# UserAgentSearch: regular expression to detect the connected renderer.
# AirPlayer has been observed using the following user agents:
#
# User-Agent: Arkuda SDK/1.0 DLNADOC/1.50
# User-Agent: Dalvik/1.2.0 (Linux; U; Android 2.2; LG-P509 Build/FRF91)
# User-Agent: CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2)
#
# Combined regular expression of working user agents
UserAgentSearch=Arkuda|Dalvik

# UserAgentAdditionalHeaders: additional HTTP header for better detection
#UserAgentAdditionalHeader=
#UserAgentAdditionalHeaderSearch=

#Basic capabilities
Video=true
Audio=true
Image=true

#----------------------------------------------------------------------------
# DLNA settings

# Use the DLNA feature seek by time and not by range
SeekByTime=false

# Serve different flavors of localization in the DLNA parameters (PAL/NTSC, NA/EU/JP)
# to allow every worldwide renderer to see the files.
#DLNALocalizationRequired=false

#----------------------------------------------------------------------------
# Transcoding/Muxing capabilities
#

# Transcode codecs for video and audio engines
# currently supported: MPEGAC3, MPEGTSAC3 or WMV for video, PCM or MP3 for audio
TranscodeVideo=WMV
TranscodeAudio=MP3

# Use default DVD buffer size: false = greater bitrate and faster encoding,
# but can generate incompatible videos, depends of your media renderer
DefaultVBVBufSize=true

#Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
WrapDTSIntoPCM=true

# Maximum bit rate supported by the media renderer (0=unlimited)
MaxVideoBitrateMbps=0

# Max Width and Height supported by the media renderer (0=unlimited)
# Max Resolutions:
MaxVideoWidth=0
MaxVideoHeight=0

# Does the media renderer supports only H264 L4.1 at most ?
H264Level41Limited=true

# Does music files need to be resampled at 44.1kHz?
TranscodeAudioTo441kHz=false

# Does the client need to receive transcoded video with minimal delay ?
# (Useful when the client has a small timeout delay)
TranscodeFastStart=true

# Size of the transcoded file (unknown length) sent to the renderer (could
# determine browsing failure/success) Possible values:
#
#           -1: Specific value working with the PS3, means perfect transcoding
#               and copying support (it is against the DLNA spec though)
#            0: size attribute is NOT sent to the renderer (default value if
#               this parameter isn't used)
# 100000000000: 100Gb, if you want to be sure that the media file is not cut
#               before the end
TranscodedVideoFileSize=0

#----------------------------------------------------------------------------
# Misc Images

# Rotate JPEG files based on EXIF information
AutoExifRotate=true

#----------------------------------------------------------------------------
# Use MediaInfo for faster and proper file, codec and mime type management
# system (false by default).

# FIXME: Remove these two lines when the supported definitions are functioning properly
# MediaInfo=false
# StreamExtensions=?????


# FIXME: Playback is terrible with the supported definitions below
MediaInfo=true

# The media parser and this configuration file will recognize the following
# formats and codecs (lower case only, regular expressions are supported).
# Chosen from the most common used and supported formats and codecs.
#
#        mpegps       (mpeg presentation stream, used in DVD Videos, VCDs, etc.)
#        mpegts     (mpeg transport stream, used in sat tv, blu rays, etc.)
#        wmv        (Windows Media Video, tag also used for asf files)
#        avi        (AVI container)
#        mp4        (ISOM/MPEG4 container, or MPEG4 codec)
#        mov        (Quicktime container, Apple)
#        flv        (Flash Video)
#        rm         (Real Media, RMVB)
#        mkv        (Matroska)
#        wav        (WAVE file)
#        wavpac     (WavPack)
#        lpcm       (Linear PCM)
#        aac        (Advanced Audio Codec)
#        ac3        (Audio Coding 3)
#        mp3        (Mpeg Audio Layer 3)
#        mpa        (Mpeg Audio)
#        ogg        (Ogg Vorbis)
#        wma        (Windows Media Audio)
#        dts        (Digital Theater Systems)
#        dtshd      (Digital Theater Systems)
#        truehd     (TrueHD)
#        eac3       (Extended AC3)
#        atrac      (Atrac)
#        flac       (Free Lossless Audio Codec)
#        ape        (Monkey's Audio)
#        ra         (Real Audio)
#        mpc        (MusePack)
#        aiff       (AIFF)
#        alac       (Apple Lossless)
#        dv         (Digital Video)
#        mpeg1      (Codec used in VCD)
#        mpeg2      (Codec used in DVD Videos and HDTV)
#        divx       (DivX Video)
#        h264       (H264)
#        mjpeg      (M-JPEG)
#        vc1        (VC-1)
#        jpg        (Jpeg)
#        png        (PNG)
#        gif        (GIF)
#        tiff       (TIFF)
#        bmp        (Bitmap)
#        und        (Undetermined, if the parser did not recognize one of above)
# Usage:
#    f: format, MANDATORY (the only conf for a 'eat everything' renderer would be f:.+)
#    m: mimetype, STRONGLY RECOMMENDED (if not declared, an estimated value is assigned)
#    v: video codec
#    a: audio codec
#    n: max nb of audio channels
#    s: max audio sample frequency in Hz
#    b: max audio bitrate in bps
#    w: max width in pixels
#    h: max height in pixels
#    other flags: right now, only qpel and gmc (see avi)
#
# In case of multiple matches, the first mime type of the list is the used one.
# Be careful with regexps such as .+ : You should not use these except when you
# are sure your renderer is quite versatile.
#
#
# gives:

# [Supported video formats]:
Supported = f:avi|divx   v:mp4|divx|mjpeg   n:2   a:mp3|lpcm|mpa|ac3   m:video/x-divx
#Supported = f:mov   m:video/quicktime
#Supported = f:mp4   v:mp4|h264   a:ac3|aac   n:2   m:video/mp4
#Supported = f:mpegps|mpegts|mkv   v:mpeg1|mpeg2|mp4|h264   n:2   a:ac3|lpcm|aac|mpa   m:video/mpeg
#Supported = f:ogg   v:ogg   a:mp3|lpcm|mpa|ac3   n:2   m:application/ogg
#Supported = f:rm   v:rm   a:ra   n:2   m:application/vnd.rn-realmedia
Supported = f:wmv   v:wmv|vc1   a:wma   n:2   m:video/x-ms-wmv

# [Supported audio formats]:
Supported = f:wav   a:dts|lpcm   n:2   s:48000   m:audio/wav
Supported = f:wav   n:2   s:48000   m:audio/wav
Supported = f:mp3   n:2   m:audio/mpeg
Supported = f:aac   n:2   a:(?!alac).+   m:audio/x-m4a
Supported = f:wma   n:2   m:audio/x-ms-wma
Supported = f:atrac   n:2   m:audio/x-oma

# [Supported image formats]
Supported = f:jpg   m:image/jpeg
Supported = f:png   m:image/png
Supported = f:gif   m:image/gif
Supported = f:tiff   m:image/tiff

# Use faster method to create DLNA tree with MediaInfo. Not supported by some renderers,
# false by default (upnp specification violation).
CreateDLNATreeFaster = true

#----------------------------------------------------------------------------
Developed a few CONF files...
DeFlanko
 
Posts: 111
Joined: Sat Dec 05, 2009 6:49 pm
Location: San Pedro, CA

Re: Android Devices

Postby SharkHunter » Wed Aug 10, 2011 7:31 pm

I finally got it! I could stream to my shiny new XOOM (but it takes some real tweaks). How to do it:

1) Get yourself a good player. Rockplayer and VitalPlayer (you'll need both read on).
2) Get a DLNA client
3) Remove the Android.conf,AirPlayer.conf and ipad.conf render files.

Now heres how it works for me. I use the (my own) client and browse the PMS. Then I start playing. Here I can select which player to use. Rockplayer can stream from PMS (but not if you need to transcode than it stutters) other players can't even do that. So Rockplayer is my no 1 choice if I don't need to transcode OR subtitles. If you're out of luck.

But the SharkHunter comes to the rescue. Some (my own again) clients can "download stream" which means that it places the file on the SDcard and then when the file is "big enough" it starts the player. Now Rockplayer is happy to stream this file but ONLY as long as the file was when RockPlayer started. Which if you don't want to wait for the full file is maybe a minute. Here Vitalplayer comes to the rescue and will be happy to continue to stream until the whole file is read.

I got into problems with the overlapping render conf file and stuff started only working 100% when I removed them (maybe I don't need to remove all 3 but hen agian why not).

So there you go Streamin to android from PMS! That's cool :)

Ps my SharkMote conf file should work for Rockplayer as well ds.
Code: Select all
# ps3mediaserver renderer profile for xbox media center
# Refer to PS3.conf for help

RendererName=SharkMote
#RendererIcon=C:\\Program Files (x86)\\PS3 Media Server\\renderers\\sharkmote_droid.png
#UserAgentSearch=(.*Android)
UserAgentSearch=SharkMote|Lavf
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=LPCM
#TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=false
MuxDTSToMpeg=true
WrapDTSIntoPCM=false
MuxLPCMToMpeg=true
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
StreamExtensions=dvr-ms,dvr,mkv,dv,ty,mov,ogm,hdmov,hdm,rmv,rmvb,rm,asf,evo,asx,flv,m2v,mpe,mod,tivo,ty,tmf,ts,tp,m2p,m4v,avi,wmv,wm,divx,div,flac,mlp,fla,wma,m4a,aac,dts,mka,ape,shn,mpc,ra,mp2,wv,oma,aa3,arw,cr2,crw,dng,raf,mrw,nef,pef,tif,tiff
TranscodeExtensions=
#StreamExtensions=
#Supported = f:mp4    v:mp4|h264   a:ac3|aac   m:video/mp4

SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Android Devices

Postby Raptor399 » Wed Aug 10, 2011 8:55 pm

SharkHunter wrote:3) Remove the Android.conf,AirPlayer.conf and ipad.conf render files.


I get the removal of "AirPlayer.conf", since its UserAgentSearch matches "Lavf", which your config also matches.
But the I don't get why removing "Android.conf" or "iPad-iPhone.conf" would help. They match different user agents and should not overlap with your conf.

By the way, AirPlayer.conf says:
Code: Select all
# User-Agent: Lavf52.54.0
UserAgentSearch=AirPlayer/|Lavf

In other words, the search string could be made more specific if that helps avoiding overlap, e.g. "Lavf52" or so.
AirPlayer is the most successful watching app on iPad/iPhone that I have encountered, so removing it is not my favorite option. I'd rather have it not interfere with other confs. ;-)

What is the User-Agent string you try to match in your conf?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Android Devices

Postby SharkHunter » Thu Aug 11, 2011 5:38 am

Raptor399 wrote:
SharkHunter wrote:3) Remove the Android.conf,AirPlayer.conf and ipad.conf render files.


I get the removal of "AirPlayer.conf", since its UserAgentSearch matches "Lavf", which your config also matches.
But the I don't get why removing "Android.conf" or "iPad-iPhone.conf" would help. They match different user agents and should not overlap with your conf.

By the way, AirPlayer.conf says:
Code: Select all
# User-Agent: Lavf52.54.0
UserAgentSearch=AirPlayer/|Lavf

In other words, the search string could be made more specific if that helps avoiding overlap, e.g. "Lavf52" or so.
AirPlayer is the most successful watching app on iPad/iPhone that I have encountered, so removing it is not my favorite option. I'd rather have it not interfere with other confs. ;-)

What is the User-Agent string you try to match in your conf?


I didn't remove it just put in an other dir. I know that I personally only has android devices so I don't need the fruit stuff :). This is just how it was for me. The Lavf comes from ffmpeg would a solution to all be to create a ffmpg.conf for all Lavf?
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Android Devices

Postby Raptor399 » Thu Aug 11, 2011 7:23 am

SharkHunter wrote:The Lavf comes from ffmpeg would a solution to all be to create a ffmpg.conf for all Lavf?


It may be handled by ffmpeg, but ffmpeg is not likely to be its origin.

Remove all .confs and try to play a movie. You will see info in the "Traces" tab like "Unknown User-Agent", followed by some string (for AirPlayer it would be "User-Agent: Lavf52.54.0"). There can be more than one of these strings, you will see more unknown devices in PMS if that is the case.

What are the full User-Agent strings in your case?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Android Devices

Postby SharkHunter » Thu Aug 11, 2011 7:38 am

It is rockplayer that uses lavf. It is probably lafv52.xxx But diffrent versions of rockplayer has diffrent xxxx (since it is diffrent ffmpeg builds). I'm likely to remove that lavf stuff anyway since streaming to rockplayer (which is the best in class) still sucks (if you add subtitles or stream from web it doesn't work) so I'm stuck with the download streaming method at which I use my own unique user-agent string.
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Android Devices

Postby RPK » Sat Aug 13, 2011 2:25 am

Easy out of the box free solution:

Download UPnPlay as the streaming client
Download arcMedia as the media renderer

Start UPnPlay on your phone. Start PMS on your computer.
PMS should find your Android device.

Navigate to your files on your phone. When the option appears after you press play, use arcMedia.

You are now streaming to your phone.
RPK
 
Posts: 1
Joined: Sat Aug 13, 2011 2:20 am

Re: Android Devices

Postby Raptor399 » Sat Aug 13, 2011 5:27 am

RPK wrote:Easy out of the box free solution:

Download UPnPlay as the streaming client
Download arcMedia as the media renderer

Start UPnPlay on your phone. Start PMS on your computer.
PMS should find your Android device.

Navigate to your files on your phone. When the option appears after you press play, use arcMedia.

You are now streaming to your phone.

First of all: IHNAD (I Have No Android Device). ;-)

This sounds brilliant!

Even in this scenario, there has to be some kind of User-Agent that we can detect. I would expect it to be something like "UPnPlay". If we know that, we can construct a "UPnPlay.conf" to set the transcoding defaults for such a setup.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Next

Return to Alternative Media Renderers

Who is online

Users browsing this forum: No registered users and 3 guests