LAME and Linux

Need help? Post your questions here.

Moderator: moderators

LAME and Linux

Postby Ikyo » Wed Nov 30, 2005 12:08 am

You might want to check your email server. It was kicking back a lot of my emails. I found out that it seems you forgot the last " on the file name. That will have a huge impact on LAME under Linux.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Re: LAME and Linux

Postby sindre_mehus » Wed Nov 30, 2005 8:20 am

Ikyo wrote:You might want to check your email server. It was kicking back a lot of my emails.

Hm, thanks for letting me know. I recently changed my web and mail service provider. Will check it out.

Ikyo wrote: I found out that it seems you forgot the last " on the file name. That will have a huge impact on LAME under Linux.

You're absolutely right! That was a bit embarassing...

Linux users: Please be aware that LAME resampling doesn't work. Will be fixed in Subsonic 2.6. Sorry for the inconvenience!

-Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Ikyo » Wed Nov 30, 2005 3:58 pm

Want to happen to send me the beta version of 2.6 and I can test it for you?
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby Guest » Wed Nov 30, 2005 6:08 pm

Ikyo wrote:Want to happen to send me the beta version of 2.6 and I can test it for you?


2.6 is not yet in a state suitable for beta testing, but I'll definately make it available later.

However, I have made a 2.5 bugfix release available on http://www.activeobjects.no/subsonic/download/subsonic-2.5-bugfix.zip

The only change is the LAME bug mentioned above.

Regards,
Sindre
Guest
 

Postby Ikyo » Wed Nov 30, 2005 6:29 pm

I am still getting this error:

[2005-11-30 12:27:25,517] INFO servlet.StreamServlet - Opening new song /backup/MP3/George Strait/Strait From The Heart_Reissue/01 - Strait From The Heart_Reissue - Fool Hearted Memory.mp3
[2005-11-30 12:27:25,523] INFO domain.TranscodedInputStream - lame -h -b 64 "/backup/MP3/George Strait/Strait From The Heart_Reissue/01 - Strait From The Heart_Reissue - Fool Hearted Memory.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_12209.mp3"
[2005-11-30 12:27:25,543] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_12209.mp3 was deleted.
[2005-11-30 12:27:27,547] INFO servlet.StreamServlet - Opening new song /backup/MP3/George Strait/50 Number Ones/08 - 50 Number Ones - The Chair.mp3
[2005-11-30 12:27:27,568] INFO domain.TranscodedInputStream - lame -h -b 64 "/backup/MP3/George Strait/50 Number Ones/08 - 50 Number Ones - The Chair.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_12210.mp3"
[2005-11-30 12:27:27,589] DEBUG domain.TranscodedInputStream - Waiting for more data.
[2005-11-30 12:27:28,097] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_12210.mp3 was deleted.

Here is the copy of the ps auxww for tomcat:

root 17189 9.3 37.1 290060 46824 pts/1 S 12:24 0:22 /usr/java/jre1.5.0_05//bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/work/apache-tomcat-5.5.12/conf/logging.properties -Djava.endorsed.dirs=/work/apache-tomcat-5.5.12/common/endorsed -classpath :/work/apache-tomcat-5.5.12/bin/bootstrap.jar:/work/apache-tomcat-5.5.12/bin/commons-logging-api.jar -Dcatalina.base=/work/apache-tomcat-5.5.12 -Dcatalina.home=/work/apache-tomcat-5.5.12 -Djava.io.tmpdir=/work/apache-tomcat-5.5.12/temp org.apache.catalina.startup.Bootstrap start
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby Ikyo » Wed Nov 30, 2005 6:42 pm

My guess on this would be something dealing with the user permissions or how you are calling LAME. Let me know if you need anything else.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby sindre_mehus » Wed Nov 30, 2005 7:00 pm

Hm. Does it work if you execute the lame command in a shell?
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Ikyo » Wed Nov 30, 2005 7:19 pm

Yes, the command works perfectly when it is issued directly from a shell prompt.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby Ikyo » Wed Nov 30, 2005 9:39 pm

If need be, I can add a temporary account for you on that machine.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby sindre_mehus » Wed Nov 30, 2005 10:17 pm

Thank you for your kind help, Ikyo!

I've uploaded a second bugfix version which logs everything the LAME process writes to stdout and stderr. Hopefully it will provide us with some details about the problem.

