Thanks Paul - I wrote a small Perl script to start a recording as you're
doing. I'm using ab=24, samplerate="22050", channels=1 - which produces a
very listenable recording using much less space on disk.
Also, I will confess I'd never seen the timeout command before - that's a
very useful tool.
Thanks for the push to continue. Easier to test changes. Here's the
latest. And verified cron can start it.
!/bin/bash
stream="https://stream.revma.ihrhls.com/zc2149/hls.m3u8;
acodec="mp3"
arate="128"
mux="raw"
outfile="/home/paul/Audio/Coast-$(date '+%Y-%m-%d-%H-%M-%S').mp3"
timeout 4h vlc -I
I'll check on the MTA. It is an old Mythbuntu install. (Ever so slowly
moving to a new box.)
The URL is Nashville 1510 AM through iHeart Radio, found by digging through
the HTML. Been working for months when I "tune in" to Coast to Coast AM on
occasion at night. A more advanced version would
On top of the suggestions:
1. I think you may have an MTA but may not configured mail for the root.
2. To actually see what the script does: I'd wget that m3u url and see what
comes out of the wire. If it's a legit playlist than I'd wget some of that
as well if legit.
3. Check that the transcoder
Thank you! Knew it was probably something simple I was overlooking. That
got it working.
Paul
On Fri, Dec 11, 2020 at 2:16 AM John R. Dennison wrote:
> On Fri, Dec 11, 2020 at 02:03:25AM -0600, Paul Boniol wrote:
>
> >
> > crontab -e as my usual user.
> >
> > 0 0 * * * timeout 4h cvlc -I
To build on what the other two are saying:
crontabs have special formats and ultimately they're going to munge certain
characters as will the shell. Putting a command like that in crontab will
always be an exercise in frustration and often leads to the "four
backslashes" issue.
I'd recommend
Also, the "No MTA installed, discarding output" is the result of not having
a Mail Transport Agent installed/configured. Cron traditionally sends you
email with the full blown output from jobs (failed or otherwise). That
email is your preferred debugging technique. The email will be sent to the
On Fri, Dec 11, 2020 at 02:03:25AM -0600, Paul Boniol wrote:
>
> crontab -e as my usual user.
>
> 0 0 * * * timeout 4h cvlc -I dummy
> https://stream.revma.ihrhls.com/zc2149/hls.m3u8 :no-video
> :sout="#transcode{acodec=mp3,ab=128}:std{access=file,mux=dummy,dst=/home/paul/Audio/Coast-$(date
>
I've been using Linux for largely desktop use for a long time, but have not
gotten too into automation. I've finally gotten back around to trying to
schedule cron to run vlc, to record a radio stream nightly at midnight
(local). I got a command I think is good, and it appears cron is kicking
it