hi again,
I did a port of your shoutcast~ to linux, but I didn't use any "black magic" ( like adding a counter ), I rather did the following modifications to your first posted version :
a/ make the port to linux, including the makefile. You might to fix the path to your libmp3lame.so in the makefile.
b/ change the code for allocation which might have been responsible for the crashes. In lame documentation, it is said that when you encode N samples, your mp3 buffer must be 1,25*N+7200 bytes !!! I guess it's not science here, but rather taken from experiment. I declared the requested buffers accordingly.
c/ change (short) *in1++*32768 to (short) (*in1++*32768) yes, that's why you had zeros , because the cast was made BEFORE multiplication !!!!
d/ make a -DSHOUTCAST or -DICECAST toggle for compilation, it seems that they are not using the same port number.
e/ change some more code to follow the rules of external writing HOWTO ( to read first for anyone who wants to make externals )
The remaining problems are :
a/ I haven't tried to compile it for windows, I don't have such a compilation environment. So, you could get some errors.
b/ there are some clicks in the sound received, I don't know the reason, it seems to happen for each buffer boundary ( 65536 samples ). I'll check this later.
cheers,
Yves/
PS : from this external, an mp3 file encoder must be rather straightforward, I'll try to do it.
super! ;)
just,
when i try connecting server (icecast 1.3.11) says:
->[26/Nov/2001:11:40:14] Kicking unknown 8 [123.63.122.9] [Stupid headers], connected for 2 seconds
compiled with -DICECAST
(also enabled shoutcast compat with 2 succssive portnums)
?
well, I haven't tested it with icecast since I couldn't get a stable version of icecast for win....
Olaf
-¯- schrieb:
super! ;)
just,
when i try connecting server (icecast 1.3.11) says:
->[26/Nov/2001:11:40:14] Kicking unknown 8 [123.63.122.9] [Stupid headers], connected for 2 seconds
compiled with -DICECAST
(also enabled shoutcast compat with 2 succssive portnums)
?
-- 16299.70000
|well, I haven't tested it with icecast since I couldn't get a stable |version of icecast for win.... -¯- schrieb:
jeah also just a kwik test here. unfort dont have time atm to look deeper ..
|> super! ;) |> |> just, |> |> when i try connecting server (icecast 1.3.11) says: |> |> ->[26/Nov/2001:11:40:14] Kicking unknown 8 [123.63.122.9] [Stupid headers], connected for 2 seconds |> |> compiled with -DICECAST |> |> (also enabled shoutcast compat with 2 succssive portnums) |> |> ? |> |> -- |> 16299.70000
-- > < Ð v · o r 6
hi,
the "Stupid headers" message happened to me when the password was wrong, but it might happen under some other circumstances.
first, check that your password matches the one from icecast.
in the test patch, you have to click on:
password **** connect ........... and then put dsp on.
cheers,
Yves.
----- Original Message ----- From: "_-¯-_" jdl@xdv.org To: "Olaf Matthes" olaf.matthes@gmx.de Cc: pd-list@iem.kug.ac.at Sent: Monday, November 26, 2001 1:18 PM Subject: Re: shoutcast~ lin
|well, I haven't tested it with icecast since I couldn't get a stable |version of icecast for win.... -¯- schrieb:
jeah also just a kwik test here. unfort dont have time atm to look deeper ..
|> super! ;) |> |> just, |> |> when i try connecting server (icecast 1.3.11) says: |> |> ->[26/Nov/2001:11:40:14] Kicking unknown 8 [123.63.122.9] [Stupid headers], connected for 2 seconds |> |> compiled with -DICECAST |> |> (also enabled shoutcast compat with 2 succssive portnums) |> |> ? |> |> -- |> 16299.70000
-- > < à v · o r 6
yeah rite, i think i just forgot to actually press the password message, so it might just have worked rightaway. sorry.
anyhow, the newly uploaded shoutcast%7E_linux.zip also works
although i get those crackles. but then, i m using 32kbit, mono etc since my machine/line here doesnt have just enough juice
hope i ll get around to some more serious setup asapish so i can really tell!
i vote external of the year! ;)
x.jdl
Olaf Matthes about Re: shoutcast~ lin / Today
|I just have added a function for official login to IceCast. No compiler flags needed, just send |shoutcast~ the message "icecast" to switch it to IceCast, or "shoutcast" to switch back... | |Mountpoint is 'puredata', since I do not know what this needs to be. | |let me know how it works...
Yves Degoyon about Re: shoutcast~ lin / Today
|the "Stupid headers" message happened to |me when the password was wrong, |but it might happen under some other circumstances. | |first, check that your password matches the one from icecast. | |in the test patch, you have to click on: | |password **** |connect ........... |and then put dsp on.
Hi,
mono seems to be buggy at the moment, stereo works fine. And note that some samplerate / bitrate combinations are not supported by lame (for exmple 48kHz and 24kbit/s). This setting would produce an error message...
Olaf
-¯- schrieb:
yeah rite, i think i just forgot to actually press the password message, so it might just have worked rightaway. sorry.
anyhow, the newly uploaded shoutcast%7E_linux.zip also works
although i get those crackles. but then, i m using 32kbit, mono etc since my machine/line here doesnt have just enough juice
hope i ll get around to some more serious setup asapish so i can really tell!
i vote external of the year! ;)
x.jdl
Olaf Matthes about Re: shoutcast~ lin / Today
|I just have added a function for official login to IceCast. No compiler flags needed, just send |shoutcast~ the message "icecast" to switch it to IceCast, or "shoutcast" to switch back... | |Mountpoint is 'puredata', since I do not know what this needs to be. | |let me know how it works...
Yves Degoyon about Re: shoutcast~ lin / Today
|the "Stupid headers" message happened to |me when the password was wrong, |but it might happen under some other circumstances. | |first, check that your password matches the one from icecast. | |in the test patch, you have to click on: | |password **** |connect ........... |and then put dsp on.
-- x-#²²_!_!¢ø¢ø. 96311.08888o¯¯o¯¯>xI##
Hi again,
I just have added a function for official login to IceCast. No compiler flags needed, just send shoutcast~ the message "icecast" to switch it to IceCast, or "shoutcast" to switch back...
Mountpoint is 'puredata', since I do not know what this needs to be.
let me know how it works...
Olaf
-¯- schrieb:
super! ;)
just,
when i try connecting server (icecast 1.3.11) says:
->[26/Nov/2001:11:40:14] Kicking unknown 8 [123.63.122.9] [Stupid headers], connected for 2 seconds
compiled with -DICECAST
(also enabled shoutcast compat with 2 succssive portnums)
?
-- 16299.70000
|I just have added a function for official login to IceCast. No compiler flags needed, just send |shoutcast~ the message "icecast" to switch it to IceCast, or "shoutcast" to switch back... | |Mountpoint is 'puredata', since I do not know what this needs to be.
can just be anything (wiht icecast at least). best would be a setter message so you say mountpoint bla or mountpoint bli/bla.mp3
|let me know how it works...
hm, can't seem to get a clean signal out of it so far have been trying on a proper machine now, at 48000, 128kbit stereo but still those crackels (on frame boundaries?)
-- × d v · O 7 g
On Tue, 27 Nov 2001 00:02:36 +0100 (CET), _-¯-_ wrote:
|let me know how it works...
hm, can't seem to get a clean signal out of it so far have been trying on a proper machine now, at 48000, 128kbit stereo but still those crackels (on frame boundaries?)
i think i have the same problem. please listen to http://radiostudio.org:8000/puredata
i'm using the linux version.
Hi Yves,
thank you for porting it to (a real operating system called) Linux.... !
I've fixed the bug causing the clicks (wrong setting for write position after going from the end of the buffer back to the start and still wrong conversion from float to short when lame chunk is read from end _and_ start of buffer) and recompiled for Win. Now it works quite well... and can be downloaded from http://www.akustische-kunst.de/puredata/index.html
I know that the buffer size I use is too high. On Win lame requests different amounts of data to be send to it depending on sampling rate and bitrate settings. I just chose a buffer size large enough to be on the save side.
Yves Degoyon schrieb:
PS : from this external, an mp3 file encoder must be rather straightforward,I'll try to do it.
... we just need to write the data returned from lame to a file....
Thank you again for your help!
Olaf