Trouble with Android client + Ogg streaming

Need help? Post your questions here.

Moderator: moderators

Postby mayhemer » Mon Jan 03, 2011 1:53 pm

The IOException is still there for me too on Android.
I think the problem is the file extension. While the file is streamed it has the extension .partial. Android does not know this file type and so it does not play it. Trying to play that file with the sound player in Android also does not work. But if I add the extension .ogg to the file it plays like a charm.

Maybe this is not a general Android problem but a problem of the Samsung modification of Android.

Is it possible to change the file extension to the real file type?
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby mayhemer » Mon Jan 03, 2011 2:01 pm

Now I am nearly sure that the file type is the problem.
Streaming mp3s work with subsonic, also with the extension .partial. So I tried to play back a mp3 with the extension .partial and it worked. I think the samsung Android tries to open an music file with an unknown file extension as an mp3. But if it is for example an ogg it does not work. the solution would be a small fix in the subsonic client for android. It should ude the real file extension, also while streaming the files.
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby sindre_mehus » Mon Jan 03, 2011 2:56 pm

I'll investigate if there are any negative side effects from this, and if not implement the changes as suggested.

Thanks!
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby mayhemer » Mon Jan 03, 2011 3:11 pm

Thank you very much!
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby mayhemer » Thu Jan 06, 2011 3:04 pm

The update works now! Thank you!
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby Big_D_271 » Fri Jan 07, 2011 2:26 am

I must be a dummy cause I still cannot get mp3 > ogg to work.

Using 2.4 Android client
4.2 server on Ubuntu.

This is my conversion line:
"ffmpeg -i %s -f ogg -acodec libvorbis -ab %bk -"

I have only mp3 > ogg checked for the player that MY Android (Droid 2) phone is.

I get:

"Error playing "Oh My Gosh".
"Prepare failed.:status=0x1(IOException)"

Would the 4.3 B1 make a difference? I noticed there was a note on the latest 2.4 upgrade of the Android client about "fixed OGG support" so I got really excited :D

64kbps OGG vs. 128kbps MP3 is a lot less taxing on my Big Red account.
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Postby mayhemer » Fri Jan 07, 2011 11:27 am

What are the corresponding messages in the subsonic server log?

There was a problem with the parameter %bk in "ffmpeg -i %s -f ogg -acodec libvorbis -ab %bk -" for me. Subsonic cannot resolve %bk because it expects %b without a k...

Do you have lame and oggenc2 installed? Than try following transcoding instructions:
1: "lame -S --decode %s -"
2: "oggenc2 -Q -b %b -o - -"

Greets Mayhemer
mayhemer
 
Posts: 6
Joined: Fri Dec 10, 2010 4:26 pm

Postby Big_D_271 » Tue Mar 29, 2011 12:28 am

It seems to be working quite well with the settings you provided. I know I was having some hiccups when I first tried, but things have been good so far.

Only thing now is how can I make it so ID3 tags are written to the .ogg file on my Android? I sometimes use PowerAmp player, and I can tell it to scan the /sdcard/subsonic folder for cached music. These files don't however have any tagging. I noticed on the forums ppl talk about this, but I cannot find anything with relation to Android.
Big_D_271
 
Posts: 8
Joined: Fri Apr 09, 2010 3:07 am

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests