Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello folks! New user to this forum. I did search through past posts for about 10 minutes and I did not see anything like what I am about to ask, thank you for your help in advance.
This might be long in order facilitate the most information for you.
At the heart of the matter is a simple problem: I am trying to stream an internet radio station and it is dying from time to time and I do not want it to do that.
To understand my situation best, let me explain that my wife and I own a rural farm on the Oregon coast. I am away from the house for many hours at a time. I have, for about 8 years now, been running an internet based radio station stream through a laptop (a 2007 Intel MacBook, in fact) to a FM transmitter and I then take a radio around the farm or use the radios in various pieces of equipment here to listen all day.
All was well until February 1st of this year when the internet radio station switched their stream to Live365. Since that time, Live365 drops my audio stream at random, but usually no more often than every couple or few hours. It does this no matter if I am using the original MacBook or another device, such as my iPad. And, since it did not happen prior to the switch to Live365, I blame Live365. Upon contacting the radio station owner itself, they confirmed my findings, it is not simply affecting only me.
I am running Q4OS (Debian) on the MacBook. I love it, no problems there. I am using 4.7 Gemini with Plasma, by the way. I usually try to run the stream through VLC but have tried multiple apps and a few distros on another laptop (LXLE, Linux Mint, Lubuntu, Ubuntu).
Here is what I really need:
A means by which to play the stream and command it to stop and restart the stream, maybe every 2 hours. I cannot find anyway to get VLC to do this and am wondering if there is another option out there to get this to happen. I also cannot get VLC to simply restart the stream once it dies. I want to keep the stream alive, so I don't have to be without music until I can get back to the house.
On my old Mac OS X install (Snow Leopard on the old MacBook), I would've created an automated music click series and then set a schedule for it to occur every couple or few hours. That doesn't seem to exist for Linux (at least I can't find it). XClicker doesn't seem to allow me to do more than one click and I need it to do at least two:
1) Stop the stream
2) Start the stream
I don't mind using a command line kind of media player, if it can be scripted to allow a stop, play on a schedule, say every 120-180 minutes.
So, there you have it - in a nutshell. Hahaha... I tried to spare you some more verbosity but can provide further details if you would like me to do that.
I guess I will throw in the contents of the listen.m3u file in case you care:
Thanks again for going through this long post and sticking with me. I am open to doing many different things to get this to function correctly, so I am open to any and or all suggestions.
Restart Radiotray. (from https://bugs.launchpad.net/ubuntu/+sour ... ug/1182084 at the bottom by dino99) Doing this eliminated most of the drops; for the others Radiotray now restarts the stream by itself.
I've had an a/c with RadioTunes for quite a few years. One advantage of a paid account is you get the option to patch it out through your favourite media player via a .pls stream.
For this I use DeaDBeeF.
I've never, to the best of my knowledge, used an .m3u stream.....but RadioTunes' .pls stream is dead stable, and will play all day long if I want it to. Never a drop-out; well, very occasionally it will, but it's extremely rare, and is more than likely due to network glitches.
Hey, listen guys, this is all a real treat for me. I am shocked to see this in here and I am ever thankful, surely. I was away over the weekend and came back this morning to see all of this! THANK YOU.
Now, I will need to try to implement any/all of it, so I can't be sure of which direction I will be taking, but I will try to get to it tomorrow (Wednesday) and then report back.
Thus far, you guys are really giving me some good hope here. I will churn this over a little and when I have more time, start giving it all a whirl.
Again, you are all very kind to this legacy DOS guy, just trying to do something that seems so natural in his mind. Hahahaha...
Okay all, my issue has been RESOLVED. And I have all of you to thank for it.
I have been streaming for over 24 hours without a total stream failure as of yet. I cannot be sure it is going to last for the weeks I have been accustomed to but it is far better than losing the stream 6-8 times a day, surely!
So, here is what I did, I took a very low tech approach.
First, I went into the Q4OS software center and installed GoodVibes. I then opened it, added my Affirm stream URL and set GoodVibes to repeat. I then walked away. And, since then, it has been working as I could hope. I do hear occasional drops or stutters, but big deal. After a few seconds all is right again. Once I lost the stream intermittently for about 15 minutes, with GoodVibes reconnecting at least 15 times in that span, but eventually all went back to right. It is, in essence, automatic and fully functional.
Such a simple solution and has taught me a big lesson. See, I struggled with this problem for weeks. And, I tried various distros (remember, this is a 2007 MacBook running this OS and output to the FM transmitter) since I kept having trouble with them all. When I was using Mac OS X and the original stream link (not the Live365 server), I was able to use VLC without any trouble. I assumed that would be the same, regardless of the setup, OS, etc. And, I really spent many hours switching between installs and setups, trying various other media players without success either. The big lesson was this... I shouldn't have waited so long to ask for help!
Thanks to you all, your assistance was valuable and really appreciated.
I'll keep an eye on this thread for a few days in case anyone has any questions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.