Android Application and Transcoding

Need help? Post your questions here.

Moderator: moderators

Android Application and Transcoding

Postby WildWalker » Thu Jun 24, 2010 7:18 am

Okay,

Can someone answer this, is anyone using the Android application, and transcoding?

I just want to know if anyone has seen this working.

This is in relation to my previous question (below) that got zero replies :(

__________________________________________________

Hello All,

Subsonic Server 4.0.1
Windows Vista Ultimate
Sony Ericsson Xperia X10i
Latest Subsonic Android App
All Music Encoded to MP3 @ 320 Kb/s

If I try to play songs from my Subsonic server using my Android handset, it fails to play if I have set any transcoding, if I play using the native bit rate it plays, all be it very stop start as my music is all MP3 320Kb/s.

Is there a problem using the Android App and Transcoding?
If I am more stupid than you, does that make me better at something than you?
WildWalker
 
Posts: 136
Joined: Mon Nov 09, 2009 8:49 am
Location: Portsmouth, England

Postby delcypher » Thu Jun 24, 2010 8:33 am

It works fine for me. It's likely that you haven't setup your transcoders properly (see http://www.subsonic.org/pages/transcoding.jsp) or that you're trying to transcode to a codec that the Android platform doesn't support.

What transcodings are you trying?
I think you probably want to transcode MP3s to lower-bitrate MP3s which subsonic doesn't actually give you the option to control. You will need Lame to do this though.

You can look at what's being transcoded by going to About (in the web interface) and looking at the Log.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby WildWalker » Thu Jun 24, 2010 6:47 pm

Hello delcypher, thank you for the reply.

I am indeed 'transcoding' high bit rate MP3s (320Kb/s) to 64Kbs.

I was under the impression that Subsonic did this with no additional settings as this already works when I use a PC as a player (I listen to my music while at work, at 64Kb/s)

Is there something different I have to do to get this to work on my Android handset?

Best Regards,
Alan Walker.
If I am more stupid than you, does that make me better at something than you?
WildWalker
 
Posts: 136
Joined: Mon Nov 09, 2009 8:49 am
Location: Portsmouth, England

Postby baskie » Wed Jun 30, 2010 5:56 pm

Im having issues as well. Im running 4.0.1 on Debian Linux and the transcoding isnt working. Here is what i get in my log
[6/30/10 2:30:50 PM EDT] INFO PlaylistInputStream baskie listening to "Appeal to Reason/13 Whereabouts Unknown.wma"
[6/30/10 2:30:50 PM EDT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/mnt/joshmusic/Josh Music/Rise Against/Appeal to Reason/13 Whereabouts Unknown.wma] [-f] [wav] [-]
[6/30/10 2:30:50 PM EDT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/lame] [-b] [320] [-] [-]
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) FFmpeg version r11872+debian_0.svn20080206-18+lenny1, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[6/30/10 2:30:50 PM EDT] WARN TranscodingService Failed to transcode /mnt/joshmusic/Josh Music/Rise Against/Appeal to Reason/13 Whereabouts Unknown.wma. Using original.
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) configuration: --enable-gpl --enable-libfaad --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavutil version: 49.6.0
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavcodec version: 51.50.0
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavformat version: 52.7.0
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavdevice version: 52.0.0
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) built on Jan 28 2010 20:57:25, gcc: 4.3.2
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Input #0, asf, from '/mnt/joshmusic/Josh Music/Rise Against/Appeal to Reason/13 Whereabouts Unknown.wma':
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Duration: 00:04:02.4, start: 1.579000, bitrate: 128 kb/s
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 128 kb/s
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Output #0, wav, to 'pipe:':
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream mapping:
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[6/30/10 2:30:50 PM EDT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Press [q] to stop encoding

any ideas I have all the transcoding installed all set to default settings.
baskie
 
Posts: 14
Joined: Fri Jun 11, 2010 4:41 pm

Postby delcypher » Thu Jul 01, 2010 9:53 pm

Notice the line
Code: Select all
WARN   TranscodingService   Failed to transcode /mnt/joshmusic/Josh Music/Rise Against/Appeal to Reason/13 Whereabouts Unknown.wma. Using original.


Your transcoding is failing for some reason.

You can try and simulate your transcode by running the following command in the terminal. If it fails this may explain your problem.

Code: Select all
/var/subsonic/ffmpeg -i '/mnt/joshmusic/Josh Music/Rise Against/Appeal to Reason/13  Whereabouts Unknown.wma' -f wav - | /var/subsonic/lame -b 320 - - > out.mp3


If it doesn't we made need to look in to this further. Notice the quotes around the file path. That is very important as bash uses spaces as argument seperators by default.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby baskie » Wed Jul 07, 2010 5:12 pm

It seems that lame didnt install correctly. Im using debian 5.0 using aptitude to get all the correct packages. Anyone know of a server i can add to grab all the most up to date packages for lame. The servers that aptitude is bouncing off of seem to have a corrupt/out of date verisons.
baskie
 
Posts: 14
Joined: Fri Jun 11, 2010 4:41 pm

Postby delcypher » Wed Jul 07, 2010 11:00 pm

What makes you think LAME is corrupt?

The version shouldn't matter too much. It should still be able to enable an mp3. You are aware that in /var/subsonic/transcode you should have a symbolic link to your actual subsonic binary?

i.e.

ln -s /usr/bin/lame /var/subsonic/transcode/lame

or a copy of the binary in /var/subsonic/transcode (not so good as when you're package manager upgrades lame the copy in /var/subsonic will remain the same and not get updated)

If you want latest and greatest then build LAME from the source code

http://sourceforge.net/projects/lame/files/lame/
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby baskie » Thu Jul 08, 2010 3:04 pm

Yep I know its a link(/usr/bin/lame) but I don't have a server with all the files to download for a full complete install. Some dependencies are missing from the servers I have in my /etc/apt/source.list. The command I ran to install all the packages failed and I don't know how much of each program installed. Is there a quick way to back out all that was installed, point to another server and try again?
baskie
 
Posts: 14
Joined: Fri Jun 11, 2010 4:41 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests