Re: [RDD] Upgrade Centos 6 to 7

2018-11-24 Thread David Klann
Hey Rich,

On 11/24/18 5:11 PM, Rich Stivers wrote:
> I have written a number of bash scripts which do regex text parsing,
> invoke rdimport, and invoke mysql to
> extract portions of the Rivendell database to .csv files. Do most of
> these actions in Centos 6 bash have a
> good chance of working in Centos 7 bash?
> 

I expect you'll be just fine if you're not also upgrading the Rivendell
version when you move from CentOS 6 to CentOS 7. The Bash version is
newer in C7, but in my experience, Bash changes slowly, and I have not
yet encountered significant (or any) regressions that cause backward
incompatibility. If anything you may require minor tweaks to the
scripts, but even that seems a bit unlikely.

Hope this helps!

  ~David Klann




signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Rivendell in conjuntion with owncloud conciderations

2018-11-27 Thread David Klann
Hello Peter,

On 11/27/18 2:50 AM, Peter Claes wrote:
> Hi guys,
> 
> I am trying several ways to get remote access to our system (with audio
> store)
> I had some success with running NFS over IPSEC, but it takes many manual
> steps for connecting and syncing local and remote audio stores.
> Which alse means many things could go wrong there.
> 
> I am now considering to open port 3306 and running owncloud on /var/snd
> 

I strongly urge you to reconsider opening TCP port 3306 to the Internet
(assuming that is what you mean). If you are going to do this, please
consider applying an IP "whitelist" (aka access list) to your firewall,
allowing only specific IP addresses to access that port.

I also recommend Nextcloud as an alternative to Owncloud. I have been
running a Nextcloud instance (though not on a Rivendell-related server)
for several years and it works quite well.

> Anyone with experience on this matter ? Anything to watch for ?
> Will have to install owncloud on a running production machine.
> 

Hope this helps!

  ~David Klann



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Questions On Paravel Centos 7 Rivendell Build

2018-12-07 Thread David Klann
Hi Rich,

I have successfully swapped out Xfce for GNOME on several systems I help
maintain (running CentOS 7). Here's how I've done it:

 - sudo yum remove '@Xfce'
 - sudo yum --skip-broken install  '@^GNOME Desktop'

The "@" symbols refer to yum "groups": Xfce is a simple group, GNOME is
an "environment group" (see
https://ask.fedoraproject.org/en/question/40276/whats-the-difference-between-an-environment-group-and-group/
for info about environment groups).

The "--skip-broken" was needed because GNOME wants to install an ALSA
package (maybe alsa-firmware? I forget the details) that conflicts with
the Audio Science "hpklinux" package. Using "--skip-broken" leaves the
hpklinux package installed.

Hope this helps!

  ~David Klann


On 12/6/18 10:29 PM, Rich Stivers wrote:
> I appreciate all the people who responded to my inquiry regarding the
> Dell Optiplex 3060. I decided on this PC.
> 
> While I'm waiting for them to be delivered, I decided to build a Centos
> 7 Rivendell system on an older test computer
> using the Paravel Instructions -
> http://static.paravelsystems.com/rivendell-install/rivendell-install-rhel7.html
> 
> Everything went well but I have a few questions.
> 
> At the step for Mount Points -
> for /home, 100G is specified. Since I have a 1TB disc, could I specify
> 200G instead? Our sound files reside on a
> NAS Raid server so this drive doesn't need extra space in /var/snd.
> 
> The resulting desktop is Xfce instead of Gnome. Is Xfce better than
> Gnome? I had no problem with Gnome in Centos 6.
> If it's not too much trouble I'd like to bring back Gnome. Would this
> interfere with Rivendell in any way?
> 
> Rich
> 
> 
> 
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Support for MP4V2/AAC/M4A Files

2019-01-30 Thread David Klann
Greetings Fred and list,

Fred, I think I know the answer to this, but I'm asking anyway for the
record: is there any chance you would be willing to build the reference
distribution of Rivendell with MP4/M4A/AAC import support compiled in?

I understand that the libraries needed to enable this are not in the
official CentOS or EPEL repositories, but there are well-known
alternative repos where the necessary libraries can be found.
Alternatively, would you be willing to host libfaad, libmp4v2 (and
friends) on your yum repo so that there would be "official" support for
these formats?

I look forward to your response!

Thanks for all you do!

  ~David Klann



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] [Resolved] Support for MP4V2/AAC/M4A Files

2019-02-01 Thread David Klann
I concur Lorne. I can *compile* a version with support built in. I was
asking Fred to consider releasing the "reference" version of official
packages with that support enabled.

I hadn't thought about the intellectual property encumbrances of the
codecs or file formats. And here
(https://en.wikipedia.org/wiki/Advanced_Audio_Coding#Licensing_and_patents)
is the answer to my question. The codec can only be transferred in
*source* format.

Fred, I withdraw my request. Apologies for wasting bandwidth.

  ~David

On 2/1/19 6:02 PM, Lorne Tyndale wrote:
> I thought we already had MP4/AAC import capability - I know the version
> of 2.19.3 that I compiled can import mp4/aac files and the format shows
> up under "supported import formats" in rdadmin->Manage Hosts-> Audio
> resources
> 
> Lorne Tyndale
> 
>>
>>
>> Aren't those codecs still under patent?
>>
>>
>> Rob
>>
>> -- 
>> Я там, где ребята толковые,
>> Я там, где плакаты "Вперёд",
>> Где песни рабочие новые
>> Страна трудовая поёт.
>>
>> On Wed, 30 Jan 2019, David Klann wrote:
>>
>>> Greetings Fred and list,
>>>
>>> Fred, I think I know the answer to this, but I'm asking anyway for the
>>> record: is there any chance you would be willing to build the reference
>>> distribution of Rivendell with MP4/M4A/AAC import support compiled 
>>> in?___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Support for MP4V2/AAC/M4A Files

2019-02-04 Thread David Klann
On 2/4/19 11:06 AM, Fred Gleason wrote:
> On Mon, 2019-02-04 at 08:46 -0800, Patrick wrote:
>> What about something in the development installation script that asks
>> if they’d like those repositories and packages installed "at their
>> own risk". It may make it easier for people that want it.
> 
> Seeing as distributing those packages in non-source form is a violation
> of their license terms (see David's earlier post), I think we'd best
> pass on that one.

I heartily advocate honoring third-party library licensing terms.

Fred, I'm curious about your thoughts on enabling the hooks for the
patent-encumbered libraries when building the RPMs for CentOS. I, for
one, would welcome that change to the Rivendell reference distribution.
That way I can decide on a per-installation basis if I want to risk
installing a third-party yum repository.

Would you compile Rivendell with a self-compiled version of libmpeg4v2
and libfaad? If so, would you document the version and configuration
details in the release notes? Sigh. I see how this can quickly get
onerous...

Thanks for your consideration!

  ~David Klann




signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Thinking about 'RN' [wrap-up]

2019-02-07 Thread David Klann
On 2/7/19 1:18 PM, Fred Gleason wrote:
> On Tue, 2019-02-05 at 10:34 -0500, Fred Gleason wrote:
>> What are some ways we could improve this RML?
> 
> The user consensus as expressed here looks to be:
> 
> 1) Add the ability to specify a specific Linux user/group to use for
> running the commands (as opposed to using the values of 'AudioOwner='
> and 'AudioGroup=').
> 
> 2) Otherwise change nothing at all.
> 
> Any dissents?

No dissent here. This seems a decent way to handle RN.

Thanks for bringing this up Fred!

  ~David Klann




signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Compiling Rivendell 3.0 rc0.0 on debian 9

2019-04-20 Thread David Klann
Hi Tim,

On 4/20/19 1:58 PM, Tim Camp wrote:
> 
> 
> configure halts on this error
> configure: error: *** runuser(1) not found ***
> 
> The only way to get configure to not fail is to run as root.
> 

Debian _may_ exclude /sbin from $PATH by default for non-root users? Run
"echo $PATH" to see whether /sbin is included. Add it if not with
"export PATH=/sbin:$PATH"

Here are some details from a Debian 9 system I have (commands run as
"root"; apologies for the text wrap):

# which runuser
/sbin/runuser

# dpkg-query --search /sbin/runuser
util-linux: /sbin/runuser

# dpkg -l util-linux
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version  Architecture  Description
+++--=-=
ii  util-linux   2.29.2-1+deb9u1  amd64   miscellaneous system utilities

Hope this helps!

  ~David Klann

> Tim Camp
> WZEW-FM



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Missing Groups in Airplay

2019-04-21 Thread David Klann
Hi David,

On 4/21/19 1:24 PM, David Garwood wrote:
> Hi
> 
> I am very new to Rivendell so please excuse me if this question appears
> a bit stupid.
> 
> I have been loading music carts using RDLibrary and have been editing
> the various markers in two Groups - "Drive" and "Feelgood".
> 
> I have also been experimenting with Clocks and Grids and have managed to
> create two clocks, placed them in a grid and they appear to work fine.
> However, when using RDAirplay (either when a clock is active or not) and
> I wish to Add a cart the two groups do not appear in the drop down list.
> Neither do the carts in those groups appear in the "All" Section.
> 
> The two groups do appear in all other modules except RDLogEdit where I
> get a message "This log contains one or more carts that are invalid for
> the selected service" Could that be the issue?
> 
> Any help much appreciated

I'll answer your not-stupid question (there is no such thing as a stupid
question!) with another stupid question. :)

Did you enable your service(s) for those groups in RDAdmin->Manage
Groups? The default service shipped with stock Rivendell systems is
"Production". If you created a new service you'll need to enable it for
your groups.

I'm not sure what else to offer. What version of Rivendell on what OS
are you using?

  ~David Klann



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Ubuntu Rivendell 3.0.0beta00 daemons running as root

2019-06-12 Thread David Klann
On 6/12/19 7:55 PM, jorge soto wrote:
> I too ran into this problem, where can I find a workaround? I need to
> have Rivendell and Jack working together but it's not happening.
>

I have a workstation running in my lab with the latest git master branch
(pulled today) with JACK in the mix.

I start the JACK daemon and associated JACK clients from the workstation
configuration (RDAdmin->Manage Hosts->[hostname]->JACK Settings). I
start jackd with the dummy device and add all the audio devices as JACK
clients (that is, calling scripts from the JACK_CLIENTS table). I also
launch liquidsoap as a JACK client so it can feed an icecast server. One
could also launch GlassCoder in this manner. It seems to work...

I have been able to start all the service daemons and jackd as the user
of my choice (other than root) in previous versions of Rivendell. This
is not feasible in 3.X with rdservice(8) because of the way in which
that "super server" manages the other service daemons. One *could* pull
rdservice(8) out of the mix and start the Rivendell daemons on their own
with systemd, but that's currently not "The Rivendell Way" (and I've
grown to like rdservice).

The downside to running everything as Linux user root is that in order
to use any GUI-based JACK apps (e.g., qjackctl) you need to run them as
root as well. Not the most convenient, but it is doable with proper
setup of /etc/sudoers.

As Fred has pointed out before, this is a mis-feature in the way in
which jackd is designed. There are work-arounds, but they all seem to
have their own issues.

I would be happy to get into more details of my 3.0.0rc02 setup if
anyone would like.

  ~David Klann



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] PCI Audio Science Cards and HPI Drivers?

2019-06-16 Thread David Klann
Hey All!

On 6/16/19 7:14 PM, Rob Landry wrote:
> On Sun, 16 Jun 2019, Bill Putney wrote:
> 
>> 1) Has anyone been successful using a PCIe bus to PCI adapter with an
>> ASI 65xx series audio card? The ASI 6520 card is PCI and the
>> motherboard only has PCIe slots.
> 
> I didn't know such a tting existed. How does it physically fit in the
> available space ona typical PC?
> 

Just so I can add a bit to the discussion before I hijack this thread...

Here's an example of a PCIe to PCI adapter:
https://www.newegg.com/p/N82E16815158165

> ...
> 
> Lately, I am finding ASI cards to be a major pain in the butt. There are
> some older cards that aren't supported by newer drivers, and some
> drivers require a minimum Linux kernel version that rules out CentOS 6,
> which is what I have to run on one particular system because it has a
> piece of hardware that more recent OS versions don't support. I am
> starting to wonder if ASI is more trouble than it's worth.
> 

Lately, I am finding that balanced analog audio cards are a pain in the
butt in general. Keeping up with PC motherboard connections (mini PCIe?)
and mismatched bus connector options on balanced audio cards seems like
a full time job in and of itself. Not to mention the cost of balanced
audio cards.

