[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: MP3 Class / stream



> *Bump*
> 
> Same problem here.

Please be aware -- this is not a forum. It's a web front-end for a mailing
list. That means, hundreds of people just received, in their inboxes, a
message saying only "same problem" without any context. You're assuming
everybody is reading on the web, and they can just scroll up -- but most
readers are doing this all only by e-mail.


dufay wrote
> Hello everybody,
> 
> when i try to get an internet-stream run with the MP3 class, i get the
> following:
> 
> m = MP3("...address.url",\readurl); // seems to work
> -> a MP3
> 
> m.start; // problem:
> MP3.start completed (PID 4397)
> -> a MP3
> RESULT = 1

The most likely cause is that your system might not have "curl" installed.
That's the commandline utility to retrieve files from a URL. If you don't
have it, then Internet streams will not be available to the MP3 quark.

I had assumed "curl" is installed by default on unixy systems, but that
isn't the case -- on my machine, "which curl" says nothing.

There's a bit of lazy error reporting in the quark itself. When you start
SC, it checks for the required command utilities, and it does issue a
warning at that time:

WARNING: 'curl' executable not found. Please modify the MP3:curlpath class
variable.

This isn't really adequate, because most users ignore all of SC's startup
posting.

But then, MP3 blindly launches the process and doesn't do anything to
explain errors. Really experienced users know that RESULT = anything other
than 0 means there was an error. If you don't already know that, then it's
totally not helpful (and, in the latest SC, the RESULT line is gone).

Here are a couple of changes:

https://github.com/supercollider-quarks/MP3/pull/3

1. Fix the isPIDRunning error.
2. Post something if the subprocess crashes.

If you got the quark using git, you can do this to try it out:

cd ...downloaded-quarks/MP3  (substitute the location on your system)
git checkout -b jamshark70-topic/pidRunning master
git pull git://github.com/jamshark70/MP3 topic/pidRunning

I *think*... not totally sure.

hjh



--
Sent from: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SuperCollider-Users-New-Use-this-f2676391.html

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/