Trouble with Android client + Ogg streaming

Need help? Post your questions here.

Moderator: moderators

Trouble with Android client + Ogg streaming

Postby crwl » Thu Jul 08, 2010 8:04 am

Hi,

I installed Subsonic a couple of days ago and have been using the Android client since. I had tweaked the transcoding settings a bit to output VBR MP3's, and everything worked well (except for some minor skips during playback when the Android client was still streaming files - these were all gone away when the download wad complete).

Today I upgraded the Android client to the newest version and also changed the transcoding settings to output Ogg Vorbis files. However, now the Android client refuses to play anything while it is still streaming, instead it throws "Prepare failed.: status:0x1 (IOException)" to the notification bar. But when the download is complete, files seem to play perfectly from the cache.

Does anybody have any idea what could be the problem?
crwl
 
Posts: 7
Joined: Thu Jul 08, 2010 7:54 am

Similar issue with non-transcoded m4a's

Postby jimmyjava » Thu Jul 08, 2010 2:56 pm

I've always had a similar issue with m4a's for a few months now. Basically if I stream m4as to Android, it begins downloading the first track, then the player starts, and then errors out with an IOException. The file remains undownloaded. However, the rest of the files continue to download normally, and will play, but only after they're done downloading.

Sindre, any chance for an m4a fix?
jimmyjava
 
Posts: 3
Joined: Thu Jun 03, 2010 4:04 pm

Postby sindre_mehus » Thu Jul 08, 2010 5:00 pm

I just started looking into this.

Streaming native ogg files worked fine. Haven't tried transcoded ogg yet, what transcoding configuration are you using?

Will also look into m4a.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby crwl » Thu Jul 08, 2010 5:40 pm

I don't have luck streaming native Ogg files either, the symptoms are exactly the same. I set up following transcoders:

mp3 to ogg:
first step: ffmpeg -i %s -f wav -
second step: oggenc -q3 -Q -

flac to ogg:
first step: oggenc -Q -q3 %s -o -

My phone's a HTC Desire running Android 2.1 if that matters.
crwl
 
Posts: 7
Joined: Thu Jul 08, 2010 7:54 am

Postby papatel » Fri Jul 09, 2010 12:14 am

I'm having a similar problem, but the latest subsonic fixed it mostly for me. I can stream ogg vorbis from my linux machine using simliar commands as you guys; however, there is still an issue. When a stream is interrupted (data disconnect, lose wifi...) the file truncates and fails to complete the download but no exception is thrown. It just continues to the next song as if nothing happens. Hopefully this is useful information.
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

Postby Big_D_271 » Sun Jul 11, 2010 12:19 am

I too have had trouble from day one getting either transcodes (MP3 > OGG) to stream properly, or native (OGG > OGG). ONly if the file is told to "save to phone" will it play properly. I would like to see better implementation of OGG as OGG has the ability to sound close to mp3@128kbps at only 64kbps which would allow more songs to cache on the phone, and be better on my 3G network.
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Fixed with Android 2.2?

Postby crwl » Tue Aug 03, 2010 4:19 am

Last Sunday the software of my Desire was upgrade to Android 2.2 (Froyo) and now this seems to work - Streamed Ogg files start to play almost instantly like they should and work without glitches even if they aren't in the cache already. Seems like something in Froyo fixed this, can anyone confirm?

After playing a streamed file, it still throws a following error the notification bar:

Error playing "track name". MediaPlayer error: -131 (0) (Exception).

But this seems to be just cosmetic, as everything still plays fine.
crwl
 
Posts: 7
Joined: Thu Jul 08, 2010 7:54 am

Postby lambda » Wed Sep 08, 2010 3:12 pm

Big_D_271 wrote:I too have had trouble from day one getting either transcodes (MP3 > OGG) to stream properly, or native (OGG > OGG). ONly if the file is told to "save to phone" will it play properly. I would like to see better implementation of OGG as OGG has the ability to sound close to mp3@128kbps at only 64kbps which would allow more songs to cache on the phone, and be better on my 3G network.


Yes, I'm not sure how to get my OGG files to stream natively - I get errors when I try to do so. I have to save them to the phone to get them to play. I definitely do not want to convert my ogg files to mp3.
lambda
 
Posts: 8
Joined: Wed Sep 08, 2010 2:35 pm

Postby mayhemer » Tue Dec 14, 2010 5:17 pm

I also have the problem with streaming any format to ogg.
The conversion works without problem, so there is no error in the subsonic server log. But the Android subsonic app has a problem. It starts to buffer the song but when it tries to play it there is an error: Prepere failed: status=0xFFFFFFFC (IOException).
When the song is completly downloaded the android subsonic app has no problem in playing the song. But it is not possible to stream it...

EDIT: I just tried to stream a song already in ogg format. The same error occures. So it is not because of the transcoding process...

INFO: I have an Samsung Galaxy S with Froyo (2.2)
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby grimm26 » Mon Dec 20, 2010 7:48 pm

sindre_mehus wrote:I just started looking into this.

Streaming native ogg files worked fine. Haven't tried transcoded ogg yet, what transcoding configuration are you using?

Will also look into m4a.


How do I get subsonic to stream ogg natively?
grimm26
 
Posts: 9
Joined: Mon Dec 20, 2010 7:06 pm

Postby GJ51 » Mon Dec 20, 2010 8:02 pm

Settings/Transcoding - Just uncheck the enabled box to the right and SS will no longer transcode to mp3. As long as .ogg remains in the music mask the files should play directly to the embedded player.
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

Postby grimm26 » Mon Dec 20, 2010 8:09 pm

I've unchecked ogg > mp3 encoding for the flash player - it won't play oggs (Using firefox on Linux). There is no such option that I can find for the android app. It always does ogg > mp3.
grimm26
 
Posts: 9
Joined: Mon Dec 20, 2010 7:06 pm

Postby grimm26 » Mon Dec 20, 2010 8:15 pm

Ah, I see. I need to edit external player with playlist. Did that, tries to stream native ogg, I get Prepare failed,: status=0x1 (IOException). bummer.
grimm26
 
Posts: 9
Joined: Mon Dec 20, 2010 7:06 pm

Postby GJ51 » Tue Dec 21, 2010 5:33 am

Does your default desktop player play ogg files locally? Have you checked file associations to ensure that ther ogg extension is associated with the player being called? Proper codecs installed on the desktop?
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

Postby grimm26 » Tue Dec 21, 2010 4:18 pm

That IOException is from Android.

For playing through the subsonic web interface, It just doesn't play. I've tried both the flash player and external player. I run Linux and I can play ogg files normally (mplayer, audacious). Something about streaming them is causing issues.
grimm26
 
Posts: 9
Joined: Mon Dec 20, 2010 7:06 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests