LAME support implemented in kPlaylist

Where are we heading with kPlaylist?

LAME support implemented in kPlaylist

Postby aba » Sat Jun 05, 2004 4:39 pm

Lame support has been added.

To use:

Make sure to adjust the path of the lame executable file. The default configuration is '/usr/local/bin/lame'. You can adjust this path in the script.

Enter Settings->File handling and mark the 'Enable LAME support'. Then you'll have to edit each user that should have LAME access. Each user also have to open his or hers 'Options' window and choose a bitrate.

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby V@no » Wed Jun 09, 2004 6:34 am

this is AWSOME!
works as advertized :D

In case someone have a question what is "LAME", visit their web site:
http://lame.sourceforge.net
or download it from here


(hope I'm alowed to post like this :roll:)

One problem though:
Seek doesnt work in the player when LAME is enabled.


Three requests though:
1) convert stereo to mono (optional, for selected bitrates)
2) make static bitrate for everyone and second option to alow users change it or not.
3) dont use LAME if the original file bitrate is lower then set LAME settings (why whould u convert 32kbps into 320kbps? - the quality wont change...)
V@no
 
Posts: 200
Joined: Sat May 25, 2002 11:27 pm

Postby aba » Wed Jun 09, 2004 6:00 pm

V@no wrote:
One problem though:
Seek doesnt work in the player when LAME is enabled.

Three requests though:
1) convert stereo to mono (optional, for selected bitrates)
2) make static bitrate for everyone and second option to alow users change it or not.
3) dont use LAME if the original file bitrate is lower then set LAME settings (why whould u convert 32kbps into 320kbps? - the quality wont change...)


Seeking: LAME doesen't seem to support skipping in files. (Can't specify offset.), so seeking is not possible. (I've read the man page, but I may have missed something.)

1) Yes. I agree.
2) I'm not sure about this. Reencoding is a extremely CPU intensive task.
3) I'll add a new option (user)

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

ogg support

Postby billy » Sat Sep 25, 2004 8:23 pm

no ogg support though?

they don't seem to be passed off to lame....anything that can be done there?
billy
 

Postby MorfiusX » Tue Sep 28, 2004 5:53 pm

I keep getting an "Reached end of file" error in Windows Media Player 10 when trying to use this. Here's my setup:

Windows Server 2003 and IIS 6.0
PHP4 and MySQL 4
kPlaylist is in a sub-directory (kPlaylist) under the web root
Lame is in a sub-directory (lame) of kPlaylist
All user info is correct
Works without lame enabled

I've given the internet guest account for IIS the execute permisions on the lame directory.

Any ideas?
MorfiusX
 
Posts: 16
Joined: Sat Oct 25, 2003 4:53 am

Postby bb2k » Thu Sep 30, 2004 1:41 pm

Can andybody please send me the correct parameters for Lame (Windows)

// lame parameters (enable in web settings and then user.)
$lamecmd = 'C:/Programme/Lame/Lame.exe --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -';