Please find it here: http://www.activeobjects.no/subsonic/download/subsonic-2.5-bugfix2.zip
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Ikyo » Wed Nov 30, 2005 11:13 pm

First login:

[2005-11-30 17:09:29,966] INFO service.SettingsService - Using Subsonic home /var/subsonic
[2005-11-30 17:09:30,060] INFO service.SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Thu Dec 01 03:00:00 CST 2005
[2005-11-30 17:09:30,281] INFO service.SettingsService - Using Subsonic home /var/subsonic
[2005-11-30 17:09:32,420] INFO filter.SecurityRealmFilter - User admin logged in successfully.
[2005-11-30 17:09:32,992] INFO service.SettingsService - Using Subsonic home /var/subsonic
[2005-11-30 17:09:32,994] INFO service.SettingsService - Using Subsonic home /var/subsonic
[2005-11-30 17:09:32,994] INFO service.SettingsService - Using Subsonic home /var/subsonic
[2005-11-30 17:09:34,678] INFO service.VersionService - Resolved latest Subsonic version to: 2.5


Changing to compressed audio size:

[2005-11-30 17:10:21,781] DEBUG domain.TranscodedInputStream - (LAME) LAME 32bits version 3.97 (beta 1, Nov 22 2005) (http://www.mp3dev.org/)
[2005-11-30 17:10:21,782] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:10:21,782] DEBUG domain.TranscodedInputStream - (LAME) usage: /usr/local/bin/lame [options] <infile> [outfile]
[2005-11-30 17:10:21,782] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME) <infile> and/or <outfile> can be "-", which means stdin/stdout.
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME) Try:
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --help" for general usage information
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:10:21,783] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --preset help" for information on suggested predefined settings
[2005-11-30 17:10:21,784] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:10:21,784] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --longhelp"
[2005-11-30 17:10:21,784] DEBUG domain.TranscodedInputStream - (LAME) or "/usr/local/bin/lame -?" for a complete options list
[2005-11-30 17:10:21,784] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:10:25,147] INFO service.SettingsService - Using Subsonic home /var/subsonic


Streaming:
[2005-11-30 17:12:04,489] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:04,489] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_5640.mp3 was deleted.
[2005-11-30 17:12:06,496] INFO servlet.StreamServlet - Opening new song /backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/03 - 20 Greatest Hits_Clean - Gravitational Pull.mp3
[2005-11-30 17:12:06,498] INFO domain.TranscodedInputStream - lame -S -h -b 96 "/backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/03 - 20 Greatest Hits_Clean - Gravitational Pull.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_5641.mp3"
[2005-11-30 17:12:06,517] DEBUG domain.TranscodedInputStream - Waiting for more data.
[2005-11-30 17:12:06,518] DEBUG domain.TranscodedInputStream - (LAME) /usr/local/bin/lame: excess arg Greatest
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME) LAME 32bits version 3.97 (beta 1, Nov 22 2005) (http://www.mp3dev.org/)
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME) usage: /usr/local/bin/lame [options] <infile> [outfile]
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME) <infile> and/or <outfile> can be "-", which means stdin/stdout.
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME) Try:
[2005-11-30 17:12:06,519] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --help" for general usage information
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --preset help" for information on suggested predefined settings
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --longhelp"
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME) or "/usr/local/bin/lame -?" for a complete options list
[2005-11-30 17:12:06,520] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:07,026] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_5641.mp3 was deleted.
[2005-11-30 17:12:09,036] INFO servlet.StreamServlet - Opening new song /backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/04 - 20 Greatest Hits_Clean - Dallas Days And Ft. Worth Nights.mp3
[2005-11-30 17:12:09,041] INFO domain.TranscodedInputStream - lame -S -h -b 96 "/backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/04 - 20 Greatest Hits_Clean - Dallas Days And Ft. Worth Nights.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_5642.mp3"
[2005-11-30 17:12:09,062] DEBUG domain.TranscodedInputStream - Waiting for more data.
[2005-11-30 17:12:09,063] DEBUG domain.TranscodedInputStream - (LAME) /usr/local/bin/lame: excess arg Greatest
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME) LAME 32bits version 3.97 (beta 1, Nov 22 2005) (http://www.mp3dev.org/)
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME) usage: /usr/local/bin/lame [options] <infile> [outfile]
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME) <infile> and/or <outfile> can be "-", which means stdin/stdout.
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME) Try:
[2005-11-30 17:12:09,064] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --help" for general usage information
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --preset help" for information on suggested predefined settings
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --longhelp"
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME) or "/usr/local/bin/lame -?" for a complete options list
[2005-11-30 17:12:09,065] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:09,566] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_5642.mp3 was deleted.
[2005-11-30 17:12:11,576] INFO servlet.StreamServlet - Opening new song /backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/05 - 20 Greatest Hits_Clean - County Fair.mp3
[2005-11-30 17:12:11,593] INFO domain.TranscodedInputStream - lame -S -h -b 96 "/backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/05 - 20 Greatest Hits_Clean - County Fair.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_5643.mp3"
[2005-11-30 17:12:11,603] DEBUG domain.TranscodedInputStream - Waiting for more data.
[2005-11-30 17:12:11,660] DEBUG domain.TranscodedInputStream - (LAME) /usr/local/bin/lame: excess arg Greatest
[2005-11-30 17:12:11,660] DEBUG domain.TranscodedInputStream - (LAME) LAME 32bits version 3.97 (beta 1, Nov 22 2005) (http://www.mp3dev.org/)
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME) usage: /usr/local/bin/lame [options] <infile> [outfile]
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME) <infile> and/or <outfile> can be "-", which means stdin/stdout.
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME) Try:
[2005-11-30 17:12:11,661] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --help" for general usage information
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --preset help" for information on suggested predefined settings
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME) or:
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME) "/usr/local/bin/lame --longhelp"
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME) or "/usr/local/bin/lame -?" for a complete options list
[2005-11-30 17:12:11,662] DEBUG domain.TranscodedInputStream - (LAME)
[2005-11-30 17:12:12,106] DEBUG domain.TranscodedInputStream - /work/apache-tomcat-5.5.12/temp/subsonic_5643.mp3 was deleted.
[2005-11-30 17:12:14,293] INFO servlet.StreamServlet - Starting stream admin@192.168.1.101:1774 (WinampMPEG/5.11)
[2005-11-30 17:12:14,293] INFO servlet.StreamServlet - Enabling SHOUTcast.
[2005-11-30 17:12:16,126] INFO servlet.StreamServlet - Killing stream admin@192.168.1.101:1773 (WinampMPEG/5.11)
[2005-11-30 17:12:16,127] INFO servlet.StreamServlet - Stopping stream admin@192.168.1.101:1773 (WinampMPEG/5.11)
[2005-11-30 17:12:20,317] INFO servlet.StreamServlet - Stopping stream admin@192.168.1.101:1774 (WinampMPEG/5.11)
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby Ikyo » Thu Dec 01, 2005 12:21 am

Take a look at thislink: http://ampache.org/forums/viewtopic.php?t=64

Also you might want to do soemthing like this:

/usr/local/bin/mp3splt -qnf -o - "%FILE%" %OFFSET% %EOF% | /usr/local/bin/lame --mp3input -q 3 -b %SAMPLE% -S - -
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby sindre_mehus » Thu Dec 01, 2005 8:12 am

Ah, I see what the problem is:

domain.TranscodedInputStream - lame -S -h -b 96 "/backup/MP3/Chris LeDoux/20 Greatest Hits_Clean/03 - 20 Greatest Hits_Clean - Gravitational Pull.mp3" "/work/apache-tomcat-5.5.12/temp/subsonic_5641.mp3"

domain.TranscodedInputStream - (LAME) /usr/local/bin/lame: excess arg Greatest


The arguments to the lame command are not interpreted correctly. It seems to ignore the quotation marks.

I'll try to fix this and post a new bugfix later today. Also, thanks for the links - I'll read through them.

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

Postby Ikyo » Thu Dec 01, 2005 2:37 pm

Try changing them to ' instead of ". They will both be treated the same, but I am guessing it has something to do with the way you are outputing the command.
Ikyo
 
Posts: 58
Joined: Wed Nov 30, 2005 12:07 am

Postby sindre_mehus » Thu Dec 01, 2005 6:16 pm

Ok, here we go again :-)

Try this one:
http://www.activeobjects.no/subsonic/download/subsonic-2.5-bugfix3.zip

(For the technically inclined: I changed from using Runtime.exec(String command) to using Runtime.exec(String[] argArray) when launching the LAME process).
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests