Galaxy S5 Mini
-
- Posts: 10
- Joined: Wed Sep 03, 2014 10:23 pm
Galaxy S5 Mini
Hi,
I'm trying to get a renderer to work nicely with My Galaxy S5 Mini.
I've started off with the AndroidChromecast.conf as a base but seem to be having issues with content containing an AC3 (maybe DTS as well) audio track that has to be transcoded.
From the conf file I can see the CustomFFmpegOptions are forcing a re-code to MP3, however for some reason the hardware decoder on my phone does not like the MP3 output from FFmpeg, it stutters and only gives short bursts of sound, if I change to using a software decoder on the phone the content plays fine.
The main questions I have are, looking at the log files I see that the CustomFFmpegOptions are just appended to the end of the FFmpeg run options, is this right ? Or should they be run as a totally separate set of options. Appending to the end sets several options twice with different variables for example “-c:a”.......
Are there any known issues with FFmpeg and MP3 that would cause problems with the hardware decoder on my phone ?
To solve my issue I was going to remove “-c:a libmp3lame -ac 2” from the CustomFFmpegOptions in the hope it reverts back to re-coding to AAC but will still handle subtitles OK, any comments on that ?
Any feedback welcome.....
I'm trying to get a renderer to work nicely with My Galaxy S5 Mini.
I've started off with the AndroidChromecast.conf as a base but seem to be having issues with content containing an AC3 (maybe DTS as well) audio track that has to be transcoded.
From the conf file I can see the CustomFFmpegOptions are forcing a re-code to MP3, however for some reason the hardware decoder on my phone does not like the MP3 output from FFmpeg, it stutters and only gives short bursts of sound, if I change to using a software decoder on the phone the content plays fine.
The main questions I have are, looking at the log files I see that the CustomFFmpegOptions are just appended to the end of the FFmpeg run options, is this right ? Or should they be run as a totally separate set of options. Appending to the end sets several options twice with different variables for example “-c:a”.......
Are there any known issues with FFmpeg and MP3 that would cause problems with the hardware decoder on my phone ?
To solve my issue I was going to remove “-c:a libmp3lame -ac 2” from the CustomFFmpegOptions in the hope it reverts back to re-coding to AAC but will still handle subtitles OK, any comments on that ?
Any feedback welcome.....
- Attachments
-
- ums_dbg.zip
- (25.69 KiB) Downloaded 780 times
-
- Posts: 10
- Joined: Wed Sep 03, 2014 10:23 pm
Re: Galaxy S5 Mini
Hi,
I know its bad form to reply to your own post but I've been playing and made some progress...
I've created a new .conf...
But for it to work I have to have the option "CustomFFmpegOptions = -f matroska" set, without it the buffer fills to about 12Mb and then goes crazy and the file wont play. I've attached a set of debug files when it does this. (I'm trying to play an MKV file with AVC video and AC3 audio)
Also I cant get "Seek" to work when transcoding (Playing MKV files) is there anything I can do to get this working, is it tied to the CustomFFmpegOptions = -f matroska command ?
Cheers guys,
I know its bad form to reply to your own post but I've been playing and made some progress...
I've created a new .conf...
Code: Select all
#----------------------------------------------------------------------------
# Profile for Newer Samsung Mobile Series - Galaxy S5.
# See PS3.conf for a description of all possible configuration options.
# More Agent Searches could be used;
#
#
RendererName=Samsung Mobile Newer Devices
RendererIcon=samsungmobile.png
#
UserAgentSearch=SM-G800F|SM-G900F
#
Video=true
Audio=true
Image=true
#
#SeekByTime=true
#
MaxVideoBitrateMbps=20
MaxVideoWidth=1920
MaxVideoHeight=1080
#
DisableMencoderNoskip = true
#
MimeTypesChanges = video/mpeg=video/mp4
TranscodeVideo = MPEGTS-H264-AAC
TranscodeAudio = MP3
#TranscodeFastStart = true
#TranscodedVideoFileSize = 4000000000
#
MediaInfo = true
#
# Supported video formats:
Supported = f:avi|divx v:mp4|divx|mjpeg a:mp3 m:video/x-divx gmc:0
Supported = f:mp4 v:mp4|h264 a:aac|mp3 m:video/mp4 n:2
Supported = f:wmv v:wmv|vc1 a:wma m:video/x-ms-wmv n:2
#
# Supported audio formats:
Supported = f:wav n:2 s:48000 m:audio/wav
Supported = f:mp3 n:2 m:audio/mpeg
Supported = f:aac a:(?!alac).+ n:2 m:audio/x-m4a
Supported = f:wma n:2 m:audio/x-ms-wma
#
# 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
#
#CustomMencoderOptions = -channels 2 -lavcopts vcodec=mpeg4:acodec=mp2:abitrate=192
#CustomMencoderQualitySettings = keyint=0:vqscale=5:vqmin=2
#CustomFFmpegOptions = -ac 2 -c:a mp2 -ab 192k -c:v mpeg4
#
#CustomFFmpegOptions = -async 1 -fflags +genpts -b:v 35000k -bufsize 35000k -f matroska
#CustomFFmpegOptions = -f matroska
Also I cant get "Seek" to work when transcoding (Playing MKV files) is there anything I can do to get this working, is it tied to the CustomFFmpegOptions = -f matroska command ?
Cheers guys,
- Attachments
-
- ums_dbg.zip
- (20.88 KiB) Downloaded 661 times
Re: Galaxy S5 Mini
You can try either "SeekByTime" = true or "SeekByTime = exclusive" to see if that fixes seeking 
Please let me know what you find, and it will be in the next release

Please let me know what you find, and it will be in the next release
-
- Posts: 10
- Joined: Wed Sep 03, 2014 10:23 pm
Re: Galaxy S5 Mini
Hiya,
OK cool will have a play when I get back home and will post the final version of my file here....
Would it be worth my getting 5 installed and doing the Biz there as well ?
OK cool will have a play when I get back home and will post the final version of my file here....
Would it be worth my getting 5 installed and doing the Biz there as well ?
-
- Posts: 10
- Joined: Wed Sep 03, 2014 10:23 pm
Re: Galaxy S5 Mini
Hi,
Will have a play soon, soooo many projects sooo little time, especially when the little lady want to catch up on all her US series
I think there is an incompatibility between the MP3 output the UMS provides when transcoding, and the firmware of my S5 Mini, if using hardware audio decoding the sound is VERY broken, switch to software its fine so I think I'll change the output to AAC instead... Streamed MP3's play fine though although I'm not sure if my player uses HW or SW so could be a red herring....
I'll make the mod do that check with 5 and get back....
Will have a play soon, soooo many projects sooo little time, especially when the little lady want to catch up on all her US series

I think there is an incompatibility between the MP3 output the UMS provides when transcoding, and the firmware of my S5 Mini, if using hardware audio decoding the sound is VERY broken, switch to software its fine so I think I'll change the output to AAC instead... Streamed MP3's play fine though although I'm not sure if my player uses HW or SW so could be a red herring....
I'll make the mod do that check with 5 and get back....
-
- Posts: 10
- Joined: Wed Sep 03, 2014 10:23 pm
Re: Galaxy S5 Mini
Hi,
As promised a final(ish) of my .conf file for newer Samsung phones, specifically the S5 & S5 Mini...
You may have sound issues with AVI's that have a MP3 soundtrack, Hardware audio decoding on my phone seems cause this, selecting software will fix it or you can swap the avi lines in the Video section of the .conf file....
I've tried to select formats that will decode in Hardware to maximize battery life...
Not too sure about Subs, I've not tried them ...
I'm sure this is not perfect, if improvements can be made please post here so we can all benefit
As promised a final(ish) of my .conf file for newer Samsung phones, specifically the S5 & S5 Mini...
You may have sound issues with AVI's that have a MP3 soundtrack, Hardware audio decoding on my phone seems cause this, selecting software will fix it or you can swap the avi lines in the Video section of the .conf file....
I've tried to select formats that will decode in Hardware to maximize battery life...
Not too sure about Subs, I've not tried them ...
I'm sure this is not perfect, if improvements can be made please post here so we can all benefit

Code: Select all
#----------------------------------------------------------------------------
# Profile for Newer Samsung Mobile Series - Galaxy S5.
# See Default.conf for a description of all possible configuration options.
# Will only detect Samsung S5 & S5 Mini on O2 UK as is, feel free to add
# your own....
#
# Version 1.0, FlyMcDoogal, 13/11/2014
#
RendererName=Samsung Mobile Newer Devices
RendererIcon=samsungmobile.png
#
UserAgentSearch=SM-G800F|SM-G900F
#
Video=true
Audio=true
Image=true
#
SeekByTime=false
#
MaxVideoBitrateMbps=22
MaxVideoWidth=1920
MaxVideoHeight=1080
#
DisableMencoderNoskip = true
#
MimeTypesChanges = video/mpeg=video/mp4
TranscodeVideo = MPEGTS-H264-AAC
TranscodeAudio = MP3
TranscodedVideoFileSize = -1
TranscodeFastStart = true
#
MediaInfo = true
#
#====================================VIDEO======================================
Supported = f:avi|divx v:mp4|divx a:mp3 m:video/x-divx gmc:0 n:2
#Supported = f:avi|divx v:mp4|divx a:aac m:video/x-divx gmc:0 n:2
Supported = f:mp4 v:mp4|h264 a:aac|mp3 m:video/mp4 n:2
Supported = f:mkv v:mp4|h264 a:aac m:video/x-matroska n:2
Supported = f:wmv v:wmv|vc1 a:wma m:video/x-ms-wmv n:2
#
#====================================AUDIO======================================
Supported = f:wav n:2 s:48000 m:audio/wav
Supported = f:mp3 n:2 m:audio/mpeg
Supported = f:aac a:(?!alac).+ n:2 m:audio/x-m4a
Supported = f:wma n:2 m:audio/x-ms-wma
Supported = f:flac n:2 m:audio/flac
Supported = f:ogg n:2 m:audio/ogg
#
#====================================Image======================================
Supported = f:jpg m:image/jpeg
Supported = f:png m:image/png
Supported = f:gif m:image/gif
Supported = f:tiff m:image/tiff
#
CustomFFmpegOptions = -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k -f matroska
Re: Galaxy S5 Mini
Thanks for the updates, I've added them to the upcoming version 