I'm starting to think that a 100% digital audio chain is the best way to
go. And with clients for whom cost is a factor (most of my Community
Radio clients), just go with the on-board audio and use something like
an Angry Audio Balancing Gaget
(https://angryaudio.com/balancinggadgets/) or the Henry Engineering
equivalent. And there is always the plethora of USB audio devices. It
simply seems clumsy to be using these external devices just to get a
clean, multi-channel audio signal...

We now return you to this thread, already in progress

  ~David Klann




signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Setting up a VPN

2019-06-23 Thread David Klann
Hello Gabriele and Robert,

Gabriele, I think (from Robert's awesome ASCII art) that the tinc VPN is
running *on* the "master" Rivendell server. Your recommendation is
accurate if that's not the case. Is that correct Robert?

Regarding the IP address in the Rivendell configuration, my
understanding is that it doesn't really matter which IP address you use
as long as the workstations are not interacting at the "Rivendell layer"
(it's a new layer in the OSI model :). In other words, if "HTTP Xport"
and "Core Audio Engine" are both set to "localhost", _AND_ if there are
no jobs in RDCatch running "across" workstations, _AND_ if you have no
RML macro sequences using the "CC" RML, then you can safely use the
default IP address of 127.0.0.2, or any active IP address on the host.

Hope this is accurate, and that it helps!

  ~David Klann


On 6/23/19 1:53 AM, Workino wrote:
> Hello Robert,
> You can use both without any problem.
> But let me say If tinc server and master sever are in the same lan subnet you 
> don’t needed to activate a vpn also on master.  For the ports If firewall on 
> master is not configured all ports will be exposed without any restrictions. 
> 
> Why would u like to change the starting sequence?
> 
> Regards
> Gabriele
> 
> Sent from my iPhone
> 
>> On 23 Jun 2019, at 05:48, Robert Jeffares  wrote:
>>
>> Hi all,
>>
>> I want to enable a terminal at a remote site which will give a user access 
>> to RD LIBRARY; RD LOGMANAGER & EDIT with sound.
>>
>> This will enable the user to create events, clocks, grids, logs, and do 
>> voice tracking.
>>
>> Have gigabit fibre at each end.
>>
>> I installed tinc on a server [CentOS -7] and on a master running CentOS 6 
>> and 2.19.3 which is also running on the client.
>>
>> master --[655]tinc-[655]--/internet/[655]-client
>>
>> I can ping the master and the tinc server from the client using the tinc 
>> subnet  12ms seems OK
>>
>> [still have hair but it's grayer; copying keys proved a challenge]
>>
>> Each end needs to be set up so tinc comes up first then MySQL then RD which 
>> should be a matter of coding a service; after networking; before RD.
>>
>> I am assuming I have to make mysql available to the client by granting 
>> access to port 3306 as if it were a local client.
>>
>> The tinc platform will keep it secure.
>>
>> I also have to mount /var/snd which works in that I can see the audio in RD 
>> library and audio plays on the client.
>>
>> My confusion comes when the master has an IP on the local network and a tinc 
>> IP [10.x.x.x] on tun0  as does the client.
>>
>> Which IP do I use in the RD admin > Manage hosts for the client?
>>
>> All that said it seems to be working, including rip CD.
>>
>> regards
>>
>> Robert Jeffares
>>
>>
>>
>> ___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 



signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RD Catch

2019-06-29 Thread David Klann
Greetings Robert,

On 6/29/19 7:10 PM, Robert Jeffares wrote:
> Hi all,
> 
> where does RDCATCH store the events?
> 

I believe you are looking for the database table named RECORDINGS. Maybe
not all that intuituitive a table name, but there you go.

Hope  this helps you!

  ~David Klann





signature.asc
Description: OpenPGP digital signature
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Rivendell Wiki Update

2019-07-30 Thread David Klann

Hi All,

Several people have asked me about the significant changes introduced 
with Rivendell version 3. I added a wiki page covering the obvious 
changes, both visible and behind the scenes. Please update it with 
corrections, improvements and additions!


http://wiki.rivendellaudio.org/index.php/Notable_Differences_Between_Version_2_And_Version_3

Thanks!

  ~David Klann
   Broadcast Tool & Die
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Sound cards

2019-08-21 Thread David Klann
I'm with you on this Rob. It's frustrating!

It seems like the combination of 1) "reasonably priced", 2) "industrial
grade", and 3) "works with Linux" audio devices have become unicorns.

I used to install the Digigram VX222 (PCI) and VX222e (PCIe), but Digigram
recently made a hardware modification that has rendered this card unusable on
Linux (even with a vendor-provided, updated driver).

The most significant problem I have experienced is finding an audio device
with balanced inputs and outputs. My current solution, though less than ideal,
is the ASUS Xonar devices and a matchbox (StudioHub, Henry Engineering, Angry
Audio, etc.) to handle the balanced/unbalanced conversion.

What are others doing?

  ~David Klann



On Wed, 2019-08-21 at 08:52 -0400, Rob Landry wrote:
> On Monday morning a direct lightning hit to the building where two of our 
> stations have their studios took out several thousand dollars worth of 
> equipment, including the ASI sound cards in the Rivendell playout systems 
> for the two stations. The exact card we were using is no longer in 
> production, so we ordered two new ASI5810's. When we put them in, they 
> weren't recognized by CentOS 6 and Rivendell couldn't see them.
> 
> The 5810's require at least version 4.18 of the asihpi driver, and the 
> version we had been using was 4.16. Newer versions will not install on 
> CentOS 6.
> 
> On CentOS 7 at a different station, I was able to install one of the newer 
> drivers but Rivendell wouldn't see it.
> 
> While I have not yet tried to use a 5810 under Debian 9, I think ASI and I 
> have come to the parting of the ways. It's clear from the disappearance of 
> cards such as the M-Audio Delta and Echo MIA from the marketplace that the 
> industry is moving way from analog audio, and those of us who still 
> maintain analog plants may have to rely on USB adapters and external 
> matchboxes (which install without trouble on pretty much anything).
> 
> What sound cards are y'all using for new Rivendell systems these days?
> 
> 
> Rob
> 
> -- 
> Сквозь грозы сияло нам солнце свободы
> И Linus великий нам путь озарил;
> Нас вырастил Stallman на верность народу,
> На труд и на подвиги нас вдохновил.
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev



signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Playback Problem

2019-08-21 Thread David Klann
David,

Type this command in a terminal window on the server:

sudo chmod a+rx /var/snd

and see if you can play audio on the clients. If not, you may also need to run
this command on the server:

sudo find /var/snd -type f -exec chmod a+r '{}' ';'

(Best to copy and paste that command into the terminal window to get the
proper quote symbols and spacing.)

Hope this helps!

  ~David Klann

On Wed, 2019-08-21 at 21:50 +0200, David Henderson wrote:
> Of course - here are the results...
> 
> [rd@rdcl1 ~]$ ls -la /var
> total 352
> drwxr-xr-x. 24 root  root4096 Jun 11  2018 .
> dr-xr-xr-x. 25 root  root4096 Aug 21 20:18 ..
> drwxr-xr-x.  2 root  root4096 Mar 22  2017 account
> drwxr-xr-x. 15 root  root4096 Jun 11  2018 cache
> drwxr-xr-x.  2 root  root4096 Aug 16 19:47 crash
> drwxr-xr-x.  2 root  root4096 Nov 22  2013 cvs
> drwxr-xr-x.  3 root  root4096 Jun 11  2018 db
> drwxr-xr-x.  3 root  root4096 Jun 11  2018 empty
> drwxr-xr-x.  2 root  root4096 Sep 23  2011 games
> drwxrwx--T.  2 root  gdm 4096 Jun 19  2018 gdm
> drwxr-xr-x. 39 root  root4096 Aug 18 18:51 lib
> drwxr-xr-x.  2 root  root4096 Sep 23  2011 local
> drwxrwxr-x.  5 root  lock4096 Aug 21 20:18 lock
> drwxr-xr-x. 13 root  root4096 Aug 21 20:19 log
> lrwxrwxrwx.  1 root  root  10 Jun 11  2018 mail -> spool/mail
> drwxr-xr-x.  2 root  root4096 Sep 23  2011 nis
> drwxr-xr-x.  2 root  root4096 Sep 23  2011 opt
> drwxr-xr-x.  2 root  root4096 Sep 23  2011 preserve
> drwxr-xr-x. 31 root  root4096 Aug 21 20:19 run
> drwxrwx---   4 rivendell rivendell 262144 Aug 18 23:50 snd
> drwxr-xr-x. 14 root  root4096 Jun 11  2018 spool
> drwxrwxrwt.  2 root  root4096 Aug 16 19:40 tmp
> drwxr-xr-x.  2 root  root4096 Jun 21 19:06 win32
> drwxr-xr-x.  7 root  root4096 Jun 19  2018 www
> drwxr-xr-x.  3 root  root4096 Jun 11  2018 yp
> [rd@rdcl1 ~]$
> 
> 
> 
> 
> 
> > Sent: Wednesday, August 21, 2019 at 8:41 PM
> > From: "Workino" 
> > To: "David Henderson" 
> > Cc: rivendell-dev@lists.rivendellaudio.org
> > Subject: Re: [RDD] Playback Problem
> > 
> > Please send the output of ls -la /var
> > 
> > 
> > 
> > Sent from my iPhone
> > 
> > > On 21 Aug 2019, at 21:24, David Henderson 
> > > wrote:
> > > 
> > > Thanks again for the help :)
> > > 
> > > Seems it is permissions related as the server displays the contents of
> > > the folder no problem, but the clients don't:
> > > 
> > > 
> > > [rd@rdcl1 ~]$ df -h
> > > Filesystem   Size  Used Avail Use% Mounted on
> > > /dev/sda1 24G  3.8G   19G  17% /
> > > tmpfs1.7G   76K  1.7G   1% /dev/shm
> > > /dev/sda3115G   92M  109G   1% /home
> > > 10.0.0.130:/var/snd  1.8T  261G  1.5T  15% /var/snd
> > > [rd@rdcl1 ~]$ ls /var/snd
> > > ls: cannot open directory /var/snd: Permission denied
> > > [rd@rdcl1 ~]$
> > > 
> > > What's the best way to fix this?
> > > 
> > > 
> > > 
> > > 
> > > > Sent: Wednesday, August 21, 2019 at 4:13 PM
> > > > From: "Fred Gleason" 
> > > > To: "Gabriele Fergola" , "David Henderson" <
> > > > david.hender...@gmx.co.uk>
> > > > Cc: Rivendell-Dev 
> > > > Subject: Re: [RDD] Playback Problem
> > > > 
> > > > > On Wed, 2019-08-21 at 12:26 +0200, Gabriele Fergola wrote:
> > > > > in sheel try to simply do an "ls /var/snd" (without quote)
> > > > > or you can just execute "mount |grep snd" but in this case, u see
> > > > > only if it is mounted but not if it is accessible
> > > > 
> > > > You can also get a list of all mounted filesystems by doing:
> > > > 
> > > >df -h
> > > > 
> > > > You should see an entry in the resulting list that looks something
> > > > like:
> > > > 
> > > > w.x.y.z:/var/snd980G   12G 908M   2% /var/snd
> > > > 
> > > > Cheers!
> > > > 
> > > > 
> > > > > 
> > > > > -|
> > > > > Frederick F. Gleason, Jr. | Chief
> > >

Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Klann
On Mon, 2019-08-26 at 22:55 +1200, Robert Jeffares wrote:
> David,
> 
> after you esc out of alsamixer you run # alsactl store [x]
> 
> where x is the number of your sound card like 0,1
> 
> There are some combinations of CentOS 6 where you have to run alsactl 
> restore on boot using cron.
> 
> using yum to update or reinstall alsa and alsa-utils may solve it
> 
> regards
> 
> Robert
> 

Good suggestions Robert.

David, you can use the sudo(1) command to run the alsactl(1) command as the
"super-user" (aka "root"). Use the man(1) command (e.g.: man sudo) to learn
more about temporarily escalating your privileges. Basically, it allows you to
run individual commands with "root" privileges.

I have also found it helpful on some systems to use extended file attributes
to make the ALSA settings file "immutable". After making sure you have the
settings the way you want them run

sudo chattr +i /var/lib/alsa/asound.state

Then use

sudo chattr -i /var/lib/alsa/asound.state

to make the file "mutable" again (if your audio environment changes (external
to the computer), or if you replace the audio card in the computer).

But ... Maybe this unnecessarily complicates things...

  ~David Klann



signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Klann

On Mon, 2019-08-26 at 22:20 +0200, David Henderson wrote:
> Thanks for the help David and Robert,
> 
> I'm still having no joy - I've tried the sudo chattr + command which does
> indeed "lock" the file (it shows a little padlock on the top right of the
> file icon), however it seems to be ignored and the default settings are
> applied.
> 
> The sudo command doesn't work for me when logged in as RD - I get an error
> message about RD is not in the sudoer's file - this incident will be
> reported, so I have to switch user and login as root - whether this is to do
> with the issue, I don't know...
> 

Hm... I may be recalling incorrectly, but I thought user 'rd' was already
a member of the appropriate group to enable use of sudo. Here's how to do
that:

su - root -c "usermod -a -G wheel rd"

(copy/paste for best results) You'll need to enter the "root" password for
this to work. If you get an error, simply log out of your "rd" session and log
in as "root", and execute just the part of the above command that's inside the
double quotes.

This adds the user "rd" to the sudo-able group "wheel" on CentOS. You'll need
to log out of your current "rd" session (if applicable) and log back in.

I can't really explain the mysterious ALSA settings situation without more
information. Feel free to email me directly and I'll summarize to the list as
appropriate.

Hope this helps!

  ~David
   Broadcast Tool & Die



signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audacity on a Rivendell setup

2019-10-18 Thread David Klann
On Fri, 2019-10-18 at 11:58 -0400, al davis wrote:
> On Fri, 18 Oct 2019 15:44:21 +
> Mark Murdock  wrote:
> > However for production we use Audacity, and when I start Audacity it does
> > not recognize the sound card, and thus does not work. If I go to Help -
> > Audio Device Info, Audacity says "No Devices Found." Any ideas?
> 
> Rivendell takes over a sound card, so you can't use it for anything
> else at the same time.  This is by design.
> 

This is true. The other option is to use the audio routing app JACK (
https://jackaudio.org/). JACK enables sharing of audio resources between
higher-level applications (and is supported in Rivendell).

The Rivendell wiki has some information about implementing JACK on a Rivendell
computer. In my opinion the current best practice is to let Rivendell start
the JACK service daemon and use the JACK Clients entries in RDAdmin->Manage
Hosts->->JACK Settings.

One significant caveat when using JACK and Rivendell 3.X is that jackd(1) MUST
run as Linux user `root`. Previous Rivendell versions could work around this
constraint, but it's not possible without code changes in Rivendell 3.X. This
means that all applications using JACK must also run as Linux user `root`.
This, to me, is another significant reason to use Rivendell computers only for
Rivendell applications, and use different computers for general audio
applications.

-- 
  ~David Klann
   broadcasttool.com
   Broadcast Tool & Die ∴ The Power of &



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audacity on a Rivendell setup

2019-10-26 Thread David Klann
Hi Aaron,

On Sat, 2019-10-26 at 19:28 +0100, you wrote:
> One significant caveat when using JACK and Rivendell 3.X is that jackd(1)
> MUST
> 
> > run as Linux user `root`. Previous Rivendell versions could work around
> > this
> > constraint, but it's not possible without code changes in Rivendell 3.X.
> > This
> > means that all applications using JACK must also run as Linux user `root`.
> > This, to me, is another significant reason to use Rivendell computers only
> > for
> > Rivendell applications, and use different computers for general audio
> > applications.
> 
> I have a work around for this. I run jack in promiscuous mode as the rd
> user and keep the rd daemons running as root (I found to not run them as
> root breaks the RN macro).
> 

What is this promiscuous mode you speak of?!?!? Looking thru the jack2 commit
logs, I see that it has been part of JACK since Oct 2014 or longer
("promiscuous-v2" committed just before the tag "1.9.12" was added)?!

This is awesome! It appears that version 1.9.12 is shipped with CentOS 8, so
with any luck and some time maybe this long-standing JACK issue with perms and
users will be put to bed.

Thanks for this update Aaron.

Fred, do you have thoughts on this?

Thanks!

  ~David Klann

> I have this working for a client using centos 7 with Fred’s repo. I had to
> rebuild the jack rpm to the latest version to get promiscuous support. I
> also had to rebuild pulseaudio to include jack support so I could use
> linphone on the same setup.
> 
> In then have a systemd script which starts jack as the user.
> 




signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDImport and Disk Space

2019-12-05 Thread David Klann
Hi Nathaniel,

On Thu, 2019-12-05 at 11:59 -0600, nathaniel.ste...@icloud.com wrote:
> Doeas anyone here have any opinions on ZFS? Does anyone host their /var/snd
> on a NAS? I’ve been looking at building a  freenas system to use around the
> office, which use ZFS.
> 

I can imagine many here have opinions on ZFS... I know I do: I **love** ZFS! I
just installed Ubuntu 19.10 on a spare laptop (an old MacBook) and chose the
experimental ZFS option on the disk partitioning page. It's been unequivocally
awesome so far (about a week).

> 
> In the past I used two Rivendell servers, with one rsyncing to the other
> nightly, and backing up the db nightly. I also rsynced to a NAS appliance,
> so the data lived in three places.
> 

I have about 8 years of experience with /var/snd on FreeNAS at WDRT. The
FreeNAS is sharing /var/snd via NFS (we named it the PIT: "practically
infinite terabytes" back when disks were a bit pricier). We have replaced most
of the drives in the 24-drive enclosure over the years, and have not had any
loss of data. /var/snd is being served to four Rivendell machines, as well as
other general-purpose "shares" for other things (both CIFS/SMB and NFS). We're
backing up the primary FreeNAS to a "secondary" FreeNAS using the built-in ZFS
snapshot and replication tools.

FreeNAS has gotten easier to use over the years, and the developers have added
some nice features (like hosting virtual machines).

I highly recommend using ZFS as the back-end storage file system whenever
possible. And FreeNAS comes along with that recommendation too.


Hope this helps!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] alsa-firmware problem

2019-12-09 Thread David Klann
Hey Rob,

More details: you *could* do:

  sudo rpm --erase --no-deps hpklinux

I'm not completely sure how CentOS will behave when you next do a "yum
upgrade" and there is also a Rivendell upgrade. I believe yum will simply re-
install the hpklinux package, and you'll have to remove it again. Or the alsa-
firmware package will conflict with the upgrade and you'll have to do
something like "yum upgrade --skip-broken" to get it to install. Either way,
it will probably require on-going attention over the life of the system...

Hope this helps!

  ~David Klann


On Mon, 2019-12-09 at 15:54 -0500, Rob Landry wrote:
> OK, so I've got RD 2.19.3 running via the standard CentOS 7 install on a 
> machine I am maintaining as a backup.
> 
> The M-Audio sound card it's been running appears to have become faulty; it 
> no longer generates any output.
> 
> So, I want to replace it with an Echo MIA Midi card I've had on the shelf, 
> but that card requires the alsa-firmware package, which CentOS won't let 
> me install, claiming that it conflicts with hpklinux.
> 
> Now, I don't need hpklinux because this machine doesn't have an 
> AudioScience card, but if I try to remove it, it threatens to remove 
> Rivendell too.
> 
> Does anyone know of an easier fix than recompiling Rivendell from source?
> 
> 
> Rob
> 
> -- 
> Сквозь грозы сияло нам солнце свободы
> И Linus великий нам путь озарил;
> Нас вырастил Stallman на верность народу,
> На труд и на подвиги нас вдохновил.
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] alsa-firmware problem

2019-12-12 Thread David Klann
Dear Fred (and List),

On Thu, 2019-12-12 at 14:02 -0500, Fred Gleason wrote:
> On Dec 9, 2019, at 18:42, David Klann  wrote:
> 
> > More details: you *could* do:
> > 
> >  sudo rpm --erase --no-deps hpklinux
> > 
> > I'm not completely sure how CentOS will behave when you next do a "yum
> > upgrade" and there is also a Rivendell upgrade. I believe yum will simply
> > re-
> > install the hpklinux package, and you'll have to remove it again. Or the
> > alsa-
> > firmware package will conflict with the upgrade and you'll have to do
> > something like "yum upgrade --skip-broken" to get it to install. Either
> > way,
> > it will probably require on-going attention over the life of the system...
> 
> You do *not* want to do this! In addition to being just a Really Bad Idea in
> general, it will break Rivendell. This is because the ‘hpklinux’ package
> provides user-space library components in addition to the kernel driver;
> removing those will mean that caed(8) will have unsatisfied link
> dependencies and hence be unable to run. This true whether there is an ASI
> card actually installed or not.
> 
> The package dependency system is there for a reason. You should never bypass
> it on a production system. Even in an ‘experimental’ setup, you have to very
> careful. It’s easy to remove something essential inadvertently and wind up
> with a completely non-functional system! It can be near-impossible to
> recover from such a situation short of completely reinstalling the OS.
> 
> Cheers!
> 

Yikes! I now see what you mean. /lib64/libhpi.so.10 is a dynamically loaded
library on which caed and ripcd depend. Thank you for correcting me!

I'll refrain from such "shortcut" suggestions in the future!

Best regards,

  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDCatch URL Invalid

2019-12-23 Thread David Klann


On Mon, 2019-12-23 at 11:53 -0500, Fred Gleason wrote:
> On Dec 20, 2019, at 20:06, Robert Jeffares 
> wrote:
> 
> > I have found that wildcards don't always work in RDCatch
> 
> Hi Robert:
> 
> When this occurs, please consider going to:
> 
>   https://github.com/ElvishArtisan/rivendell/issues <
> https://github.com/ElvishArtisan/rivendell/issues>
> 
> and opening an issue to report it. Hopefully, we can make the need for add-
> on scripts go away!
> 
> 

Hi Fred,

Are you saying that RDCatch might someday be capable of downloading arbitrary
audio files using something like RSS links? I ask because I've written a
Rivendell add-on that allows users to specify a bunch of RSS feeds to watch,
and (using cron) poll those URLs for new content (usually hourly), and
download the audio files to matching Rivendell dropboxes. I've been recently
thinking about how this might be more tightly integrated into Rivendell
proper. The most likely place seems to be RDCatch.

I'm not asking for you to do this (though I *will* go add an enhancement
request to the github Issues), more looking for input on where and how it
might be implemented.

Thanks!

  ~David


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RSS via dropbox [WAS: RDCatch URL Invalid]

2020-01-01 Thread David Klann

On Mon, 2019-12-23 at 13:18 -0500, Fred Gleason wrote:
> On Dec 23, 2019, at 12:02, David Klann  wrote:
> 
> > Are you saying that RDCatch might someday be capable of downloading
> > arbitrary
> > audio files using something like RSS links? I ask because I've written a
> > Rivendell add-on that allows users to specify a bunch of RSS feeds to
> > watch,
> > and (using cron) poll those URLs for new content (usually hourly), and
> > download the audio files to matching Rivendell dropboxes. I've been
> > recently
> > thinking about how this might be more tightly integrated into Rivendell
> > proper. The most likely place seems to be RDCatch.
> 
> It’s unlikely that this functionality will ever exist in rdcatch(1), mostly
> because that module has a baked-in assumption that all audio operations are
> ‘one-to-one’ —e.g. a Download comes from exactly one source file and is
> transferred to exactly one cart/cut destination.
> 
> However, this sort of thing could fit well as a dropbox capability, as
> dropboxes *do* know how to deal with a ‘many-to-many’ world. In this case,
> instead of a Path Spec, we could take a URL that references an RSS object.
> Disposition of the referenced RSS enclosures could be handled just like any
> other dropbox setup.
> 
> Anything else I’m missing?
> 

Catching up and cleaning out my inbox for the new year...

Good point about incorporating such behavior into dropboxes! Maybe not missing
things, but ...

During a few years' experience with fetching audio files using RSS feeds, it
has become clear to me that the data behind the links do not always represent
reality. In those cases it's good to have thorough logging for
troubleshooting.

Thanks for your thoughts, and for your years of hard work keeping Rivendell
(and other radio station software) up to date and Open!

Best,

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] WebAPI and its bindings [WAS: update bash script (rdairplay start) from 2.x to 3.x]

2020-01-17 Thread David Klann
On Fri, 2020-01-17 at 10:34 -0700, John Boles wrote:
> My vote would be for Python 3
> 
> John
> 

Hear! Hear! +1 for Python3

Thanks!

  ~David Klann


> On Fri, Jan 17, 2020 at 10:19 AM Fred Gleason 
> wrote:
> 
> > On Jan 16, 2020, at 10:04, drew Roberts  wrote:
> > 
> > OK, let's put the call out. Does anyone know of an existing api that would
> > allow us to solve the problem at hand? If not, could one be created
> > without
> > too much trouble?
> > 
> > 
> > Todd has already pointed out the RivWebCApi. That’s written in ANSI C, and
> > so should cover that family of languages (C, C++, C#, etc, etc).
> > 
> > C and friends are not the friendliest of languages to work with though.
> > I’ve been thinking about adding a Python binding.
> > What’s your target implementation language?
> > 
> > Cheers!
> > 



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Troubleshoot log chaining issues v3.x

2020-01-21 Thread David Klann
Hey drew,

On Mon, 2020-01-20 at 18:02 -0500, drew Roberts wrote:
> I am trying to help someone get 3.x up and running properly.
> 
> This is my first working exposure to 3.x so I am on a bit of a learning
> curve.
> 
> The latest issue is that for the last couple of nights, the log chain does
> not seem to have worked.
> 
> rdlogmanager shows a log chain as a segue at the end of yesterday's log.
> 
> there are operations log files in /var/log/rivendell...
> 
> what words/strings would I give to grep in trying to look for helpful
> evidence as to what may be going on? Are these the correct logs to go
> searching in or are there others I need to look in?
> 

Here's what I see on CentOS 7 and Rivendell 3.2.0 with the command "sudo
journalctl --since '2020-01-20 23:45'"

Jan 20 23:50:44 rd01.omm rdairplay[1960]: log engine: chained to log: Line:
586  Log: A20200121

That line contains several variable items that will not match any other
system, so here's what I would do to search for the chain event:

sudo journalctl -b _COMM=rdairplay | grep chained

You should see similar entries in /var/log/messages*. I do not see anything
similar in the files in /var/log/rivendell.

Hope this helps!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Report format

2020-01-24 Thread David Klann
Yes! +1 for custom reports!

I have written several "reports" over the years. These are scripts that use
the web API whenever possible, and direct database queries when the API is
missing an "interface" (e.g., calls to the CLOCKS and CLOCK_LINES tables, or
the ELR_LINES table).

Thanks Fred!

  ~David Klann

On Fri, 2020-01-24 at 10:43 -0500, Fred Gleason wrote:
> On Jan 23, 2020, at 04:05, Mircea Paun  wrote:
> 
> > Is there a wiki somewhere to customize and add a custom report? either by
> > modifying sources and recompiling?
> 
> As of right now, you’d need to modify the sources and recompile. Not an
> ideal situation.
> 
> What I’m considering right now is adding a facility that would allow sites
> to add custom reports by means of a Python module (similar to the existing
> PyPAD system). Would this be of use to anyone?
> 
> Cheers!
> 
> 
> > -|
> > Frederick F. Gleason, Jr. | Chief Developer |
> >   | Paravel Systems |
> > -|
> > A room without books is like a body without a soul. |
> > |
> > -- Cicero   |
> > -|
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Frequent Failure Of NFS Mount During Boot

2020-01-26 Thread David Klann
Hey Rich,
On Sun, 2020-01-26 at 09:07 -0600, Steve wrote:
> Hi Rich,
> 
> Have you tried adding _netdev to the mount options in /etc/fstab for 
> this mount point?  The device should then be forced to wait for network 
> before mounting.  Might need to add a timeout too, though I don't use 
> one in our environment.
> 
> The minimal one that I have in /etc/fstab is shown here, but I bet there are
> lots of 
> variants:
> 
> 172.16.1.2:/var/snd /var/snd nfs nfsvers=3,_netdev 0 0
> 

In the spirit of "lots of mount option variants", I suggest trying the option
"x-systemd.automount". Here's my complete entry in /etc/fstab (watch the line-
wrap):

10.50.1.20:/mnt/stack2/audio-library/var/snd nfs _netdev,x-
systemd.automount,auto,nodev,nosuid,noexec,intr 0 0

As I understand it, the x-systemd.automount option tells systemd to
automatically mount this file system whenever a file in the path /var/snd is
referenced. This has worked for me at 2 different installations, one using
FreeNAS as the NFS file server, the other with a CentOS 7 system as the NFS
file server. Both "clients" are CentOS 7.

Hope this helps!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Wheatstone / audioarts AoIP & Rivendell

2020-01-27 Thread David Klann
On Mon, 2020-01-27 at 11:14 -0500, Fred Gleason wrote:
> On Jan 27, 2020, at 08:09, jm  wrote:
> 
> > quiet a simple question : does anybody have experience with rivendell et
> > and wheatstone mixing engine ?
> > 
> > I red some stuff about Rivendell and Wheatnet-IP but nothing really clear
> > about it.
> 
> Rivendell currently (v2.19.3 and v3.2.1) has support for LIO and SLIO
> devices on WheatNet. However, direct support for WheatNet audio streams does
> not exist. (There have been persistent rumors about WheatStone developing a
> Linux driver for such, but as of this writing nothing definitive has been
> announced).
> 

Would love to see a Linux driver for Wheatnet. Fred (or anyone else on the
list), do you have an email address of someone at Wheatstone I (we) could send
a "+1" in support of this?

I can attest to the workingness of the LIO and SLIO support for WheatNet in
Rivendell.

Thanks!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Possible Bug in 3.2.0: Missing Progress Bar on RDLibrary Import

2020-01-29 Thread David Klann
Has anyone else seen this behavior?

Previously, when importing audio using RDLibrary, the user was presented with
a progress bar giving feedback on the progress of the import. With 3.2.0 at
several sites we see no progress bar. Audio successfully imports, but it's a
bit disconcerting when importing long selections.

A cursory glance through the source code in rdlibrary shows references to
"progress", but I haven't dug any deeper.

Thoughts?

-- 
  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] last music import report

2020-02-12 Thread David Klann
Hi Mircea,
On Wed, 2020-02-12 at 06:26 -0500, you wrote:
> Hi!
> Is there a way to handle with this ?
> I mean, If you import 30 songs via rdimport, in the MUSIC group,
> and you want .csv file with only these 30 songs, to import in M1 or
> Powergold, how do you proceed?
> My workaround is to go through an intermediate group, say MUSICADD and then
> move them into MUSIC.
> Somebody else ?
> 

I actually prefer this workflow (import audio tracks into a "staging" group,
then manually move to MUSIC [or wherever]). It gives the "music director" a
chance to fine-tune markers (especially Segue), double check metadata, and
give one final check for airplay suitability. Importing directly into MUSIC
makes all this a bit more ... I guess, dicey?

But I am a technician who favors "database cleanliness" over lots of other
things, so maybe I'm not the best judge of day-to-day radio station workflows.
:)

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] On screen keyboard

2020-02-17 Thread David Klann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi Mike,

On Mon, 2020-02-17 at 14:27 +, you wrote:
> Further to this I tried to just install using yum install xvkbd and it works
> if I run the startup command in a terminal but not if I put them in  a
> macro.
> 
> xvkbd -always-on-top -no-keypad -no-repeat -no-jump-pointer -geometry
> 630x185+190+000 -minimizable &!   Works OK in terminal
> 
> RN xvkbd -always-on-top -no-keypad -no-repeat -no-jump-pointer -geometry
> 630x185+190+000 -minimizable &!Doesn't work in Macro
> 

This will be a bit dicey with Rivendell if you're running version 3.X. First,
make sure to check /etc/rd.conf for the settings RnRmlOwner and RnRmlGroup.
Your RN commands will be run as that user/group combination and will thus need
access to your X Windows session. The default (rivendell/rivendell) probably
does not have that access. Consider using either xauth(1) or xhost(1) to grant
the user "rivendell" access to X Windows sessions owned by the user as which
you're logged in (probably "rd" if you did a "by-the-book" install).

Hope this helps!

  ~David Klann

-BEGIN PGP SIGNATURE-

iHUEARYIAB0WIQTCAQ/Y/BfjYtO+Po2/XnPyBfsBeAUCXkqlvAAKCRC/XnPyBfsB
eL4PAP4sV3YkWC4yArDql1Ox7KtRX9w7qbJY6Zs5NTFVa2CZEgD+My3j/OlYOngY
Hy0nBe1VIJjxKGTwUFu6ssEVIRlGsA8=
=p5Xy
-END PGP SIGNATURE-

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Big Book of Rivendell Cookbook?

2020-02-27 Thread David Klann
Greetings Frank, and others!

On Wed, 2020-02-26 at 21:12 -0600, you wrote:
> Rob,
> 
> ... [background info snipped]
> 
> The motivating factor behind considering a switch to Rivendell is the utter
> madness induced by Windows 10 updates over which we have little control. Our
> Simians ran fine on XP; were stable running 7; but are now falling apart on
> 10. Factory fixes include obscure registry tweaks on individual machines
> following Windows updates. In the meantime, too much dead air and 3 am
> calls.
> 

I LOVE your idea of the Big Book of Rivendell Cookbook. I've taken the liberty
to start such a section on the Rivendell Wiki: 
http://wiki.rivendellaudio.org/index.php/Cookbook

It's just a start, and I intend on continuing the work on it (I've been
contemplating writing such a book for a couple of years...). I look forward to
seeing contributions from others in the community!

> Even in the midst of all this insanity, zombie-eyed staff are embracing the
> devil they know rather than the one they don’t. It’s going to be a hard sell
> to switch automation systems for a third time; it took ten years for them to
> adjust to this one.
> 
> Frank
> 

As I wrote in the nascent "first chapter" of the Cookbook, adopting a new
automation system is like rebuilding after a flood or a fire. As you no doubt
know, you definitely want to get everyone on board before taking on such a
monumental task.

I'm excited and tickled to be part of this active and passionate community of
Rivendell users and developers!

Best,

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Big Book of Rivendell Cookbook?

2020-02-27 Thread David Klann
Hey drew,

On Thu, 2020-02-27 at 13:07 -0500, you wrote:
> 
> I suggest the addition of:
> 
> — Party at the Beach: Live remote via IP with (openvpn and ((openob) or
> (icecast and liquidsoap)).
> 
> Fixed a spelling error from an earlier post and added in openvpn which may
> be on the way out soon enough...
> 
> I will try and run down my access to the wiki and start in on the vnc
> remote control chapter soon.
> 

Good point(s)! I've added the remote section to the table of contents...

Thanks!

  ~David



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] System Logging (was 3.x and asi cards.)

2020-03-01 Thread David Klann
drew & Frank,

On Sun, 2020-03-01 at 09:53 -0500, drew Roberts wrote:
> Frank,
> 
> On Sun, Mar 1, 2020 at 8:45 AM Frank Christel  wrote:
>  [ MP2 file discussion cut...]
> 
> > Does Rivendell maintain an error log? I couldn’t locate it or generate one
> > through the Reports module.
> > 
> 

On all recent Linux distributions, Rivendell uses the system journal for
logging messages. The system journal is a replacement for the thing called
syslog (which is still used on many *nix systems).

The journal is part of the system services facility called "systemd" which was
incorporated into Red Hat/CentOS starting with version 7. It has also been
part of Debian (and thus Raspbian) since (I believe) Debian version 8.

You typically use the CLI command journalctl(8) to display journal entries. I
am aware of only the app "qjournalctl" to view the system journal in a GUI
window.

The journalctl command has lots of options and takes a bit of getting used to.
Here are a few examples:

 - "sudo journalctl"  display all journal entries that the system knows about
 - "sudo journalctl -b"  display all journal entries since the system was
restarted ("b" for "booted")
 - "sudo journalctl -b _COMM=caed"  display all messages from the Rivendell
Core Audio Engine Daemon since the system was started
 - "sudo journalctl -u rivendell"  display all messages from processes that
are (or were) running as user "rivendell"
 - "sudo journalctl --since today _COMM=rdcatchd"  display all messages from
rdcatchd since midnight today
 - "sudo journalctl --follow"  display all system messages as they are logged
(use Ctrl-C to stop "following"); use this to watch messages from running apps

Be aware that by default CentOS and Debian (thus Raspbian) do NOT store
journal messages on disk. So you lose the messages every time you reboot. You
can configure the journal to save messages to disk with the following CLI
commands (in a terminal window):


  sudo mkdir /var/log/journal
  sudo systemctl restart systemd-journald


Note that this will contribute to the early "death" of the SD card in your
Raspberry Pi (due to many "disk writes"), so consider saving messages to disk
sparingly. There are configuration options to send journal messages to another
Linux system on your network; this might be a good solution for all those Pi-
based Rivendell systems.

Finally, this is all pretty well documented on the intertubes. A few searches
should lead you to comprehensive documentation about systemd and the journal.

Hope this helps!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] CentOS version -7 or -8?

2020-03-02 Thread David Klann
Hi Frank,

On Mon, 2020-03-02 at 16:39 -0600, you wrote:
> I’m creating my first Rivendell box on a Dell 780, following these
> instructions:
> 
> http://static.paravelsystems.com/rivendell-install-rd3/rivendell-install-rhel7.html
> 
> The latest version CentOS version appears to be 8. Should I use 7 instead?
> 

I recommend NOT installing CentOS 8 for Rivendell. Unless you are comfortable
downloading and compiling code directly from GitHub. And in fact there is a
lot more to it than simply compiling the source code. Rivendell needs to be
"ported" (adapted) to CentOS 8. I believe there is an open issue on the
Rivendell Github site (https://github.com/ElvishArtisan/rivendell) (oh,
because I just filed one :).

Stick with CentOS 7 for now...

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] How do I create an event with one music cart and a segue transition?

2020-03-05 Thread David Klann
Hey Folks,

tl;dr: check the default transition types in RDAirPlay and RDLogEdit.

On Thu, 2020-03-05 at 08:20 +, Andy Cooper wrote:
> Ok, It's a new day now here in the UK, so I'll be back at trying to get
> Rivendell working as a server and client setup this afternoon.
> 
> I agree entirely with Chuck. I'm also trying to make every cart have a segue
> transition to keep things nice and tight on air. But with Rivendell v3 that
> doesn't appear to be possible.
> 

I too concur with Chuck's thought -- not sure why Segue transition is an
option. Maybe simply Rivendell's historical "baggage"?

> My concern as someone looking to select a playout system for a new station,
> is that there could be other bugs in v3. So should I be installing v2, or
> even something totally different instead?
> 

Have you checked the default transition types in RDAirPlay and RDLogEdit
(RDAdmin->Manage Hosts->[hostname]->{RDLogEdit,RDAirPlay} ?

It's not clear to me that these settings have an effect on creating or editing
Events in RDLogManager (that is, I haven't looked at the source code), but I
fiddled with default settings. With the defaults set to "Segue" I can create a
new Event (on version 3.2.1) and the Segue transition was available (not
greyed out) for "Imported carts have a" setting. Then I changed the defaults
to "Play" and the "Import carts have a" setting was greyed out.

So I recommend checking and/or changing the defaults as another attempt to
make "Segue" available when creating an Event.

Hope this helps!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Big Book of Rivendell Cookbook?

2020-03-06 Thread David Klann
Hi Tim,

That's a gorgeous setup you have there (in the screenshot). I love the eye-
candy! :)

On Thu, 2020-03-05 at 20:24 -0800, Tim Požár wrote:
> I am starting a doc that looks like this may overlap the efforts here
> for the cookbook.  I am running KPEA-LP on a Raspberry Pi with a 1TB
> drive handing off of it using Rivendell and StereoTool for the audio
> processing on the same box[1]. Should I just start to add it here?
> 

It would be awesome if you contributed to the new-ish cookbook on the
Rivendell wiki. I believe Fred manages the wiki, and must approve requests for
accounts. I encourage you to request an account and post your document there.

Thanks!

  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Help wanted: Rivendell Video Playing

2020-03-06 Thread David Klann
Hi drew,

On Fri, 2020-03-06 at 15:09 -0500, drew Roberts wrote:
> Alan,
> 
> thanks for the response.
> 
> On Fri, Mar 6, 2020 at 2:32 PM Alan Smith  wrote:
> 
> > Let me throw out an alternative if it will make life a little easier:
> > 
> > OBS Studio
> > 
> 
> I already know about it. We use it already:
> 
> https://www.youtube.com/watch?v=7s61ERZ_1Yc
> 
> 

Umm... at the risk of sounding old ... Can you please explain the use case for
this? Do you want to re-create MTV? Do you want to schedule and play a
"playlist" of videos?

The youtube looks to me like just a slideshow with some animation. What am I
missing?

Thanks!

  ~David


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Big Book of Rivendell Cookbook?

2020-03-13 Thread David Klann
Hi All,

On Fri, 2020-03-13 at 15:02 -0400, Fred Gleason wrote:
> On Mar 6, 2020, at 22:16, Steve  wrote:
> 
> > The first challenge is making the cookbook canonical, as in, The One 
> > True Source for such things and then making Google or 
> > Search_Engine_Of_Choice *find* and rank the cookbook.  ...
> 
> I’m wondering if a similar sort of workflow could be achieved with the
> Cookbook —i.e. a ‘beta’ version that any registered user could freely edit,
> changes to which could then be promoted to the ‘canonical’ site upon
> approval of one of a (necessarily small) group of ‘core' documenters. FWIW,
> I would be glad to serve as part of such a group.
>  

I too would be willing and honored to be part of such a group.

Is the Wiki a suitable place to do this? Maybe something git-based (or github-
based) in order to continue with the current source code workflow?

Thanks!

  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Rivendell v3.3.0

2020-03-16 Thread David Klann
Thanks for all your hard work Fred!

On Mon, 2020-03-16 at 10:45 -0400, Fred Gleason wrote:
> On behalf of the entire Rivendell development team, I'm pleased to
> announce the availability of the next production release of the next
> major version of Rivendell, 3.3.0. Rivendell is a full-featured radio
> automation system targeted for use in professional broadcast
> environments. It is available under the GNU General Public License
> version 2.
> 

Just a reminder that I try to keep the wiki up to date with Change Summaries
when Fred announces new releases.

http://wiki.rivendellaudio.org/index.php/ChangeSummary

The summaries are somewhere between the NEWS file and the ChangeLog file; I
use ChangeLog as a starting point for the summaries. I welcome your input on
the level of detail in the Change Summary.

Thanks!

  ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] configure: error: *** LibMusicBrainz not found ***

2020-03-18 Thread David Klann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi Liviu,

You also need to install the libmusicbrainz5-devel package in order to
successfully build the source code. You'll also need libdiscid-devel. I also 
installed jansson-devel, but that may have been for something else?

Hope this helps!

  ~David Klann

On Wed, 2020-03-18 at 21:17 +, li...@lokum.ro wrote:
> Hey guys, 
> 
> trying to upgrade my git master and build/install it. 
> 
> But I get this error, even if I installed libmusicbrainz5 
> 
> any hints?
> 
> Thanks
> Liviu
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

-BEGIN PGP SIGNATURE-

iHUEARYIAB0WIQTCAQ/Y/BfjYtO+Po2/XnPyBfsBeAUCXnKkXgAKCRC/XnPyBfsB
eLqfAQCmPKAcBEyW46pP/00yyVDWNu6j0bk5Q65PUr5UMEZS/gEAtEpsnqN9f5dI
O57OuJ6/t9e6TBl//SbI5kQ7qtRM4wc=
=8etS
-END PGP SIGNATURE-

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] CentOS 7 to CentOS 8

2020-03-21 Thread David Klann

Hi Ryan,

On 3/21/20 10:02 AM, you wrote:
Would this work to update CentOS 7 to CentOS 8 with Rivendell being on 
the system?

https://www.tecmint.com/upgrade-centos-7-to-centos-8/


While these instructions may work to perform a CentOS upgrade to CentOS 
8, I expect you will then be unable to run Rivendell due to its 
dependencies. I have not attempted to follow those instructions to 
upgrade a CentOS 7 system, but I *have* attempted (unsuccessfully) to 
compile Rivendell 3 on fresh CentOS 8 virtual machine.


Not naming names, I think we are waiting for 
*one-who-is-way-smarter-than-we* to port Rivendell to CentOS 8. I also 
expect this is a non-trivial task.


  ~David Klann

--
  ~David
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Remote Access With RealVNC

2020-03-30 Thread David Klann

Hi Rich,

On 3/30/20 3:40 PM, you wrote:

Has anyone used RealVNC to access Rivendell hosts remotely?

I have it working on a test Rivendell host, but about the same time I 
developed an RdAirplay playout problem

(noted in other posting).

I want to make sure my RdAirplay playout problem was not caused by the 
installation of RealVNC.


All comments welcome - Thanks,


Since you haven't specified on which end you are using RealVNC, is it 
safe to assume you are using it on the local side?


I use x11vnc on the remote side (where the Rivendell apps are running), 
and several different VNC "viewers" on my local desktop. I've used the 
Linux-native "viewers" on my side (locally) including Remmina, Vinagre, 
and TightVNC. I have not encountered any problems with RDAirPlay or any 
of the other Rivendell apps when using a VNC setup (again, with x11vnc 
on the Rivendell side).


If you are using RealVNC on the remote end, from where are you getting 
it? I do not see RealVNC in the standard CentOS repositories.


  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Loading Logs

2020-04-01 Thread David Klann

Hi Patrick,

On 4/1/20 8:36 AM, you wrote:

I have a question. When loading a log in rdairplay, one must manually scroll 
down to the current hour in order to start the log at the current time. How 
would everyone feel about the log automatically scrolling down the current hour 
when loading a log? Should the log panel stay at the top of the log as it does 
now? Should it only auto scroll upon load if the Hour Selector is enabled?

Patrick


I think it would be great if RDAirPlay automatically scrolled to the 
current hour when loading a log. In my opinion (for a consistent user 
experience) it would behave that way whether or not the Hour Selector 
were enabled.


And while you're in there mucking with UI code, could you modify the 
Hour Selector to place the top of the current hour at the top of the 
full-log-display panel? When I click an Hour Selector button (say, "16" 
to jump to the 4pm hour), RDAirPlay positions the top of that hour at 
the bottom of the log display panel. It makes more sense to me to 
display the first line of that hour at the top of the log panel. Others' 
thoughts?


Thanks for asking about this and for submitting a PR to Fred (assuming 
you do)!


Best,

  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Automatic Log Generation

2020-04-25 Thread David Klann

On 4/25/20 6:03 PM, Phil Biehl wrote:

Ok, thanks all. I’ll give it a try.

Phil

On Apr 25, 2020, at 3:53 PM, Marius Wikstøl  
wrote:




Err, that -p is supposed to be a -g.

Mvh
Marius


And to follow up on the RDCatch idea, you can also create a Macro Cart 
that runs the Linux command, much like Marius describes.


On my systems I have Macro Cart 50001 (any number will do, but make sure 
the Cart is of type "Macro") that contains a single Macro command:


RN /usr/bin/rdlogmanager -p -t -m -s Production!

In a terminal window, run "man rdlogmanager" for all the details of the 
options you can use.


Create that Macro Cart in RDLibrary with the appropriate options to 
rdlogmanager. Don't forget the exclamation mark (!) at the end; this is 
required. Save the new Cart and launch RDCatch.


Create a new job in RDCatch (with RDCatch->Add->Macro Cart) that runs 
every day at a specified time. Choose the Macro Cart you made above. 
When you create logs on a schedule using RDCatch you can be sure all the 
Rivendell services are already running because RDCatch jobs depend on them.


Hope this helps!

  ~David Klann



On 4/26/20 12:50 AM, Marius Wikstøl wrote:


I do this in crontab (crontab -e) like this.

# if rivendell daemons are running, create the next days log if it 
doesn't already exist
0 2 * * * [ "`systemctl is-active rivendell`" == "active" ] && 
/usr/local/bin/rdlogmanager -g -t -P -s Production
It creates the next day's log at 2 am (if it doesn't already exist) 
so it's always a day ahead. Works like a charm.
My installation (rdlogmanager) is under /usr/local/bin, but yours 
might be in /usr/bin


-p - generate log
-t - merge traffic
-P don't overwrite existing log
-s 

Mvh
Marius


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDAirPlay Command Line options?

2020-04-27 Thread David Klann

Hi Phil,

On 4/26/20 11:43 PM, you wrote:

I’ve been looking for something that describes command line options for the 
various RD programs , especially RDAirPlay, but have had limited success. Is 
there someplace I can look to find these options for RDAirPlay and others?

Thanks
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev



The source code is the definitive place to discern command line options. 
You can also try "man " to see if there's a manual page 
for the command (spoiler, there isn't one for rdairplay).


For those who haven't navigated the source code, here's a brief 
introduction. Rivendell is primarily written in the language C++. Most 
of the stand-alone apps are in their own subdirectory of the top-level 
source code "tree" (e.g., "rdairplay/"). The "main" subroutine (its name 
is actually "main" and it is the one in which command line options are 
handled) is in a file with a base name the same as the subdirectory 
(e.g., "rdairplay/rdairplay.cpp"; "cpp" is the extension for C++ source 
code files).


When you view the file (using your favorite text file viewer or editor, 
or just browsing it on GitHub 
[https://github.com/ElvishArtisan/rivendell/blob/master/rdairplay/rdairplay.cpp]), 
look for "RDCmdSwitch", this is the C++ object that is used to interpret 
and act on command line switches. After locating that string in the 
file, scroll down to see all the switches and the code that deals with them.


RDAirPlay and most of the other GUI Rivendell apps accept no command 
line switches. RDLogManager is one of the notable exceptions. The 
CLI-only commands (like RDImport) are located in the utils/ 
subdirectory. RDImport is a good example of a command that has a ton of 
command line switches and also has a thorough manual page explaining all 
of them).


Hope this helps!

--
  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDAirPlay Command Line options?

2020-04-27 Thread David Klann

Ah! Yes!

On 4/27/20 10:30 AM, Phil Biehl wrote:

Thanks for the clarification David. Since there are no command line options for 
RDAirPlay then let me be more specific in what I’m looking for. I have a fully 
automated application where I would like to have RDAirPlay start playing the 
current log at startup. This is to recover from a power failure.

Is there a way to do this?

Phil



drew beat me to the reply, but in addition to his Macro suggestion, 
there's this, which may be enough for you.


In RDAdmin->Manage Hosts->[HOSTNAME]->RDAirPlay -- at the lower left of 
the config window make sure "Restart Log After Unclean Shutdown" is 
checked, and also optionally, select "load specifed log" in the "At 
Startup" dropdown list for "Main Log", and fill in your log name 
template (from RDAdmin-Manage Services->[SERVICENAME]). You can also 
optionally configure RDAirPlay to load the log that was previously 
loaded with that dropdown choice.


Know that this will simply load the log. It won't cause that log to 
start playing unless you have Timed Start events in that log (for 
example at the start of the hours, or quarter hours, etc.). If you do 
have Timed Events the log will start playing at the next Timed Event.


I've attached a screenshot from the lower left corner of the RDAirPlay 
configuration screen in RDAdmin.


  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Ensuring Full Logs (was "Hello guys")

2020-05-05 Thread David Klann

Hi Phil,

On 5/5/20 9:07 AM, Phil Biehl wrote:
This begs the question how does one insure a full days log? My logs are 
short by a few hours.


Phil



The "conventional" way to ensure full Logs is to configure your Clocks 
with enough Events so that some Events will not be played. This 
technique also requires the use of Timed Events (either strict Hard 
Start, or Make Next). Most stations I work with place one or more Timed 
Events in all their Clocks (at least one, at the top of the hour).


Configuring Clocks in this way ensures that your hours are "overfilled" 
and you then end up dropping a few Carts each hour. Note that even 
though Carts are picked and placed when the Logs are generated, they 
won't be marked as "Played" if RDAirPlay skips them.


I have attached a "clock report" from my lab system to illustrate (in 
textual form) the difference between a "short" Clock and an 
"over-filled" Clock. Events in both Clocks add up to 59 minutes of 
content, but "AnyMusic" contains more Events, most of which will end up 
being shorter in duration than the actual Carts RDLogManager chooses 
from the Library (the average length of all the Music Cuts in my Library 
is 4:44).


There's probably a lot more behind this discussion -- feel free to ask 
more questions!


Hope it helps a bit!

  ~David Klann


--
  ~David
20 Events for Clock "MusicShortHour"
* Legal Timed Make next at 00:00 for 00:05 (ending at 00:05)
*  AnyMusic at 00:05 for 02:55 (ending at 03:00)
*  AnyMusic at 03:00 for 03:00 (ending at 06:00)
*  AnyMusic at 06:00 for 03:00 (ending at 09:00)
*   Voicetrack1 at 09:00 for 02:00 (ending at 11:00)
* Promo at 14:45 for 00:15 (ending at 15:00)
*  AnyMusic at 15:00 for 03:00 (ending at 18:00)
*  AnyMusic at 18:00 for 03:00 (ending at 21:00)
*  AnyMusic at 21:00 for 03:00 (ending at 24:00)
*   Voicetrack2 at 24:00 for 02:00 (ending at 26:00)
*   Traffic at 29:45 for 00:15 (ending at 30:00)
*  AnyMusic at 30:00 for 03:00 (ending at 33:00)
*  AnyMusic at 33:00 for 03:00 (ending at 36:00)
*  AnyMusic at 36:00 for 03:00 (ending at 39:00)
*   Voicetrack3 at 39:00 for 02:00 (ending at 41:00)
* Promo at 45:00 for 00:15 (ending at 45:15)
*  AnyMusic at 45:15 for 03:45 (ending at 49:00)
*  AnyMusic at 49:00 for 04:00 (ending at 53:00)
*  AnyMusic at 53:00 for 04:00 (ending at 57:00)
*   Voicetrack4 at 57:00 for 02:00 (ending at 59:00)

26 Events for Clock "AnyMusic"
* Legal Timed Make next at 00:00 for 00:05 (ending at 00:05)
* Blues at 00:05 for 02:55 (ending at 03:00)
*  AnyMusic at 03:00 for 03:00 (ending at 06:00)
*  AnyMusic at 06:00 for 03:00 (ending at 09:00)
*  AnyMusic at 09:00 for 03:00 (ending at 12:00)
*   Voicetrack1 at 12:00 for 02:00 (ending at 14:00)
*   PSA at 14:00 for 01:00 (ending at 15:00)
* Promo at 14:45 for 00:15 (ending at 15:00)
*  AnyMusic at 15:00 for 03:00 (ending at 18:00)
*  AnyMusic at 18:00 for 03:00 (ending at 21:00)
*  AnyMusic at 21:00 for 03:00 (ending at 24:00)
*  AnyMusic at 24:00 for 03:00 (ending at 27:00)
*   Voicetrack2 at 27:00 for 02:00 (ending at 29:00)
*   Traffic at 29:45 for 00:15 (ending at 30:00)
*  AnyMusic at 30:00 for 03:00 (ending at 33:00)
*  AnyMusic at 33:00 for 03:00 (ending at 36:00)
*  AnyMusic at 36:00 for 03:00 (ending at 39:00)
*  AnyMusic at 39:00 for 03:00 (ending at 42:00)
*   Voicetrack3 at 42:00 for 02:00 (ending at 44:00)
*   PSA at 44:00 for 01:00 (ending at 45:00)
* Promo at 45:00 for 00:15 (ending at 45:15)
*  AnyMusic at 45:15 for 02:45 (ending at 48:00)
*  AnyMusic at 48:00 for 03:00 (ending at 51:00)
*  AnyMusic at 51:00 for 03:00 (ending at 54:00)
*  AnyMusic at 54:00 for 03:00 (ending at 57:00)
*   Voicetrack4 at 57:00 for 02:00 (ending at 59:00)
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] MusicBrainz

2020-05-05 Thread David Klann

Hi Chris,

On 5/5/20 10:19 AM, you wrote:

Hi,

I’m new in here… thanks in advance for any help.

I configured RDLibrary to use CD Metadata Source as ‘MusicBrainz’ and 
the Server as ‘musicbrainz.org’.


It did not populate the tags and I’m getting error:

/‘Connection Exception’/

/‘Last Result: 1’/

/‘Last HTTPCode: 0’/

/‘LastErrorMessage: Could not resolve hostname ‘musicbrainz.org’: Host 
not found’/


FreeDB seems Ok.

Any help would be much appreciated.



This seems like a basic network connectivity or DNS name resolution 
issue to me.


Can you ping musicbrainz.org from a command line on the same computer on 
which you are trying to rip the CD? I recommend copying the text from 
where it is set in the RDLibrary configuration (RDAdmin->Manage 
Hosts->[hostname]->RDLibrary) and pasting it in a terminal window.


Check the file /etc/resolv.conf on that same computer if you cannot ping 
musicbrainz.org. /etc/resolv.conf should be configured automatically if 
your computer is automatically obtaining an IP address from a DHCP 
server on your network.


Hope this helps!

  ~David Klann

--
  ~David
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] VU Meters "Broke"

2020-05-10 Thread David Klann

I'm stuck.

I have two (nearly) identical systems sharing a database and NFS audio 
store. Both are on HP hardware (HP Compaq 8200 Elite SFF PC), same 
on-board audio card, same version of Rivendell (3.3.0), same kernel 
(3.10.0-1062.9.1.el7.paravel0.x86_64), same "yum update" level.


Everything works fine on one of the systems. On the other, the "audio 
cursor" (in RDLibrary->Edit Markers) and the VU meters (in all the 
Rivendell apps) do not work. The Rivendell apps (RDLibrary, RDAirPlay, 
etc.) actually make sound, but the visual indicators are silent.


I've checked RDAlsaConfig (actually cleaned it out and started over).

The output of "sudo alsa-info" on the working and on the non-working 
machines are very close to identical: they differ mainly in addresses 
and interrupt settings.


Has anyone seen this behavior? Can you suggest other things to look at?

Thanks much!

  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Painful log generating times

2020-05-11 Thread David Klann

Hey Chuck,

On 5/11/20 8:35 AM, you wrote:
Well, my understanding is that rddbcheck does not exist in v3, replaced 
by a new GUI configuration tool, which does not include the 
"check"--only Create, Backup, Restore, and Close.




I"m not sure this will help, but there *is* an equivalent in 3.X: 
rddbmgr. It's even got a manual page: "man rddbmgr" for more details.


I've got over 50,000 carts and my database has been around 400mb for 
years. Using rddbcheck in v2 did not reduce the size substantially.




Concur. Cleaning up the database with rddbmgr probably won't help much 
to decrease the time spent creating logs.


Tried to step back to v2 over the weekend, but the v2 appliance install 
did not work, with the "rivendell-install" yum file missing and causing 
an error.


Reinstalled v3.3 appliance and now output levels to the same sound card 
are about half what they should be (and were on the previous install), 
and mysqld is back up at 97% CPU. Version 3 is just plain troublesome.




MySQL (and MariaDB) is a complex beast. I suspect this may be your 
problem, not Rivendell proper. Take a look at some of the documentation 
on the MySQL website or the knowledge base articles at 
https://mariadb.com/kb/en/optimization-and-tuning/


For example, you can see what MySQL/MariaDB is up to with the "show full 
processlist" command in the command line app "mysql". It's difficult to 
troubleshoot database problems via email: feel free to contact me off 
list if you want more specific help.


  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Idiots guide to getting JACK audio running.

2020-05-25 Thread David Klann

Hi Andrew,

On 5/25/20 6:37 PM, you wrote:

Hi,
I'm trying to get Jack audio working and I'm looking for a step by step 
guide. I've done lots of searches but not found somewhere that seems 
complete.
I'm starting jackd from RDAdmin->Manage Hosts->Jack Settings using the 
command jackd -R -d alsa -d hw:0 -r 48000
if I do a ps -ax |grep jackd it seems to be running as I get the 
following response.
rd        2465  0.0  0.0 112812   972 pts/0    S+   19:19   0:00 grep 
--color=auto jackd


Actually, if that's the only line shown by grep(1), it means JACK is 
*not* running. If JACK was running you'd see something like:


root   999  0.0  0.0   6032778 -... jackd -R -d alsa -d 
hw:0 -r 48000


(I made up all the numbers in that line.)

I'd check the system journal to see why JACK did not start:

  sudo journalctl | grep -i jack


But if I open stereo tool it does not seem to be able to find jackd. 
Both jackd & stereo tool are running under the user 'rd'.
I have a M Audio Delta410 and followed the instructions here 
http://wiki.rivendellaudio.org/index.php/Delta_1010LT.


If I try and manually start jackd using QjackCtl I get the error message 
saying that hw0 is already in use and cannot start. Not sure if this 
because it's already running or one of the rivendell processes has it.
Can anyone point me to somewhere that has a good guide to get jack 
running on centos7 & Rivendell 3.4?


This is what I would expect when you try to start JACK after Rivendell 
is already running: Rivendell takes "ownership" of the ALSA device and 
no other process can use it (which is part of the reason to run jackd in 
the first place, eh?).


Hope this helps you get to the next step in troubleshooting...

(Note to self: get cracking on that Rivendell JACK guide...)

  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Question on back to back carts

2020-06-16 Thread David Klann

On 6/16/20 7:02 AM, Gavin Stephens wrote:
I was just wondering if it's safe to schedule the same cart (with 
multiple cuts) back to back in a log without running the risk of 
repeating the same cut twice in a row?




Hey Gavin,

I'd say this is a reliable operation (assuming there are more than two 
Cuts in the Cart). I do it under a few different conditions and 
RDAirPlay has faithfully played cuts in a predictable manner. It's even 
more flexible with the (relatively) recent feature of being able to 
specify Cut play "rotation" by either "weight" or "specified order" 
(prior to v3 "weight" was the only option).


I don't schedule any Carts exactly back-to-back, but I do have Clocks 
that schedule some Carts multiple times in an hour and "it just works".


Hope this helps!

--
  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Timed Start from External Scheduler

2020-06-22 Thread David Klann

Hi John,

On 6/22/20 8:34 AM, John Boles wrote:

Is there a way to add timed starts from an external scheduler.
I know that you can add  a marker in the Edit Service Setup in RDAdmin.
I would like to add either Hard or Next metadata also from my external 
scheduler.




I'm working on a Rivendell Scheduling App (in Python) and I wondered 
about the same question. I just looked through the Rivendell sources, 
and I don't see anything obvious in there about adding events with Timed 
Starts from an externally generated "merge file" (from the external 
scheduler). It kind of makes sense: "Events" are strictly Rivendell 
entities; "tracks" (both Music and Traffic) are things that exist in 
Rivendell *and* outside Rivendell. Maybe Fred can confirm?



I only want to have one element in my Clock Events of From Music.


I too thought this would be a "Good Thing" for my scheduler app, but 
I've decided to simply create Clocks with those Timed Events at the top 
of the hour (in my case) and simply add one additional Event for the 
rest of the hour: that Event is the one in which I import from the 
external scheduler.


Hope this helps!

--
  ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDAirplay ToH is not on time

2020-07-02 Thread David Klann

Hi Chris,

On 7/1/20 1:04 PM, Sojo Gold wrote:

Hi,
My clocks don't line up to Top of the Hour. I have tried many different 
'average' event durations to try and get Top of Hour ID event to be on time.

Following the Operations Manual for RD 3.4.0 I still cannot get this right.

Do each of the library music files need to have segue markers for this 
to happen.


My clock:
ToH event (17sec) set to 'Timed start' - 'Make next' -   Transition: Play.
Next Music event start: 00:17:00 - end: 03:00:00 - Transition: Segue
Next Music event start: 03:00:00 - end: 06:00:00 - Transition: Segue
+ x18 @ 3mins - Transition: Segue
Last Music event: start: 57:00:00 - end: 59:59:00 - Transition: Segue

Have also attempted to get the ToH event manually cued up and started 
manually.




There are a couple different ways to have Rivendell line up to the top 
of the hour. Robert's suggestion, though complex, is a good one. Unless 
you have an audio card that can "time shift" the audio, every solution 
I've seen has some complexity involved.


Even though you have set the transitions to "Segue", Rivendell won't do 
any cross fading unless you set the "Segue Markers" in each Cart. You 
can run the batch processor app "rdmarkerset" on the command line to do 
this; use "man rdmarkerset" to read the detailed instructions.


Another way to guarantee hitting the top of the hour is to fade down the 
last item in the current hour and hit the top of the next hour. I use a 
"timer log" in the Aux Log 1 log machine to do this. This "timer log" 
contains a single Event (with a "STOP" transition) that runs a few 
seconds before the top of the hour. That Event would contain a Macro 
Cart with a series of Macros that do something like the following:


 - MD 0 -20 5000! (fade [duck] the Main Log to -20dB over five seconds)
 - SP 5000!   (sleep for five seconds while the fade runs)
 - MD 0 -40 2000! (fade [duck] the Main Log to -40dB over two seconds)
 - SP 2500!   (sleep for 2.5 seconds)
 - PS 1!  (stop the Main Log)
 - MD 0 0 10! ("unfade" [unduck?] the Main Log over 10 ms)

The Main Log ToH Event also needs to have a STOP transition so that 
RDAirPlay can come to a complete stop for the transition.


This method is "intrusive" since listeners never get to hear the last 
track in an hour, but it reliably times out every hour without the 
expensive "time shifting" hardware.


I'm sure there are other ways to hit the top of the hour...

  ~David Klann
--
  ~David
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Artist separation question in RD 3

2020-07-11 Thread David Klann

Hey Rob,

On 7/11/20 1:12 PM, Rob Landry wrote:


I'm building a system for a new station whose pogramming consultant has 
asked me the following:


If we have five events defined that specify songs with different 
scheduler codes:


 Music A    for songs with scheduler code A,
 Music B    for songs with scheduler code B,
 Music C    for songs with scheduler code C,
 Music D    for songs with scheduler code D,
 Music E    for songs with scheduler code E;

If I assign an artist separation of 55 minutes to all events, and Bruce 
Springsteen has one song with code A and another with code B, does 
Rivendell pay attention to the Springsteen song being scheduled as event 
B when scheduling songs as event A?


In other words, if I have a clock with a Music A event immediately 
followed by a Music B event, might I see the two Springsteen songs 
back-to-back, even though both eevent A and event B specify an artist 
separation of 55 minutes?




From what I can tell, looking at the current C++ source code on GitHub 
(a few commits past 3.4.0), artist separation spans both Clocks and 
Events. If you want to follow along, look at the code in 
lib/rdevent_line.cpp, starting around line 673 (there is a comment 
"Artist Separation" leading up to line 673). Rivendell uses a table 
named STACK_LINES[1] to store Cart numbers and artist names that have 
been scheduled. The code in lib/rdevent_lines.cpp looks back "artistsep" 
lines in "history" for the artist currently "on tap" to be placed in the 
Log. Note: this appears to me as number of played tracks in history, not 
number of minutes ago in history.


Again, as far as I can tell, the units for Artist Separation and Title 
Separation are not "minutes", but "tracks".


And... those "Separation" numbers are just suggestions. The Rivendell 
scheduler can break those rules (and will, depending on the size and 
diversity of your Library).


Hope this helps!

  ~David

[1] STACK_LINES was added to the database on July 11th, 2018, moving the 
database version to 293. This addition was part of the 3.0 release.


--
  ~David
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Artist separation question in RD 3

2020-07-12 Thread David Klann

Hey Rob,

On 7/12/20 7:48 AM, Rob Landry wrote:

David:

Thanks. That is indeed helpful.

By "tracks", do you mean events on the log? If so, do those include 
macros, or just audio carts?


Yes, exactly. And scheduled Events are stored persistently in the table 
SCHED_LINES, so this should work from day to day as well as hour to 
hour. The rdmaint command is responsible for limiting this table to 
50,000 rows (I'm not sure you can change this number without 
re-compiling the source code).


Hmmm, it's a great question about what counts toward "separation". My 
reading of the code leads me to believe it's "intended" to be audio 
Carts that count toward the separation rules. But the SQL query embedded 
in the code does not include a constraint on the "TYPE" column (audio or 
macro) of the CARTS table, so if you have Macro Carts in your "MUSIC" 
(for example) Group, they might actually get counted in the separation 
tests. Another reason to focus on "database cleanliness"... I haven't 
dug to the bottom of this question, maybe Fred can chime in with more 
authority on the subject?


rdlogmanager seems to give me a page of "exceptions" whenever it doesn't 
like one of my rules. I've been relying on that to adjust my rules so 
they won't be broken.


Yes, I find that "report" helpful too!



Rob




  ~David
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Riv Server advise

2020-07-17 Thread David Klann

Hey Tom,

On 7/17/20 11:16 AM, Tom Van Gorkom wrote:
I need to upgrade our CentOS 6.9 servers to v7 and these "servers" are 
getting old. I debated whether to upgrade the MB and CPU or buy a Dell 
T40 or T140 Xeon basic server to save time and avoid compatibility 
issues. Is this an overkill?


Any suggestions on what the Rivendell server needs to be capable of  - 
how many cores and threads?  My impression is that it doesn't work that 
hard but system 7 is a bit more heavy.




Not sure it's a direct answer to your question, but here's a reference 
point for you:


In my lab, I'm running Rivendell 3.4.0 on CentOS 7.8.2003 (up to date). 
Rivendell apps include:


 - RDAirPlay playing Logs from Service "Production" (with PyPAD sending
   Now Playing data to an external Icecast server)
 - rdvairplay ("headless") playing Logs from Service "alternate"
 - JACK routing the audio
 - Calf Rack processing the audio
 - liquidsoap feeding an external Icecast server
 - GlassGUI/GlassCoder feeding an external Icecast server
 - 8 Rivendell dropboxes occasionally ingesting audio files

The hardware is an ASRock (Q1900-ITX) motherboard with a 4-core Intel 
Celeron CPU with 4GB RAM, and /var/snd on a USB 3 500GB hard drive. The 
OS "disk" is a 120GB KINGSTON SA400S3 SSD.


I generate Logs daily and the process takes only a few seconds.

I feel like I'm pushing this system pretty hard: 5-minute load average 
is ranges between 3.5 to 4.5. Oh, it's also a fanless setup. I've been 
running this motherboard/CPU/RAM/Hard drive combination since 2017, so I 
expect I'll replace it sometime soon.


Hope this helps in your decision process!

--
  ~David Klann
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Rivendell v3.4.1

2020-07-22 Thread David Klann
Hi Gavin,

On 7/22/20 2:26 AM, you wrote:
> Look forward to using this :) 3.4.0 hasn't missed a beat here.
> 
> When doing an update if installed over network as per:
> 
> http://static.paravelsystems.com/rivendell-install-rd3/rivendell-install-rhel7.html
> 
> Does one just start from the "Running the installation Script" section 
> again? Is there an easier way to update?
> 
> 

There is indeed an easier way to update!

Open a terminal session and type the command:

 sudo yum upgrade

And then enter *your* password (where "your password" means the password 
you assigned to the CentOS user "rd"). The password will not display as 
you type it for security reasons. If this command fails with a message 
like "permission denied" (or similar) you may have to launch the upgrade 
with this command:

 su - root -c "yum upgrade"

And then type the password for the *root* user (which you assigned 
during the initial installation). And again, the password you type will 
not show up in the terminal window (for security reasons).

Once you successfully launch the "yum upgrade", simply enter the letter 
"y" to proceed with the upgrade when "yum" prompts you.

Since you are explicitly upgrading the Rivendell package(s), the audio 
*will* be interrupted when the Rivendell services are restarted.

You may need to (and probably should) reboot after performing this 
upgrade, so you should make other arrangements for audio if this is your 
on-air Rivendell machine.

Hope this helps!

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Rivendell v3.4.1

2020-07-22 Thread David Klann
Tsk, tsk... Replying to one's own thread...

On 7/22/20 8:45 AM, I wrote:
> 
> Hi Gavin,
> 
> On 7/22/20 2:26 AM, you wrote:
>> Look forward to using this :) 3.4.0 hasn't missed a beat here.
>>
>> When doing an update if installed over network as per:
>>
>> http://static.paravelsystems.com/rivendell-install-rd3/rivendell-install-rhel7.html
>>
>> Does one just start from the "Running the installation Script" section
>> again? Is there an easier way to update?
>>
>>
> 
> There is indeed an easier way to update!
> 

I should have also mentioned that a "yum upgrade" can take several 
(excruciating) minutes (as long as fifteen or twenty or longer). So you 
should plan on using that alternate audio source for at least a half an 
hour.

   ~David



> ...


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Timed Log Events Off?

2020-07-25 Thread David Klann
After upgrading one of my client systems to Rivendell 3.4.1, I'm seeing 
some odd behavior with Timed Events in RDAirplay.

Background: At this station, we have two events per day that want to be 
started ("gracefully") at one second past the top of the hour (00:01) 
after fading out whatever is playing in the previous hour.

I have been doing this with a Log in the Aux Log 1 machine. That "timer 
log" has two lines, one at 07:59:51, and one at 11:59:51. Both lines 
contain the same Macro Cart that "fades" the Main Log over 7 seconds, 
sleeps for 7.5 seconds, then stops the Main Log and "fades" the Main Log 
back to 0dB. Here is the contents of that Cart:

 MD 0 -40 7000!
 SP 7500!
 PS 1!
 MD 0 0 10!

This has been working just fine until last week when I upgraded 
Rivendell to 3.4.1. Now, with complete consistency, the Lines in Aux Log 
1 are starting five seconds later than the scheduled hard start times.

The result of the late start is that the Macro stops the Main Log 
*after* the top-of-hour Cart has started playing. Dead air.

Can anyone think of what might cause a timed event to start five seconds 
later than it should?

