I've been testing for a few days, and the results are confusing. I began with a 5 hours long file then a live stream.
Here are test results with a ~5 hours long input file:
Code:
ogg123 -d raw -f - infile.ogg | ./stereo_tool - outfile -s mypreset.sts
Correct.
Code:
ogg123 -d raw -f - infile.ogg | ./stereo_tool - - -s mypreset.sts | lame -r -b 112 -q 9 - outfile.mp3
Correct.
Code:
ogg123 -d raw -f - infile.ogg | ./stereo_tool - - -s mypreset.sts | lame -r -b 112 -q 9 - - | ./shoutsend -m /mount.mp3 -s 127.0.0.1 -p 8000 -P ******
Correct.
...but with an input stream the following command caused "Disconnecting source due to socket timeout" error in Icecast after
406 minutes (that is, 2*203 mins):
Code:
ogg123 -d raw -f - http://ip:port/mount.ogg | ./stereo_tool - - -s mypreset.sts | lame -r -b 112 -q 9 - - | ./shoutsend -m /mount.mp3 -s 127.0.0.1 -p 8000 -P ******
However, Stereo Tool seemed still working after the error, so I wonder where the problem might be.
Then I did some tests without Stereo Tool:
Code:
while true; do cat infile.ogg; done | ogg123 -d raw -f - - | lame -r -b 112 -q 9 - outfile-loop.mp3
Correct after 3 rounds.
Obviously, more tests are required. I'm investigating the problem right now and will post an update in a couple of hours.
Edit: As you can see, this time I used RAW mode everywhere instead of WAV.