Bugzilla – Bug 7805
Bitrate limiting does not work when streaming via SSH to Softsqueeze
Last modified: 2008-11-12 12:06:27 UTC
Created attachment 3223 [details] A portion of server log file -------------------------------------------------------------------------------- I'm usually streaming from my SC (SqueezeCenter Version: 7.0.1 - 17981 - Windows Server 2003 - EN - cp1251) to SS v3.6, using bitrate limiting to 160Kbps, directly over corporate network without any problem. This week I decided to try streaming over SSH. I've installed 2 SSH daemons on the server machine to try (FreeSHHd and VShell; one at a time). Then I configured the Softsqueeze to use SSH. The music starts to play. Then, after about 1 minute it aborts the current track and goes to the next track; and so on. At the server side I see that when I hit play on the SS, lame.exe starts to take about 70-80% of the CPU for about 30 seconds, and then stops using it at all. At that time the player is shown in network health as having no streaming connection. Then, approximately at the same time the SS jumps to a next track, lame again start to utilize the whole CPU, for another 30-40 seconds. And so it goes till the end of the playlist. When I disable the bitrate limiting, everything seems to play fine over SSH. The tracks played are FLAC. I have attached a portion of the server log with player.source debug enabled. Here is what it shows: [08-04-11 15:18:03.9673] Slim::Player::Source::trackStartEvent (1535) Song queue is now 4 [08-04-11 15:18:30.4273] Slim::Player::Source::readNextChunk (2350) Read to end of file or pipe [08-04-11 15:18:30.4278] Slim::Player::Source::readNextChunk (2373) end of file or error on socket, opening next song, (song pos: 5626097(tell says: . 0 but true), totalbytes: 5748800) [08-04-11 15:18:30.4281] Slim::Player::Source::gotoNext (1236) Opening next song... [08-04-11 15:18:30.4291] Slim::Player::Source::nextsong (1586) The next song is number 5, was 4
I'll take a look at this next week, I can't seem to ssh to my home pc right now for some reason.
Andy notes the server doesn't know anything about SSH, so it seems like it should work if SSH is set up right.
(In reply to comment #2) > Andy notes the server doesn't know anything about SSH, so it seems like it > should work if SSH is set up right. I agree; it seems quite logical. However, it doesn't :)
Please give the latest 7.2.1 or 7.3 another try. I've recently fixed some issues with transcoding and non-latin characters.
I have installed SqueezeCenter Version: 7.2.1 - 23460. Using softsqueeze 3.7 - same results as before.
I wonder if this is OS specific or has something to do with FreeSSHd this. I've tried this and I can't seem to get SoftSqueeze to connect to FreeSSHd at all. I can get putty and ssh from linux to connect to it without a problem, but SoftSqueeze just fails saying to check settings and this is the only thing useful I see in the log: 215000 [AWT-EventQueue-0] WARN softsqueeze - Exception in connect java.io.IOException: Session.connect: java.net.ConnectException: Connection refused: connect at org.titmuss.softsqueeze.net.SSHTunnel.connect(SSHTunnel.java:144) I've created and tried several users, double checked all settings, and verified that the users connect and work using putty. Not sure if this is helpful, but I connected SoftSqueeze on an XP computer to SC7.3 running on Ubuntu via SSH (OpenSSH) and this works great, even with bitrate limiting enabled. I'm afraid I'll need to investigate this further in the future.
FreeSSHd is not stable with softsqueeze, I admit that. (I even posted a note on their forum, but it went unnoticed). However, I have tried VShell and Foxit WAC server too. With Foxit, the Softsqueeze connects happily. However, I experience the same problem with bitrate-limited streaming as described before.
SoftSqueeze is a community contribution and is not officially supported. Patches are welcome to fix this problem. Yuly: Please try another Windows based SSH application, if you still have an issue then maybe someone in the forums can help diagnose or patch Softsqueeze