multiple lame and ffmpeg processes spawned for the same song

Need help? Post your questions here.

Moderator: moderators

multiple lame and ffmpeg processes spawned for the same song

Postby scp » Sat Jun 04, 2011 9:40 pm

Problem Description: multiple lame and ffmpeg processes spawned for the same song
Subsonic version: Version 4.4 (build 2169) – February 6, 2011
Subsonic Server: jetty-6.1.x, java 1.6.0_20, Linux (40.1 MB / 80.2 MB)
OS: Ubuntu 10.10
Working client: Works on HTC Desire, Android 2.2, Subsonic 2.7
Problem client: Fails on San Francisco (Blade), Android 2.3.3, CyanogenMod-7.0.0-Blade, Subsonic 2.7

All my music is stored in FLAC format. In summary, the problem is that when I request a song from the San Francisco phone, the server starts the lame and ffmpeg processes to transcode it to mp3 and then 10 seconds later starts another pair of processes to transcode the same song. This repeats until 17 lame and 17 ffmpeg processes are running and by then the server is not very responsive! The effect on the client is that the mp3 starts downloading and it plays a little and maybe gets the second chunk but that's it because no more music gets transcoded as the server goes so slow.

I have found that I can halt the spawning of additional processes from the client by going to the settings and selecting the demo server instead. If I do this, the transcodes eventually complete and the server recovers. This suggests to me that it is the client requesting the song many times.

The peculiar thing is that it hasn't always been like this. I bought the phone with Android 2.1 (maybe) on it and it all worked fine except that there was a small gap as the client switched from playing the first chunk it had downloaded to the next. I upgraded the phone to CyanogenMod-7.0.0-Blade and this fixed the gap in the playback and did not immediately introduce this problem. At some point this multiple transcode problem started. I have tried so many things that I don't know how it has become fixed in the past (reinstalled server and client for instance) but it has gone away and now it's back and whatever I do I can't fix it. It also doesn't make any sense as there is no problem from the Desire phone.

I can provide log files if that's useful or process listings. I'm open to suggestions for ways to get additional debugging info.

Thanks,
Stephen.
scp
 
Posts: 2
Joined: Sat Mar 05, 2011 11:51 am

Any ideas to help debug this problem?

Postby scp » Sun Jul 03, 2011 8:27 pm

Hi,
I still have this problem. Can anyone give me some log4j settings or something else to help understand what is going wrong?

Thanks.
scp
 
Posts: 2
Joined: Sat Mar 05, 2011 11:51 am


Return to Help

Who is online

Users browsing this forum: No registered users and 8 guests