Streaming to Android Phone Seizes

Need help? Post your questions here.

Moderator: moderators

Re: Streaming to Android Phone Seizes

Postby GJ51 » Mon Mar 12, 2012 8:21 pm

That was the final puzzle piece! Embarrassed I didn't think of it myself. :oops:

Final setup:

Subsonic version 4.6

rename ffmepg.exe from version 4.4 to Audioffmpeg.exe for transcoding mp3 to ogg for Android.

Download latest ffmpeg static build from http://ffmpeg.zeranoe.com/builds/ (for Windows) and rename to Videoffmpeg.exe for use with video playback. The later builds seem to do a much better job of utilizing multi-core CPU's and preventing buffering during playback.

To use ogg, create a seperate transcode mp3 > ogg:

Audioffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 5 -ac 2 -map_meta_data 0:0 -

as explained above change q setting to change quality and bandwidth.

UNCHECK "Enable this transcoding for all existing and new players." BEFORE you save it. Then go to the player definition for any Android players and add the transcode in the player settings.

Finally! The best of all worlds.


Thanks Glenn.
Last edited by GJ51 on Tue Mar 13, 2012 3:47 pm, edited 1 time in total.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Streaming to Android Phone Seizes

Postby species8472jj » Tue Mar 13, 2012 2:41 am

Thanks for the suggestion.

I was working on getting 4.4 installed, and I then saw your post about 4.6

I'm going to try this out to see how it works.

Thanks!
species8472jj
 
Posts: 20
Joined: Thu Sep 29, 2011 8:24 pm
Location: Chicago Area

Re: Streaming to Android Phone Seizes

Postby bushman4 » Tue Mar 13, 2012 12:11 pm

I'm going to bet that your ogg transcode line is this:

Code: Select all
Audioffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 5 -ac 2 -map_meta_data 0:0 -


not this:

Code: Select all
ffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 5 -ac 2 -map_meta_data 0:0 -


Right?

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Streaming to Android Phone Seizes

Postby GJ51 » Tue Mar 13, 2012 3:52 pm

bushman4 wrote:I'm going to bet that your ogg transcode line is this:

Code: Select all
Audioffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 5 -ac 2 -map_meta_data 0:0 -


not this:

Code: Select all
ffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 5 -ac 2 -map_meta_data 0:0 -


Right?

Glenn



Right again Glenn. I edited the post to reflect the correct entry.

I actually used Videoffmpeg for the video line so I could also leave the original distribution ffmpeg available for comparison tests. It seems the latest distribution does a better job of CPU utilization, but doesn't allow seeking or time indexing within the videos. The distribution ffmpeg also doesn't play some of my avi files. There are trade offs with each version of ffmpeg.

EDIT: One caveat - Ver, 4.6 mishandles the track length when transcoding to ogg, so I'll be using the same stategy of using multiple versions of ffmpeg but I'll be dropping back to ver. 4.5 for now.

Let's hope all these issues get resolved in ver 4.7 :)
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Streaming to Android Phone Seizes

Postby species8472jj » Wed Mar 14, 2012 2:43 am

I just finished re-installing SS 4.6 as well as doing the rest of your suggestions.

What seems to be happening is a song will start up, and will just come to an abrupt stop. It is as if it decides to stop transcoding and/or downloading in the middle of the song, because it just stops.

I tried with various songs and I get the same result.

Is there somthing that I could do to fix this?

Thanks!
species8472jj
 
Posts: 20
Joined: Thu Sep 29, 2011 8:24 pm
Location: Chicago Area

Re: Streaming to Android Phone Seizes

Postby GJ51 » Wed Mar 14, 2012 4:19 am

I've run into similar issues with version 4.6. I remember Sindre mentioning that there was a change in the way ver. 4.6 estimated track length that may adversely affect playback over Android and transcoding.

I think the best options for now are either version 4.4, or ver 4.5 but use the ffmpeg from version 4.4 if you want to transcode mp3 to ogg.

I'm going back to version 4.5 with the 4.4 ffmpeg for mp3 to ogg and then I'll try different ffmpeg versions to see what works best with video. I find that the latest ffmpeg builds distribute CPU load the best, but the don't always allow the time index information to be used. The ffmpeg's that come with SS 4.5 and 4.6 allow seeking in most videos, but don't always transcode all video files and tend to max out a single core and buffer the stream.

What we need is a version of SS and ffmpeg that can do it all.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Streaming to Android Phone Seizes

Postby GJ51 » Wed Mar 14, 2012 6:40 am

I've got everything working in 4.5 now except the video doesn't activate the indexing for most videos.

Send me a PM if you'd like a guest demo or have any questions.

All video and audio formats working including mp3 and flac > ogg for Android.

All I have left to do is update to the latest JW Player.

EDIT: All done. JW Player now ver 5.9

I renamed the ffmpeg from ver 4.4 of SS to Audioffmpeg.exe
The ffmpeg from the latest static build I named Videoffmpeg.exe
The ffmpeg from SS 4.5 was left unchanged

mp3 > ogg Audioffmpeg -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 2 -ac 2 -map_meta_data 0:0 -

flac > ogg ffmpeg -loglevel error -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 0 -ac 2 -map_metadata 0:0 -

Video - Videoffmpeg -ss %o -i %s -async 30 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -

Video transcoding is enabled for .wtv and .m2ts files.

The only issues I've found is a couple mp4's that don't want to play - probably bad settings when originally ripped.

The flac to ogg transcode is incredible reducing 1500kbps down to 58kbps and still sounds great. I can easily bump the aq 0 setting up to 2,3, or higher to get even better quality, but transcoding to ogg really makes Android over 3g usable even when you have really poor bandwidth. This is a real lifesaver when you're on the road.
Last edited by GJ51 on Fri Mar 16, 2012 5:49 pm, edited 2 times in total.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Streaming to Android Phone Seizes

Postby species8472jj » Thu Mar 15, 2012 11:30 pm

A big thanks for all the help.

My songs are able to keep up with the 3G speed, and the sound quality is great.

Thanks again!
species8472jj
 
Posts: 20
Joined: Thu Sep 29, 2011 8:24 pm
Location: Chicago Area

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 29 guests