THX
Does not work for me ;(
bb2k
 
Posts: 31
Joined: Fri Sep 17, 2004 11:47 pm

Postby aba » Sat Oct 09, 2004 5:09 pm

bb2k wrote:Can andybody please send me the correct parameters for Lame (Windows)

// lame parameters (enable in web settings and then user.)
$lamecmd = 'C:/Programme/Lame/Lame.exe --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -';

THX
Does not work for me ;(



This works for me:

c:/lame/lame.exe --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby bb2k » Wed Oct 13, 2004 8:38 pm

damn it - is it possible that Lame does not work under Win 2003 Server and the FoxServ Apache/PHP/MySQL Package?
bb2k
 
Posts: 31
Joined: Fri Sep 17, 2004 11:47 pm

Postby aba » Mon Oct 18, 2004 1:38 pm

bb2k wrote:damn it - is it possible that Lame does not work under Win 2003 Server and the FoxServ Apache/PHP/MySQL Package?


Did you test lame? As in, running c:\lame\lame.exe ?

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby bb2k » Mon Oct 18, 2004 9:43 pm

Lame works fine, but not with kplaylist ;(
I tested it several times and I can't find the failer ;(

Now, I am using 1.4 365:
Under Settings I added to LAME command this value:
c:/lame/lame --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -
Is "/" correct, or should I write "\" ?

And I checked: Enable LAME support?

Then I created a new user with Lame Support.
Enable LAME support? with 64kbits.

Now, when I click on a mp3 file to stream - I get this file in WinAmp: kp023582[1].m3u or other strange file names.

When I click on: Play Control - Album
I get: [error syncing to mpeg] http://192.168.0.4/mp3/index.php?stream ... &file=.mp3

When I turn off the Lame Support under Settings - everything works fine.
Something is really strange????
I have LAME 3.96.1

Apache WebServer 1.3.26
PHP Script Language 4.2.3
MySQL Database 3.23.52
bb2k
 
Posts: 31
Joined: Fri Sep 17, 2004 11:47 pm

Postby aba » Tue Oct 19, 2004 10:49 am

bb2k wrote:Lame works fine, but not with kplaylist ;(
I tested it several times and I can't find the failer ;(

Now, I am using 1.4 365:
Under Settings I added to LAME command this value:
c:/lame/lame --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -
Is "/" correct, or should I write "" ?

And I checked: Enable LAME support?

Then I created a new user with Lame Support.
Enable LAME support? with 64kbits.

Now, when I click on a mp3 file to stream - I get this file in WinAmp: kp023582[1].m3u or other strange file names.

When I click on: Play Control - Album
I get: [error syncing to mpeg] http://192.168.0.4/mp3/index.php?stream ... &file=.mp3

When I turn off the Lame Support under Settings - everything works fine.
Something is really strange????
I have LAME 3.96.1

Apache WebServer 1.3.26
PHP Script Language 4.2.3
MySQL Database 3.23.52


Did you try with c:/lame/lame.exe (with .exe) ?

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby bb2k » Tue Oct 19, 2004 2:58 pm

yes - was a copy&paste error ;)

c:/lame/lame.exe --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -

Which program do you use to listen mp3 files?
bb2k
 
Posts: 31
Joined: Fri Sep 17, 2004 11:47 pm

Postby aba » Tue Oct 19, 2004 3:31 pm

bb2k wrote:yes - was a copy&paste error ;)

c:/lame/lame.exe --silent --nores --mp3input -h -m s -b %bitrate% "%file%" -

Which program do you use to listen mp3 files?


I noticed you wrote you are running PHP 4.2.3? Really, you should try a newer version of PHP. The latest, as of speaking. is 4.3.8. (Almost 2 years newer.)

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby bb2k » Wed Oct 20, 2004 10:33 am

Now, I changed to:

WAMP5 - Installation KIT
Apache version : Apache/1.3.31 (Win32)
PHP version : 5.0.2
MySQL version : 4.0.21-nt-log

But I have still this problems ;(
DAMN IT

Which media player do you use? maybe winamp has problems ....
bb2k
 
Posts: 31
Joined: Fri Sep 17, 2004 11:47 pm

Postby V@no » Fri Nov 19, 2004 3:40 am

V@no wrote:3) dont use LAME if the original file bitrate is lower then set LAME settings (why whould u convert 32kbps into 320kbps? - the quality wont change...)
aageb wrote:3) I'll add a new option (user)
until aageb adds this feature to user settings (IMHO its not needed per user setting at all...)
Here is a quick fix:
Find:
Code: Select all
         if ($uselame)
replace with:
Code: Select all
         if ($uselame && $lamebitrates[db_guinfo('lamerate')] < $f2->id3['bitrate'])
V@no
 
Posts: 200
Joined: Sat May 25, 2002 11:27 pm

Next

Return to Development



cron