(In the meantime, I've moved these Macro Carts to be run via RDCatch.)

Thanks for your thoughts!!

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Timed Log Events Off?

2020-07-25 Thread David Klann
Hey Gavin,

On 7/25/20 12:07 PM, you (thoughtfully) wrote:
> 
> I'm guessing is specific to the macro cart? I've tried a timed hard
> start in 3.4.1 of a normal cart in Aux 1, and it starts spot on the second.
> 
> Gavin.
> 

Thanks for your thoughts. I considered that too. I just observed the 
same Macro Cart being "launched" from RDCatch. It started at exactly the 
right time (11:59:51 US/Pacific Time), and the subsequent hour continued 
as expected.

I'm still perplexed...

   ~David Klann

> On 26/07/2020 4:29 am, David Klann wrote:
>> After upgrading one of my client systems to Rivendell 3.4.1, I'm seeing
>> some odd behavior with Timed Events in RDAirplay.
>>
>> Background: At this station, we have two events per day that want to be
>> started ("gracefully") at one second past the top of the hour (00:01)
>> after fading out whatever is playing in the previous hour.
>>
>> I have been doing this with a Log in the Aux Log 1 machine. That "timer
>> log" has two lines, one at 07:59:51, and one at 11:59:51. Both lines
>> contain the same Macro Cart that "fades" the Main Log over 7 seconds,
>> sleeps for 7.5 seconds, then stops the Main Log and "fades" the Main Log
>> back to 0dB. Here is the contents of that Cart:
>>
>>MD 0 -40 7000!
>>SP 7500!
>>PS 1!
>>MD 0 0 10!
>>
>> This has been working just fine until last week when I upgraded
>> Rivendell to 3.4.1. Now, with complete consistency, the Lines in Aux Log
>> 1 are starting five seconds later than the scheduled hard start times.
>>
>> The result of the late start is that the Macro stops the Main Log
>> *after* the top-of-hour Cart has started playing. Dead air.
>>
>> Can anyone think of what might cause a timed event to start five seconds
>> later than it should?
>>
>> (In the meantime, I've moved these Macro Carts to be run via RDCatch.)
>>
>> Thanks for your thoughts!!
>>
>>  ~David Klann
>>
>> ___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 
> --
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Timed Log Events Off?

2020-07-26 Thread David Klann
OK, it gets weirder...

On 7/25/20 2:13 PM, I wrote:
> 
> Hey Gavin,
> 
> On 7/25/20 12:07 PM, you (thoughtfully) wrote:
>>
>> I'm guessing is specific to the macro cart? I've tried a timed hard
>> start in 3.4.1 of a normal cart in Aux 1, and it starts spot on the second.
>>
>> Gavin.
>>
> 
> Thanks for your thoughts. I considered that too. I just observed the
> same Macro Cart being "launched" from RDCatch. It started at exactly the
> right time (11:59:51 US/Pacific Time), and the subsequent hour continued
> as expected.
> 
> I'm still perplexed...
> 

RDCatch just ran the Macro cart (8am US/Pacific Time). As in the Aux Log 
1 technique, the RDCatch technique started the Cart five seconds late!

So to recap: when the Macro Cart is scheduled to run at Seven Seconds 
Before 8am it starts five seconds late. When *the same Macro Cart* is 
scheduled to run at Seven Seconds Before Noon, it runs on time.

Is this an effect of Comet Neowise?

[pulling hair out...]

   ~David

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Rivendell Wiki Updates

2020-07-27 Thread David Klann
Greetings List!

I just spent several hours updating the Rivendell Wiki 
(http://http://wiki.rivendellaudio.org/index.php/Main_Page). 
Specifically, I revamped the tutorial on how to set up Events, Clocks 
and the Grid (http://wiki.rivendellaudio.org/index.php/Log_Creation). 
Please send comments and suggestions. Better yet, request a Wiki account 
(http://wiki.rivendellaudio.org/index.php/Special:RequestAccount) and 
make changes yourself!

I am continually amazed at all the useful information on the Wiki. There 
is a lot of outdated cruft there, but tons of relevant info too.

To see all the new stuff, simply visit the Wiki and click on "Recent 
changes" in the left-hand column.

I am thankful to Wiki user "Higgles" for creating the Log Creation 
tutorial, and I hope I didn't destroy it too much from the original!

My plan is to continue doing updates over the coming weeks. I'll "spam" 
the list whenever there is something significant to share. :)

Best regards,

   ~David Klann
Broadcast Tool & Die

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] USB Microphone configuration

2020-07-29 Thread David Klann
Hey Andrew,

On 7/29/20 7:16 PM, you wrote about a new sound card:
> 
> I have an USB Microphone I'd like to use. How do I add a second sound input?
> 
> UNder RDAdmin--> Audio resources. I only see my M-Audio Delta410 listed
> as card0, but no USB Mic on Card 1
> 

Have you run RDAlsaConfig as root? If you installed Rivendell the 
"usual" way on CentOS/Red Hat/etc. it's on the Applications menu under 
Rivendell -> Configuration -> RDAlsaConfig

This utility enables you to assign ALSA devices to be used with 
Rivendell. See the Wiki article at 
http://wiki.rivendellaudio.org/index.php/Configuring_Rivendell_to_work_with_ALSA
 
for more details.

Hope this helps!

   ~David Klann


> Running arecord -l I see the USB Microphone listed:
> 
>  List of CAPTURE Hardware Devices 
> card 0: M410 [M Audio Delta 410], device 0: ICE1712 multi [ICE1712 multi]
>     Subdevices: 0/1
>     Subdevice #0: subdevice #0
> card 1: Microphone [USB2.0 Microphone], device 0: USB Audio [USB Audio]
>     Subdevices: 1/1
>     Subdevice #0: subdevice #0
> 
> I presume I have to add this /etc/asound.conf ? So I added rd1.
> 
> My current one looks like this:-
> 
> pcm.rd0 {
>     type hw
>     card M410
>     device 0
>     rate 48000
> }
> ctl.rd0 {
>     type hw
>     card M410
> }
> 
> pcm.rd1 {
>     type hw
>     card USB
>     device 1
> }
> ctl.rd1 {
>     type hw
>     card USB
> }
> 
> 
> After a reboot Card1 is not showing in audio resources. What else am I
> missing?
> 
> 


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] USB Microphone configuration

2020-07-30 Thread David Klann
Hey Andrew,

On 7/30/20 7:14 AM, you replied:
> Yes I tried rdalsaconfig under root. Only my main card the M-audio 
> shows, but not the USB mic.
> I'm thinking as this is not a "full" card only a recording device it 
> probably requires a manual add And I know ALSA sees the USB mic as 
> running arecord -l shows it as an available recording device.
> 
> 

Check the contents of the directory /proc/asound/card? where "?" 
represents the ALSA device number you see with `arecord -l`. If that 
directory is missing a pcm0p subdirectory, then I think (from looking at 
the source code in utils/rdalsaconfig/) Rivendell won't recognize its 
presence. Also check for a file in that directory named "usbmixer". Code 
in utils/rdalsaconfig/rdalsacard.cpp leads me to think that Rivendell 
will ignore it if the sound device doesn't have an on-board mixer

I've got a Yeti Blue USB mic here and Rivendell sees it just fine. But 
since it has a headphone jack, I guess it presents a playback channel to 
ALSA... Maybe your mic doesn't have any playback capability at all?

The code in utils/rdalsaconfig/ looks like it is also restricting it's 
"lookup" of ALSA devices to ones that support the currently selected 
sample rate (RDAdmin->System Settings). So rdalsaconfig might not see 
your device if it doesn't support the current rate?

I didn't study too deeply, but these are some hunches from just glancing 
at the code. Maybe someone better acquainted with the code can verify?

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] VoiceTrack setup in Clocks

2020-08-02 Thread David Klann
Hey chris,

On 8/2/20 5:54 PM, chris cottingham wrote:
> How do I create an event in RDLogManager for Voicetracking? I want to 
> utilize the built in scheduler and create logs with Voicetracks already 
> setup.
> 
> I know I can manually add the markers in the RDLogEdit. I would like to 
> automatically create them when I generate my logs.
> 
> I am not using an external music scheduler.
> 
> Any help is appreciated!
> 

I just updated the text in the Rivendell Wiki article about how to "do 
automation": http://wiki.rivendellaudio.org/index.php/Log_Creation

Search that article for "voice track" (with a ) and you'll find 
your answer. I recommend reading the whole article.

Hope this helps!

   ~David

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Starting Stereo Tool

2020-08-03 Thread David Klann
Hi Chuck,

On 8/2/20 11:45 PM, Chuck wrote:
> Okay, I have asked over on the ST forum, but not gotten an answer, so 
> maybe here is where I should be asking.
> 
> I am starting Stereo Tool with the RD Jack settings. But when I do that, 
> the Stereo Tool GUI does not display, and I cannot figure out how to 
> force it to display. Anyone here know how to access the GUI when started 
> by RD?
> 
> --Chuck Waggoner

I don't use StereoTool, but this sounds like it might be an X Windows 
issue. Do you have the DISPLAY environment variable set to :0 ? If you 
are using a shell script "wrapper" to launch ST, you might add the 
DISPLAY variable like this:

export DISPLAY=:0

Or, directly on the JACK command line inside RDAdmin->Manage 
Hosts->[host]->Jack Clients you might try adding the DISPLAY setting to 
the command line:

DISPLAY=:0 /path/to/stereo_tool_gui_jack_64

All is not lost if the above tricks don't work for you. Let's see how 
this goes for you and if they don't help, I've got another suggestion...

Hope this helps!

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Starting Stereo Tool

2020-08-03 Thread David Klann
Hey Chuck,

On 8/3/20 7:56 PM, you wrote:
> 
>Well, the environment variables already have "DISPLAY=:0.0".
> Preceding the RD invocation of StereoTool with DISPLAY=:0 followed by
> /path/to/StereoTool actually prevents StereoTool from starting.
> Placing the DISPLAY=:0 following the StereoTool invocation allows
> StereoTool to start, but still no GUI.
> 
>If you have other ideas, fire away!
> 

Can you pop open a terminal window and post (or send directly to me) the 
output of:

 mysql Rivendell -e "select command_line from JACK_CLIENTS where 
command_line like '%stereo%'"

You may need to add (before "Rivendell") the -h HOST -u USER -pPASSWD 
options to mysql in order to connect to your database.

I'd like to see exactly how you're telling caed to launch stereotool.

Thanks!

   ~David

> --Chuck
> 
> On Mon, 2020-08-03 at 13:26 +, David Klann wrote:
>> Hi Chuck,
>>
>> On 8/2/20 11:45 PM, Chuck wrote:
>>
>> Okay, I have asked over on the ST forum, but not gotten an answer,
>> so
>> maybe here is where I should be asking.
>>
>> I am starting Stereo Tool with the RD Jack settings. But when I do
>> that,
>> the Stereo Tool GUI does not display, and I cannot figure out how to
>> force it to display. Anyone here know how to access the GUI when
>> started
>> by RD?
>>
>> --Chuck Waggoner
>>
>> I don't use StereoTool, but this sounds like it might be an X
>> Windows
>> issue. Do you have the DISPLAY environment variable set to :0 ? If
>> you
>> are using a shell script "wrapper" to launch ST, you might add the
>> DISPLAY variable like this:
>>
>>  export DISPLAY=:0
>>
>> Or, directly on the JACK command line inside RDAdmin->Manage
>> Hosts->[host]->Jack Clients you might try adding the DISPLAY setting
>> to
>> the command line:
>>
>>  DISPLAY=:0 /path/to/stereo_tool_gui_jack_64
>>
>> All is not lost if the above tricks don't work for you. Let's see
>> how
>> this goes for you and if they don't help, I've got another
>> suggestion...
>>
>> Hope this helps!
>>
>> ~David Klann
>>
>>
>>
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] rd_backup

2020-08-04 Thread David Klann
Hi Peter,

On 8/3/20 8:09 PM, you wrote:
> Hi guys,
> 
> In previous version, i used a slightly altered /bin/rd_backup.sh, to 
> automatically create a backup of my database. which worked quite well
> 
> After my update to 3.4, it seems to be lost.
> 
> Does anyone have a alternative for this, or maybe te original code ?
> 
> Regards,
> Peter

I can't say off hand what happened to rd_backup.sh, but I have a ZSH 
script that I've been using for years. It's on github at 
https://github.com/opensourceradio/ram/blob/master/usr/local/bin/database-backup

It requires ZSH because it uses a few Z-shell features that I've come to 
appreciate. There are a few variables near the top of the script that 
you might want to change (like TMPDIR, DUMPDIR, and KEEP). This script 
requires database access by a user with "root-like" database 
permissions, so I have it look for a copy of .my.cnf that has a user 
configured with those elevated privileges (see line 76).

The backup script uses mysqldump(8) to create a backup of ALL the 
databases, not just Rivendell. It creates two backup files for each 
database: one with all the data, and a second file with just the schema 
for the databases. I've never had do use the schema, but it seemed like 
a useful thing to have when I wrote it.

I've also attached the old rd_backup script to this message for your 
reference. My "database-backup" script does fundamentally the same thing 
as the attached, just in a more convoluted manner... :)

Hope this helps!

   ~David Klann
#!/bin/bash

# rd_backup
#
# Dump the local Rivendell database and copy the dump to one or more 
# remote hosts.
#
# Copyright (C) 2006,2016 Fred Gleason 
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License version 2 as
#   published by the Free Software Foundation.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public
#   License along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

#
# Site Settings
#
SITE_ID="kgu"
SHELF_LIFE=7
DB_NAME=Rivendell
DB_USER=root
DB_PASSWORD=letmein
BACKUP_DIR=/home/salem/rd_backup

#
# Generate the backup filename
#
BACKUP_FILE=`date +$BACKUP_DIR/$SITE_ID-%Y%m%d.sql`

#
# Dump the database
#
mysqldump --opt -u $DB_USER -p$DB_PASSWORD $DB_NAME > $BACKUP_FILE

#
# Purge old backups
#
find $BACKUP_DIR -mtime +$SHELF_LIFE -type f -exec rm \{\} \;

#
# Copy to remote hosts
#
# Customize this section to list the remote hosts you wish to copy the
# dump to.  Yoou will need two lines for each host:  one to copy the data,
# and another to purge old data.
#
# For example, let's say you have a host called 'rivendell.example.com',
# where you want to put the backups into a directory called 
# '/home/salem/rdbackup'.  You would do:
#
#   scp -q $BACKUP_FILE sa...@rivendell.example.com:rd_backup/
#   ssh salem@rdkaim "find /home/salem/rd_backup -mtime $SHELF_LIFE -type f 
-exec rm \{\} \;"
#
#
# Note that the remote machine must be set up to accept automatic logins via
# ssh(1) in order for this to work!
#



# End of rd_backup
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Compiling latest release version on Ubuntu 18.04

2020-08-10 Thread David Klann
Hey Tim,

On 8/9/20 1:50 PM, Tim Camp wrote:
> Greetings,
> 
> Configure runs with no errors.
> make exits in module caed with the following
> 
> /lib/.libs/librd.so: undefined reference to `typeinfo for 
> MusicBrainz5::CEntity'
> collect2: error: ld returned 1 exit status
> 

I don't fully understand that error. But I think what it says is that 
the linker was able to find libmusicbrainz5, but it was unable resolve 
the symbol CEntity.

Here's what I learned comparing library versions on CentOS 7 and Ubuntu 
18.04 (both current and recently updated):

  - libcoverart is at version 1.0.0 on both distributions

  - libmusicbrainz5 is at version 5.1.0+git20150707-7 on Ubuntu, and
version 5.0.1-9 on CentOS 7

Did you installed the libmusicbrainz5-dev package from the Ubuntu 
repository? I wonder if that "point release" of libmusicbrainz5 is 
causing problems with your compilation?

Maybe try installing the MusicBrainz library from source?

   ~David


> This is preceded by several pages of "undefined reference" entries all 
> having to do with either coverart or musicbrainz5.
> 
> I assume it is a lib location problem.
> 
> Any help appreciated
> 
> Tim Camp
> WZEW-FM
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] rivjackglasscastnotes.txt

2020-08-15 Thread David Klann
Ha! I just started a Rivendell Wiki page addressing these issues:

http://wiki.rivendellaudio.org/index.php/Jack

I'm hopeful that we can pull all the disparate JACK notes and tools 
together in one (or two) place(s): notes on the wiki, source on github?

Is there a better place to put all the notes? Otherwise, request a wiki 
account if you don't already have one, and let's try to make that wiki 
the "golden" source of information.

Thanks!

   ~David Klann


On 8/15/20 8:42 AM, drew Roberts wrote:
> Shawn,
> 
> I have been seeing a good amount of requests for help with rivendell 
> (and jack) and glassgui recently.
> 
> I am happy to help but decided it might be worth while trying to make 
> some simple notes to help others when my time is short or I am not 
> available.
> 
> This should help you get rivendell to start jack:
> 
> https://github.com/zotz/drradioutils/blob/master/rivmisc/rivjackglasscastnotes.txt
> 
> There are other files in this github directory that will help with the 
> complete "system"
> 
> https://github.com/zotz/drradioutils/tree/master/rivmisc
> 
> all the best,
> 
> drew
> 
> -- 
> Enjoy the *Paradise Island Cam* playing
> *Bahamian Or Nuttin* - https://www.paradiseislandcam.com/

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] 3.4.0 Skipped items in log that were edited.

2020-09-08 Thread David Klann
Hi Gavin,

On 9/8/20 8:31 AM, you wrote:
> 
> Never mind :)
> 

Wait! No fair! :)

What was the resolution to the issue?

It sounds like it might have been user error, but I'm curious to know 
what you (or Rivendell) did do make this happen.

Thanks!

   ~David Klann

> 
> On 9/09/2020 1:26 am, Gavin Stephens wrote:
>> I had a strange sequence of events this morning. On the way home from
>> work after 1am I heard a song that was sopose to play, not play even
>> though the log said it should have. Instead the one after it did, then
>> about 50 seconds in to the next song, the one that was sopose to play
>> finally started playing over the top of the next one and turned it in
>> to a train wreck.
>>
>> Fortunately I was under a minute from reaching the Rivendell machine
>> so double checked what I had done but with conclusion as to why it
>> occurred.
>>
>> I added a new song to the library this afternoon, and went in to the
>> already scheduled logs created by log manager via log edit, and
>> swapped out the odd existing song by choosing edit cart, to select the
>> new one for it's replacement. Then saved the log. I've done this to
>> about 4 logs for the rest of this week so I'm nervous it'll happen
>> again now.
>>
>> I've checked the log both in RDAirPlay as the two of them were both
>> playing, and the new item is set to segue, not play or stop or timed
>> event. Same with the item after it. What would cause this behaviour?
>>
>> Cheers,
>>
>> Gavin.
>>

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] 3.4.0 Skipped items in log that were edited.

2020-09-08 Thread David Klann
On 9/8/20 10:29 AM, Gavin Stephens wrote:
> 
> 
> On 9/09/2020 2:40 am, David Klann wrote:
>> Hi Gavin,
>>
>> On 9/8/20 8:31 AM, you wrote:
>>> Never mind :)
>>>
>> Wait! No fair! :)
>>
>> What was the resolution to the issue?
>>
>> It sounds like it might have been user error,
> 
> Verified :) The song in question had an end segue marker where the start
> should be, needless to say the start segue marker was automatically
> placed at the start of the audio respectively. The fact I didn't catch
> it was a small combination of:  The first song having only a long bass
> line and quieter than the next song that kept it drowned out on the
> audio processing. The second, was both songs were in the same key so the
> bass was even more harder to distinguish under the second song playing
> in a traveling car, despite how loud I normally listen in the car. Once
> the first song went full bandwidth that's when I caught it, which
> sounded like a place the song could have started from without an intro
> before it.
> 
> Cheers,
> 
> Gavin.

Ah! I get it! Makes complete sense. Thanks for clearing up the mystery.

   ~David

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Now and Next Data Missing from RDairplay

2020-09-16 Thread David Klann
Hey chris,

The setting of Now & Next data depends on the version of Rivendell 
you're using. It sounds to me as if you're using Version 3.X. If that's 
the case look for a button labeled "PyPAD Instances" in the 
RDAdmin->Manage Hosts..." window (the same "button cluster" as the 
"RDAirplay" button).

The button *was* in the place you're looking for it in the pre-3.X versions.

Hope this helps!

   ~David Klann

On 9/16/20 12:06 AM, chris cottingham wrote:
> I am trying to setup now playing data export. I have read online that I 
> need to configure this via RDadmin-Manage 
> Hosts-%Host%-RDairplay-Configure now & next data. But I do not have the 
> button to press under my RDairplay for my host. It is missing.
> 
> How do I enable this feature or where do I find this button since it is 
> not where the manual says it is.
> 
> Thanks!
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Now and Next Data Missing from RDairplay

2020-09-16 Thread David Klann
On 9/16/20 9:49 AM, chris cottingham wrote:
> 
> That's what I needed!
> 
> Thanks everyone!
> 
> 

By the way, I just updated the wiki article on this subject.

See 
http://wiki.rivendellaudio.org/index.php/How_to_get_now_playing_information_into_a_text_file
 
for all the details with screenshots.

For other wiki updates, see 
http://wiki.rivendellaudio.org/index.php/Special:RecentChanges

   ~David

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Chain To Log Setting RDAdmin Setting

2020-09-17 Thread David Klann
Hey Mike,

On 9/17/20 1:54 PM, you wrote:
> Hi all,
> 
> I wanted to get some clarification about the "Insert CHAIN TO at log 
> end" option for services under RDAdmin.
> 
> Does this mean that RD will automatically add log chain events to the 
> end of logs, or does it have to be done manually? I was told it was 
> supposed to automatically add the log chain events at the end of a log, 
> but it doesn't seem to do that in our environment (we are running 2.19.3).
> 

That checkbox in RDAdmin is indeed supposed to direct RDLogManager to 
add a "Chain To" event at the end of generated logs. How are you 
creating your logs?

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] ASI Rivendell and ALSA

2020-09-21 Thread David Klann
Greetings One and All!

I have a Rivendell application that includes an Audio Science 5042 card 
and a Digigram LX-DANTE card. Rivendell is using the ASI card directly, 
and the Dante card via JACK. Does anyone know of a way to use JACK with 
the ASI card?

I blacklisted the "asihpi" driver, so it's available via ALSA. But 
Rivendell still wants to use the card directly. Is there a way to tell 
Rivendell to ignore the fact that there is an ASI card in the computer?

Thanks!

   ~David Klann


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Reaching out again: Insert CHAIN TO at log end not working

2020-09-30 Thread David Klann
Hey Michael,

Without more information, such as helpful verbose output from 
rdlogmanager(1), it's tough to diagnose a problem like this.

I recommend running it under strace(1) to see what exactly rdlogmanager 
is doing at the system call level. Here is an example of how I might use 
strace to figure out what rdlogmanager is doing:

 strace -ttt -f -ff -s 1024 -o /tmp/rdlogmanager-strace rdlogmanager 
-g -s Production -d 10

Read the manual page to learn about all the options. (You can use 
RDLogEdit to later delete that log if you'd like.)

I ended up with five files in /tmp, one of which contains the regular 
expression:

 insert into LOG_LINES.*,TYPE=5,

TYPE=5 means a Log Chain event. Search for that expression in your 
strace output and then look at the lines preceding that (if you can find 
one).

Also search for the string:

 select `CHAIN_LOG` from `SERVICES` where `NAME`=

in your strace output. The line after the line containing that string 
should contain a bunch of backslashes and numbers, and also the letter 
"Y" or "N". This indicates whether a log chain should be inserted at the 
end of a log.

Tracing execution with strace can lead you down a rabbit hole, but it's 
a pretty simple and effective way to learn what's going on with the 
program. There's probably more one could do with strace to troubleshoot 
this, or maybe run rdlogmanager in GDB to more precisely trace the 
execution.

Hope this helps!

   ~David Klann



On 9/29/20 12:54 PM, Michael Vasile wrote:
> Hi all,
> 
> I'm reaching out again to see if anyone has any ideas or could help with 
> an issue we're having with RD 2.19.3 and log chain events. We use a cron 
> job that runs RDLogManager from the command line to generate 3 days 
> worth of logs each day. We have the "Insert CHAIN TO at log end" option 
> enabled on all of our services (we have 2). However, this option does 
> nothing for us, and we have to manually add the log chain events.
> 
> Any help/ideas would be greatly appreciated.
> 
> Thank you,
> Mike Vasile
> 
> ──
> *Michael Vasile*
> Chief Engineer
> WITR-FM 89.7
> engin...@witr.rit.edu <mailto:engin...@witr.rit.edu>

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] I broke it

2020-10-22 Thread David Klann
Hey Tim,

On 10/21/20 1:52 PM, you wrote:
> Greetings,
> 
> Got a new install of 3.4.1 on centos7 using the rivendell-install from 
> paravel.
> everything was working great.
> I made a change to the /etc/environment file to add a path and a couple 
> of variables we need for console control.
> rebooted, now all rd applications respond with
> rdadmin: error while loading shared libraries: libqt-mt.so.3: cannot 
> open shared object file: No such file or directory
> 

That file is included in the package qt3-3.3.8b-51.el7.x86_64. I 
recommend either reinstalling the qt3 package, or simply create the 
symlink like this:

 sudo ln -s /usr/lib64/qt-3.3/lib/libqt-mt.so.3.3.8 
/usr/lib64/qt-3.3/lib/libqt-mt.so

If that ln(1) command fails, I'd recommend reinstalling the qt3 package.

Hope this helps!

   ~David Klann

> This file is not on the pc that I can find and it appears to be a qt3 file.
> I'm confused.
> 
> Tim Camp
> WZEW-FM
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Help RN just won't work

2020-10-24 Thread David Klann
n 10/24/20 11:44 AM, Fred Gleason wrote:
> On Oct 24, 2020, at 12:05, Tim Camp  > wrote:
> 
>> RMLSend touch does indeed work, file is created.
>> our scripts do not
>> another simple command such as RN echo "something" > file! does not.
> 
> Likely it's the STDOUT redirection that’s the problem. Those redirection 
> operators (‘<‘, ‘>’, ‘|’, etc) are part of bash(1), not echo(1).
> 
> Try something like ‘RN sh -c echo something > file!’ (You may have to 
> escape the strings following the echo; I don’t have Rivendell loaded up 
> at the moment to test here).

Knowing a bit about shell quoting, I suggest the following if Fred's 
suggestion above does not work for you Tim:

 RN /bin/sh -c "echo something > /tmp/your-filename-here"

My understanding of the "-c" option to most shells (from reading `man 
bash`, etc.) is that they expect a complete command as a single, quoted 
argument, especially if you want the invoking shell (/bin/sh in this 
case) to perform the redirection.

Hoping your mystery is getting closer to being solved!

   ~David

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Avoiding Use of ASI Audio Device

2020-11-20 Thread David Klann
Hey Friends,

I have an old ASI 5020 card installed in a system running Rivendell 
3.4.1. I would like to use this card via audio routing with JACK, and 
not directly in Rivendell.

I can't seem to convince Rivendell to disregard its existence in the 
system -- even by NOT loading the asihpi driver. Rivendell seems to be 
aware of it without that driver loaded.

Can someone help me understand how to prevent Rivendell from directly 
using an ASI card?

Thanks much!

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Avoiding Use of ASI Audio Device

2020-11-22 Thread David Klann
Hi Fred,

Thanks for your thoughts on this issue I'm having.

On 11/22/20 12:38 PM, you wrote:
> On Nov 20, 2020, at 15:47, David Klann  <mailto:dxkl...@pm.me>> wrote:
> 
>> I have an old ASI 5020 card installed in a system running Rivendell
>> 3.4.1. I would like to use this card via audio routing with JACK, and
>> not directly in Rivendell.
>>
>> I can't seem to convince Rivendell to disregard its existence in the
>> system -- even by NOT loading the asihpi driver. Rivendell seems to be
>> aware of it without that driver loaded.
>>
>> Can someone help me understand how to prevent Rivendell from directly
>> using an ASI card?
> 
> There are at least two possible ways:
> 
> 1) Compile Rivendell with HPI support disabled, by adding the 
> ‘--disable-hpi’ switch to the ‘./configure’ invocation. This of course 
> means that you cannot use the stock RPMs.
> 

Although on my "lab" system I'm compiling current "development" versions 
of Rivendell, my goal is to make this (somewhat academic) experiment 
work with stock RPMs.

> 2) Load a version of the AudioScience HPI driver that lacks support for 
> that model. Since the ASI5020 was end-of-lifed some time ago by ASI, 
> chances are good that simply updating the ‘hpklinux’ package to the 
> latest version (available at 
> http://static.paravelsystems.com/audioscience/centos/7/).
> 

This *seems* like a reasonable approach! But ... the hitch is that the 
ALSA driver also uses the Audio Science firmware blobs. The snd-asihpi 
driver expects firmware files to be in /lib/firmware/asihpi. And as soon 
as I drop the file "dsp5000.bin" (the firmware for the 5020 card) into 
that directory Rivendell seems to "see" it and RDAdmin->Manage 
Hosts->[hostname]->Audio Resources reports that the Audio Science driver 
is loaded (even though I've explicitly blacklisted the asihpi driver):

 SUPPORTED AUDIO DRIVERS
   AudioScience HPI [4.14.03]
   JACK Audio Connection Kit [Generic]
   Advanced Linux Sound Architecture (ALSA) [1.1.8]

Note that even though I have the latest hpklinux driver package loaded 
(4.20.10-1.el7.centos from the Paravel repo), it appears to be picking 
up the version info from the firmware blob.

I realize that I can move the firmware blob out of /lib/firmware/asihpi 
and load the snd-asihpi driver *after* Rivendell has started. That *kind 
of* works.

Do you have any other thoughts on my understanding about what's 
happening with the firmware blob?

Thanks Fred!

   ~David

> Cheers!
> 
> 
> |-|
> | Frederick F. Gleason, Jr. |             Chief Developer             |
> |                           |             Paravel Systems             |
> |-|
> |         A room without books is like a body without a soul.         |
> |                                                                     |
> |                                                         -- Cicero   |
> |-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Touchscreen Monitor

2020-11-22 Thread David Klann
On 11/22/20 6:18 PM, Emir Yapıcı wrote:
> I have used Waveshare’s 10 inch hdmi touchscreen monitor with Rivendell. 
> It was pretty well but right click was not supported.
> 
> “Display” connected via HDMI and “touch” connected via USB, like a mouse.
> 
> 23 Kas 2020 Pzt, saat 02:49 tarihinde wa7skg  <mailto:wa7...@wa7skg.com>> şunu yazdı:
> 
> Is anybody using touchscreens with Rivendell? Does it work well? Are
> there any economical touchscreens available these days? Is it really
> worth the extra expense? How is the touchscreen connection handled?
> They
> used to be via VGA and a serial port, but nothing has serial ports
> anymore. Is it via HDMI and USB?
> 
> Thanks

And I have a Rivendell system with an Acer 22" HDMI touchscreen display. 
USB for the "mouse". Though the display can do 1920x1080, I like to set 
it to a lower resolution so the RDAirplay window isn't so tiny.

With that caveat, it works fine.

   ~David Klann

> 
> 
> -- 
> 73,
> Michael WA7SKG
> 
> "Any day you do not learn one new thing is a wasted day."
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> <mailto:Rivendell-dev@lists.rivendellaudio.org>
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 
> -- 
> *
> *
> *Emir YAPICI*
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Avoiding Use of ASI Audio Device

2020-11-23 Thread David Klann
Hi Fred,

On 11/23/20 7:30 AM, you wrote:
> On Nov 22, 2020, at 19:21, David Klann  <mailto:dxkl...@pm.me>> wrote:
> 
>> This *seems* like a reasonable approach! But ... the hitch is that the
>> ALSA driver also uses the Audio Science firmware blobs. The snd-asihpi
>> driver expects firmware files to be in /lib/firmware/asihpi. And as soon
>> as I drop the file "dsp5000.bin" (the firmware for the 5020 card) into
>> that directory Rivendell seems to "see" it and RDAdmin->Manage
>> Hosts->[hostname]->Audio Resources reports that the Audio Science driver
>> is loaded (even though I've explicitly blacklisted the asihpi driver):
>>
>> SUPPORTED AUDIO DRIVERS
>>   AudioScience HPI [4.14.03]
>>   JACK Audio Connection Kit [Generic]
>>   Advanced Linux Sound Architecture (ALSA) [1.1.8]
>>
>> Note that even though I have the latest hpklinux driver package loaded
>> (4.20.10-1.el7.centos from the Paravel repo), it appears to be picking
>> up the version info from the firmware blob.
>>
>> I realize that I can move the firmware blob out of /lib/firmware/asihpi
>> and load the snd-asihpi driver *after* Rivendell has started. That *kind
>> of* works.
>>
>> Do you have any other thoughts on my understanding about what's
>> happening with the firmware blob?
> 
> You’re right! I’d forgotten all about the firmware aspect.
> 
> This is going to be a tough one to manage in any kind of way that avoids 
> weird, one-off processes. The firmware is absolutely needed by all ASI 
> cards to work (regardless if it’s via HPI or ALSA). It would 
> theoretically be possible to implement HPI support in a way that would 
> merely use the firmware supplied by the ALSA package, but that is going 
> to run into version issues sooner or later (the firmware supplied by 
> CentOS is typically quite old compared to the current version being 
> shipped by ASI; which often means that newer model cards will not work 
> with it). Perhaps we could provide an update to the CentOS firmware 
> package with the current ASI firmware?
> 
> Another possible approach would be to make the HPI driver a ‘soft’ 
> dependency (similar to the way the MPEG libraries are handled). That 
> would involve some code changes in Rivendell.
> 
> No easy answers here I fear.
> 

Thanks for your thoughts on this. So far it's mainly an "academic 
project", but there was enough about it that was compelling to me that I 
thought I'd follow through with it.

I've got it working, though it's a very manual process right now. It's 
kind of fun seeing the ASI card in the JACK connection graph, and now I 
can send the output from RDAirplay to both the studio console *and* the 
stream encoder (thanks for GlassCoder too!) without a super convoluted 
setup (well, I guess everything is relative... :)

The only other oddity is that since the ASI 5020 card is *so old*, I
haven't found any recent firmware -- it's at 4.14.03, which works, but ...

Thanks!

   ~David

> Cheers!
> 
> 
> |-|
> | Frederick F. Gleason, Jr. |             Chief Developer             |
> |                           |             Paravel Systems             |
> |-|
> |         A room without books is like a body without a soul.         |
> |                                                                     |
> |                                                         -- Cicero   |
> |-|

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDAirplay Load Log at Startup.

2020-12-13 Thread David Klann
Hey John,

On 12/13/20 11:20 AM, you wrote:
> Hi gang,
> Having an issue with load log on startup.
> Rdairplay loads the log like its suppose to but I can't seem to get it 
> to autostart.
> I have tried the following in the Rdairplay config.
> Log:0+
> Log 0+
> Log:+
> Log +
> In all of the above Rdairplay doesn't load any log.
> But will load the log if nothing is added after the log name.
> Running Rdairplay from the command line with log:0+ works as advertised.
> 
> I have also tried setting the first line in the startup log with a timed 
> start of 00:00,:02.0 Start immediately but it doesn't fire the cart.
> 
> I thought I had this working before but its been so long since I 
> restarted it that I guess it wasn't.
> 
> Thanks for any insight
> John

I believe the "Log:" text box in RDAdmin > Manage Hosts > [hostname] > 
RDAirplay allows you to name either a) the name of a specific log to 
load on startup, or b) a wildcard pattern representing a log to load. 
See Table E.2 in the Ops Guide 
(http://opsguide.rivendellaudio.org/html/appendix.metadata_wildcards.html) 
for details about wildcard patterns.

I've just peeked at the RDAirplay sources and don't see anything about 
options for specifying Log startup as you've shown above (and that are 
accepted on the rdairplay(1) command line).

My recollection is that on startup (launching from a menu) RDAirplay 
*used to* fire the next Timed event when the time came (as expected). It 
seems that it's not doing that as of 3.4.1 (and now 3.5.0). I just 
started RDAirplay with a log containing hourly (top of the hour) "Timed, 
Make Next" events, and the log did *not* start at at the specified time. 
I tried it with the event transition set to "Segue" and "Play"; no 
difference. When I changed the event to "Timed, Start Immediately", it 
*did* cause RDAirplay to play the log at the specified time. More 
investigation needed...

Hope this helps!

   ~David Klann
Broadcast Tool & Die
broadcasttool.com

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] InnoDB Support

2020-12-14 Thread David Klann
Hi Tom,

On 12/14/20 8:41 AM, you wrote:
> 
> Hi all,
> 
> Just wondering what the state of play is for InnoDB?
> 
> In the changelog, I see: "2.15.0 (2016-07-29) Bug fix: complete support
> for the MySQL/MariaDB InnoDB database engine" - however after looking at
> the engine in use on my Rivendell 3.5.0 test box all tables are still
> MyISAM.
> 
> Is this just a case of changing the running engine myself, or are there
> plans for Paravel to push out some changes to move to InnoDB? And if I
> do change to InnoDB will any future schema changes break because of
> this?
> 
> The reason I ask is that I'm looking to try running the database on
> MariaDB with Galera Cluster as a potential option for cross-WAN database
> access.
> 
> Many thanks,
> Tom
> 

Disclaimer: I am not a database expert or an educated DBA.

I can't say what the formal plans are regarding switching the database 
engine, but I *can* tell you that I have successfully converted a few 
Rivendell databases to InnoDB (on MariaDB server). I have also 
implemented a multi-node WAN cluster using Galera. It's a lot more work 
(initial setup and on-going maintenance) than I had expected, but it has 
been worth the effort for this specific use case.

I have not figured out a way to consistently maintain a (Galera) quorum 
when one site loses Internet connectivity for an extended period. 
Usually things work and the cluster recovers from the outage, but there 
are still times when the cluster goes "split brain" and I have to 
initialize it from scratch.

Would love to continue this conversation off list (or on list) if you're 
interested.

   ~David Klann
Broadcast Tool & Die
broadcasttool.com / btd.support

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] No ftp?

2020-12-15 Thread David Klann
Hey Michael,

On 12/15/20 1:24 PM, you wrote:
> 
> I'm following the installation instructions on the wiki at
> http://static.paravelsystems.com/rivendell-install-rd3/rivendell-install-rhel7.html
> 
> I got everything installed and rebooted. Before I got into
> configuration, I wanted to download a new driver for the nic. I tried to
> ftp the file and get "-bash: ftp: command not found" I find it hard to
> believe a basic install would not have an ftp client installed
> automatically. We will be doing a lot of ftp of program files. Is there
> a particular ftp client I should install?
> 
> 

I would recommend using either wget(1) or curl(1). Both support FTP (and 
encrypted FTP) and are (IMHO) way easier to use than an old fashioned 
ftp command-line client.

Hope this helps!

   ~David Klann

> --
> 73,
> Michael WA7SKG
> 
> "Any day you do not learn one new thing is a wasted day."
> ___


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Bulk Add Audio Files

2020-12-16 Thread David Klann
Michael,

rdimport(1) is your friend.

   man rdimport

to get started.

   ~David

On 12/16/20 5:07 PM, wa7skg wrote:
> 
> In my feeble memory, I seem to recall there was a way to bulk add audio
> files. I have a couple hundred songs to import into Rivendell and adding
> one at a time will take forever. Any way to speed it up?
> 
> Thanks,
> Michael
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Bulk Add Audio Files

2020-12-16 Thread David Klann
By the way, several folks hang out in #rivendell on IRC: 
chat.freenode.net. Might be a more expedient way to get quick answers to 
simple questions...

   ~David

On 12/16/20 5:07 PM, wa7skg wrote:
> 
> In my feeble memory, I seem to recall there was a way to bulk add audio
> files. I have a couple hundred songs to import into Rivendell and adding
> one at a time will take forever. Any way to speed it up?
> 
> Thanks,
> Michael
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDCatch Questions - Weird Wildcards

2020-12-17 Thread David Klann
Hi Michael

On 12/17/20 1:02 PM, you wrote:
> 
> Yes, there are more.
> 
> One program I need to download has a troublesome file structure.
> 
> There is a folder for the program, then a folder for each week beginning
> on Monday. The weekly folder holds the files for that week. For example:
> 
> ftp.hostname.com/program/2020-1214/1214_program_episode-name.mp3
> ftp.hostname.com/program/2020-1214/1215_program_episode-name.mp3
> ftp.hostname.com/program/2020-1214/1216_program_episode-name.mp3
> ftp.hostname.com/program/2020-1214/1217_program_episode-name.mp3
> ftp.hostname.com/program/2020-1214/1218_program_episode-name.mp3
> 
> ftp.hostname.com/program/2020-1221/1221_program_episode-name.mp3
> ftp.hostname.com/program/2020-1221/1222_program_episode-name.mp3
> ftp.hostname.com/program/2020-1221/1223_program_episode-name.mp3
> ftp.hostname.com/program/2020-1221/1224_program_episode-name.mp3
> ftp.hostname.com/program/2020-1221/1225_program_episode-name.mp3
> 

This looks to me like:

ftp.hostname.com/program/%Y-%m%d/%m%d_program_episode-name.mp3

This only works if "program_episode-name" does not change from episode 
to episode. At this time, Rivendell does not support arbitrary 
differences in download filenames. Does this program have an RSS feed? 
If so, I might be able to help with a script I wrote specifically for 
downloading and ingesting audio from an RSS feed.

   ~David Klann

> etc.
> 
> I can't figure out how to set up a wildcard to deal with the weekly
> folder with Monday's date.
> 
> This is a popular program that quite a few stations carry, so I'm sure
> there must be a way to automate it.
> 
> Thanks for any ideas.
> 
> Michael
> 
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] RDCatch Questions - Weird Wildcards

2020-12-17 Thread David Klann
Using RDCatch to download media, the wildcards are expanded with *the 
current values*. So, using date wildcards, you can download the episode 
for December 14th only *on December 14th*. One option is to code the 
*exact name* of the remote file in the RDCatch job, but this is what I 
would call "anti-automation".

As chris cottingham writes, and as far as I know, you'll need to use a 
facility external to Rivendell to do anything else.

   ~David


On 12/17/20 5:50 PM, wa7skg wrote:
> 
> No RSS feed. I tried
> 
> ftp.hostname.com/program/%Y-%m%d/%m%d_program_*.mp3
> 
> but both %d wildcards pull the same day each time. The first one needs
> to keep Monday's date while the second one does Monday through Friday.
> 
> I need to keep this all within rdcatch, no scripts or exotic solutions.
> If it can't be done in rdcatch, then the staff will have to go back to
> manual daily downloads like they were doing prior to Rivendell.
> 
> Michael
> 
> David Klann wrote on 12/17/20 2:32 PM:
>> Hi Michael
>>
>> On 12/17/20 1:02 PM, you wrote:
>>>
>>> Yes, there are more.
>>>
>>> One program I need to download has a troublesome file structure.
>>>
>>> There is a folder for the program, then a folder for each week beginning
>>> on Monday. The weekly folder holds the files for that week. For example:
>>>
>>> ftp.hostname.com/program/2020-1214/1214_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1214/1215_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1214/1216_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1214/1217_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1214/1218_program_episode-name.mp3
>>>
>>> ftp.hostname.com/program/2020-1221/1221_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1221/1222_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1221/1223_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1221/1224_program_episode-name.mp3
>>> ftp.hostname.com/program/2020-1221/1225_program_episode-name.mp3
>>>
>>
>> This looks to me like:
>>
>> ftp.hostname.com/program/%Y-%m%d/%m%d_program_episode-name.mp3
>>
>> This only works if "program_episode-name" does not change from episode
>> to episode. At this time, Rivendell does not support arbitrary
>> differences in download filenames. Does this program have an RSS feed?
>> If so, I might be able to help with a script I wrote specifically for
>> downloading and ingesting audio from an RSS feed.
>>
>>  ~David Klann
>>
>>> etc.
>>>
>>> I can't figure out how to set up a wildcard to deal with the weekly
>>> folder with Monday's date.
>>>
>>> This is a popular program that quite a few stations carry, so I'm sure
>>> there must be a way to automate it.
>>>
>>> Thanks for any ideas.
>>>
>>> Michael
>>>
>>>
>>> ___
>>> Rivendell-dev mailing list
>>> Rivendell-dev@lists.rivendellaudio.org
>>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>>>
>>

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Filling Time with Music

2020-12-23 Thread David Klann
On 12/23/20 6:04 AM, erm...@studioplume.com wrote:
> 
> On 2020-12-22 23:24, wa7skg wrote:
>> What is the best way to fill a block of time with music? We start
>> pretty much each hour with a teaching program for about 26 minutes.
>> I'd like to fill the rest of the hour with music. Is there a way to
>> create an event that just pulls songs sort of randomly to fill X
>> number of minutes? Or do I have to create a dozen or so events to each
>> pull one song?
> 
> You can certainly create an event that randomly picks carts from a
> group.
> About scheduling and generating logs, this page
> https://thebrettblog.wordpress.com/2009/12/31/rivendell-how-to-schedule-music/
>covers the entire process in a thorough and illustrated manner.
> That's what kickstarted me when converting my station to rivendell 10
> years ago.
> 
> . leo

There is also a more up-to-date tutorial on music scheduling on the 
Rivendell wiki at http://wiki.rivendellaudio.org/index.php/Log_Creation 
with links to the reference manual.

   ~David Klann
broadcasttool.com

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audioscience board outputs

2020-12-24 Thread David Klann
Michael,

On 12/24/20 11:12 AM, you wrote:
> 
> Is there any way to use the computer onboard sound for the audition output?
> 

Yes, absolutely (as long as it is supported by ALSA).

Once you configure your ALSA devices using rdalsaconfig(1) they will 
appear as additional audio devices in the host's list of audio resources.

In my experience, ASI cards always show up as the lower numbered cards 
(starting with the first card, number Zero). ALSA devices show up as 
higher-numbered cards.

Note that running rdalsaconfig stops the currently playing audio in 
RDAirplay...

   ~David Klann


> Michael
> 
> 
> Fred Gleason wrote on 12/24/20 9:05 AM:
>> On Dec 24, 2020, at 12:00, wa7skg > <mailto:wa7...@wa7skg.com>> wrote:
>>
>>> Only have one host, so, yes. Single computer system for now.
>>
>> Interesting.
>>
>> Could you post the contents of the ‘Audio Resources Information’ dialog
>> in rdadmin(1)?
>>
>> Cheers!
>>


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Audioscience board outputs

2020-12-24 Thread David Klann
Hi Michael,

On 12/24/20 12:18 PM, you wrote:
> 
> Please forgive my ignorance and feeble memory. I can't seem to figure
> out how to use rdalsaconfig.
> 
> I open it with sudo rdalsaconfig. A box pops up with three devices
> 
> HDAudio Generic - ALC1150 Analog[01]
> HDAudio Generic - ALC1150 Analog[02]
> HDAudio Generic - ALC1150 Analog[03]
> 
> I can select or unselect each one. There are Save and Cancel buttons at
> the bottom of the list.
> 
> Do those represent my onboard sound? If I select them then hit Save,
> nothing really happens. Nothing changes in my available Audio Resources.
> 
> Michael

Yes, those represent the different entities within your on-board audio 
devices. Clicking on a line "selects" that device (i.e., makes it 
available for use as a Rivendell audio device). You'll need to have 
create and/or write permissions on the file /etc/asound.conf in order to 
save your choices in rdalsaconfig(1). Clicking the "Save" button saves 
your choices.

I recommend playing with it -- try selecting just one line (like, the 
first one) and see if you can hear audio with headphones or a speaker 
plugged into the output of the on-board audio jack.

   ~David


> 
> 
> 
> 
> David Klann wrote on 12/24/20 10:04 AM:
>> Michael,
>>
>> On 12/24/20 11:12 AM, you wrote:
>>>
>>> Is there any way to use the computer onboard sound for the audition output?
>>>
>>
>> Yes, absolutely (as long as it is supported by ALSA).
>>
>> Once you configure your ALSA devices using rdalsaconfig(1) they will
>> appear as additional audio devices in the host's list of audio resources.
>>
>> In my experience, ASI cards always show up as the lower numbered cards
>> (starting with the first card, number Zero). ALSA devices show up as
>> higher-numbered cards.
>>
>> Note that running rdalsaconfig stops the currently playing audio in
>> RDAirplay...
>>
>>  ~David Klann
>>
>>
>>> Michael
>>>
>>>
>>> Fred Gleason wrote on 12/24/20 9:05 AM:
>>>> On Dec 24, 2020, at 12:00, wa7skg >>> <mailto:wa7...@wa7skg.com>> wrote:
>>>>
>>>>> Only have one host, so, yes. Single computer system for now.
>>>>
>>>> Interesting.
>>>>
>>>> Could you post the contents of the ‘Audio Resources Information’ dialog
>>>> in rdadmin(1)?
>>>>
>>>> Cheers!
>>>>
>>
>>

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Weather and Time Announcements

2020-12-24 Thread David Klann
Hi again Michael,

On 12/24/20 12:35 PM, you wrote about time & temp automation:
> 
> This station I am moving to Rivendell is currently running on a Windows
> system. They somehow download the local weather from a NOAA site and
> cull the local temperature from it. They have a Windows text-to-speech
> program that reads the .txt file with the temp and creates a short mp3
> file with the current temperature. They have a whole list of mp3 files
> covering temps from 0-115 degrees. They also have a bunch of time files
> with 0-12 hours, 0-59 minutes, and am/pm. I can't seem to find anything
> in the existing Windows computer that actually performs this function.
> 
> The previous engineer who set all this up basically evaporated leaving
> no documentation. The current staff knows it happens, but no idea how it
> works. I found the time and temp audio files and an exe text2speech app,
> but nothing else.
> 
> 
> Is there anything in Rivendell or Linux I could use to provide this
> functionality?
> 
> 

I recently wrote a ZSH shell script that might satisfy your desire to 
accomplish this. As you explain, this script requires all the "raw" 
audio files to previously exist (preferably in WAV format, but that's 
not a hard requirement).

My script is attached to this message, and is also available at 
https://github.com/opensourceradio/ram/blob/master/usr/local/bin/btd-time-temp

It uses a few ZSH-specific things, as well as ffmpeg(1) to concatenate 
multiple audio files together on the fly. And it uses xmlstarlet(1) to 
parse the output and extract the current temperature from the US 
National Weather Service current conditions XML feed. This command 
installs the basic requirements:

sudo yum install -y zsh ffmpeg xmlstarlet

Current(ish) FFMPEG packages are hosted at the Nux Dextop CentOS 
repository. More details at http://li.nux.ro/repos.html

Activate the script using your favorite timed job scheduler (e.g., cron, 
systemd, etc.). In order to be timely, I recommend running the script 
every minute, but you can adjust the frequency to match your scheduled 
"time and temp" Events in your logs. Since they are updated hourly, the 
script fetches the current conditions from the NWS only once per hour 
regardless of how often you run it.

Complete setup documentation is in the script comments. Usage 
documentation is available with "btd-time-temp --help".

Hope you find it useful!

   ~David Klann
broadcasttool.com
#!/bin/zsh
# shellcheck shell=bash disable=SC2016,SC2154,SC2162
# SC2016: The single quotes are inside a double-quoted string
# SC2154: I know about all the referenced but not assigned variables
# SC2162: I do not care about read and its backslashes

# This script complies with Semantic Versioning: http://semver.org/
vMajor=0
vMinor=2
vPatch=3
vHash='$Hash: 942035a$'

##
##
##
## rd-time-temp.sh
##
## Provide current time and temperature audio snippets to Rivendell.
##
## This script uses the current system time (please make sure the
## system time is synchronized to a working network time protocol
## (NTP) service) and the United States National Weather Service (NWS)
## (based on a pre-configured location) to import audio files into a
## specific audio Cart in the Rivendell Library.
##
## Audio files containing time readings can contain any meaningful
## sounds, and must be named using four digits like this: HHMM. You
## should at least provide audio files for every minute of every hour
## between midnight () and noon (1200). More "sophisiticated" time
## announcement files may include the "am" and "pm" suffixes (or
## simply "a" or "p") in order to differentiate the time of day.
##
## Similarly, audio files containing temperature readings are named
## for the numeric temperature. (There is no distinction between
## Farenheit and Celcius.) Temperature readings are retrieved using
## the NWS four character location codes (see
## https://w1.weather.gov/xml/current_obs/seek.php?Find=Find for the
## state-by-state lists of locations). This script uses the XML file,
## not the RSS file. The URL is formed using the four-character code
## inserted into this string (substituting for ""):
## https://w1.weather.gov/xml/current_obs/.xml
##
## Specify the NWS location code using the "-l" (or "--location")
## command line parameter. See usage() for more details.
##
##
##

##
#

Re: [RDD] Weather and Time Announcements

2020-12-24 Thread David Klann
Holy Cow Lorne!

On 12/24/20 3:13 PM, you wrote:
> 
> Hi Michael,
> 
> For getting the Time part, one way that I looked at in the past (but
> never implemented due to the work requried) is to record an audio cut
> for each minute of the day.  To cut down on the amount of recording it
> is possible to re-use the AM and PM recordings if you don't specify AM
> or PM in the audio.  So for example, you could use the same audio for
> saying "It's 12:42" for both 12:42 am and 12:42 pm, leaving it to the
> listeners to figure out if it is AM or PM.
> 
> You'll want to make 2 carts, one for AM and one for PM, each with 720
> cuts of audio representing each minute of that time block.  Daypart each
> cut for the minute of time that it represents.
> 
> When you want the time of day to play on the air, just schedule the
> appropriate cart (or both carts back to back).  It'll only play the cut
> that is dayparted for that specific minute.
> 
> It takes a bunch of effort to get this type of thing set up, but once
> set up it should just work.  Furthermore it is all internal to Rivendell
> so if someone needs to figure it out in the future it should be fairly
> straight forward to figure out.
> 
> Lorne Tyndale
> 

This is brilliant! It never even occurred to me to load all the time 
cuts into a cart and then daypart each cut. Fabulous! Thanks for this!

I'm also playing with festival(1) and flight(1) to get the times and 
temperatures pre-recorded with voices sounding as human as possible with 
a synthesizer. Of course, nothing beats real, actual human voice 
recordings, but there are some pretty nice sounding "fake" voices 
available these days...

   ~David Klann
broadcasttool.com

>>
>> This station I am moving to Rivendell is currently running on a Windows
>> system. They somehow download the local weather from a NOAA site and
>> cull the local temperature from it. They have a Windows text-to-speech
>> program that reads the .txt file with the temp and creates a short mp3
>> file with the current temperature. They have a whole list of mp3 files
>> covering temps from 0-115 degrees. They also have a bunch of time files
>> with 0-12 hours, 0-59 minutes, and am/pm. I can't seem to find anything
>> in the existing Windows computer that actually performs this function.
>>
>> The previous engineer who set all this up basically evaporated leaving
>> no documentation. The current staff knows it happens, but no idea how it
>> works. I found the time and temp audio files and an exe text2speech app,
>> but nothing else.
>>
>>
>> Is there anything in Rivendell or Linux I could use to provide this
>> functionality?
>>
>>
>> --
>> 73,
>> Michael WA7SKG
>>
>> "Any day you do not learn one new thing is a wasted day."
>> ___
>> Rivendell-dev mailing list
>> Rivendell-dev@lists.rivendellaudio.org
>> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
> 

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Weather and Time Announcements

2020-12-24 Thread David Klann
Lorne,

> David,
> 
>> This is brilliant! It never even occurred to me to load all the time
>> cuts into a cart and then daypart each cut. Fabulous! Thanks for this!
> 
> Yup, the only reason I recommend doing 2 carts - one for AM and the
> other for PM - is because there is a limit of 999 cuts per cart, so it
> isn't possible to load the full 1440 cuts into a single cart.
> 
> Lorne Tyndale
> 

Ah. Good point, Lorne!

Thanks for that additional detail!

   ~David Klann

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


  1   2   3   >