phiola: Can't connect to Webradio

First of all, thank you for your great work. I tried an example from the description but it fails.

phiola http://server/stream -tee "@artist - @title.mp3"

The following command line was entered in the Windows console:

phiola http://mp3channels.webradio.de/chillout -tee "@artist - @title.mp3"

and it ends with an error message

09:49:32.005 #11020 WARN   http-client: *1: connect: (10049) Die angeforderte Adresse ist in diesem Kontext ungültig

I tried with several addresses. With the same result. But the adresses are valid. Is this an error in the command or in the program?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 47 (20 by maintainers)

Most upvoted comments

Oh man, you’re right. Obviously it wasn’t copied correctly or I accidentally took the test directory. Please excuse my mistake.

Thank you very much. I haven’t had any new crashes so far, so the problem should be resolved.

OK, first of all, the log file and crashdump do not match. How did you obtain the log file? You should exec phiola like this: phiola.exe -D -L phi.log URL

Yes, I created the command line like this. I don’t know why it doesn’t match. It could be that the phiola.log was not recreated but appended. I hadn’t deleted it before. There is a small time difference between the two because I shortened the log.

Ok, here are new logs. This time I deleted everything first. phi.log phiola-crashdump-6661eee3.txt

Also, does it crash if you play the .aac file that was recorded with phiola convert URL -copy -o 1.aac from this radio stream? I wonder if this problem is due to aac audio data decoding or it is specific to decoding from aac radio stream.

Hm, strange. When I use your command

phiola convert URL -copy -o 1.aac

I don’t notice any crashes and I can play the aac without errors. But with

phiola URL

phiola crashes every few calls.

Also, how many aac radio streams result in this behaviour? Does it happen only for this particular radio station?

I tested it with several aac stations. It’s always the same result.

Anything else. Stream addresses like this cause Phiola to crash.

http://streams.bigfm.de/bigfm-dance-128-aac?usid=0-0-H-A-D-30

and with

phiola convert URL -copy -o 1.aac

phiola also crashes if the file already exists.

Edit 1: With the redirection from my program it looked like a crash. But it isn’t one. Sorry. The stream address comes from an imported playlist and phiola displays an error message that the syntax is wrong and terminates.

Edit 2: As you said, phiola does not overwrite the file. This can be solved using programming, or can phiola do it with appended numbers, like windows.

Yes, I’ll do it. But I’m on vacation right now. I’ll have to see when I can get around to it.

Please open Task Manager and find the process that eats this cpu time. Is it really phiola.exe? If so, please post here what the Command Line column shows. I use System Informer as task manager. Attached is the screenshot.

Phiola_CPU

Currently phiola doesn’t support encoding to MP3. I removed it because I think that everyone should use modern and better audio encoders such as Opus, Vorbis and AAC. Do you really need encoding to MP3 for some reason?

Yes, mp3 is no longer the latest and greatest codec. But I think it is the best known and still the most used. At least for people who aren’t that interested in it. That’s why I wanted to at least offer a conversion. Therefore the conversion is not necessary. But it would be nice to have.

This can be achieved for example by your script if it will read INFO…written xxxKB line in phiola’s output.

Ok, I’ll take another look at this.

Is your project opensource? FYI, I’ve created the page where you can post the links to your work. Maybe others will find it interesting too.

Thanks for your offer. Yes it is opensource. But at the moment I haven’t published it yet. There are still some bugs to be fixed, the language to be changed and a description to write.