• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

wget "Malformed status error" in DSlinux

Started by JWT, March 22, 2008, 04:26:21 PM

Previous topic - Next topic

JWT

I am trying to stream internet audio (icecast) with wget and madplay on the DS running dslinux, and wget gives the error "Error -1: Malformed status line", and quits.

The command I am using is: wget -O - http://64.71.145.107:8000 | madplay -d -. wget works fine for other things, like wget http://www.google.com. Does anyone have a solution or workaround? I have tried multiple stations (working pls in DSOrganize) with the same error.

By the way, the DSlinux build is 3-16-2008 DLDI, it is running on an R4 (v1.16) with EZ 3-in-1. Both links and retqaw work fine.
Thanks,
JWT

dantheman

Do you happen to know what format it's broadcasting in?  It probably has to be something madplay can understand, like MP3.  I tried using that command with the Ormgas radio stream (which was OGG) and the entire system got screwed up, requiring a reboot.  The url I was using was http://ormgas.dracoirs.com:8000/ocRelay.ogg

I then tried it on an mp3 file I uploaded myself to my Google Pages account and it worked, though very choppily.

JWT

I think it's mp3, but not sure. However, the format does not matter, because wget gets confused from the header and stops, before the stream is piped to the player (madplay). The same would happen for OGG or ACC.

The problem is that in icecast streams, the header sent by the server is "ICY 200", not "HTTP 100" or something that wget would understand. If it is not a stream but an actual file as in your case, it would work. The player may be choppy but at least it's getting the feed.

As a test, could you try the command I had in the 1st post and let me know what you get? (That was WGBH radio, but there are other sites, like di.fm to try)

It seems to me that the DSlinux version of "wget" needs to be patched to understand header info other HTTP to work on streaming radio (not standalone files, which work ok). Can someone technically inclined confirm if this is true?
Thanks,
JWT