Re: [RDD] macro cart, RN command, with parameters

2020-02-25 Thread drew Roberts
Cowboy,

On Tue, Feb 25, 2020 at 5:35 PM Cowboy  wrote:

> On Tue, 25 Feb 2020 16:13:58 -0500
> drew Roberts  wrote:
>
> > Mucking about trying to see if I can update my old rivendell / rdairplay
> > does video in place of audio trick.
>
>  Personally, I prefer mplayer for a non-interactive application.
>

If you are referring only to the playout/streaming side of the equation, I
am open to any and all that I can figure out how to make operate the way I
want. Do you know how to do this with mplayer?

Do you have any help for me with RN commands of the form:

RN /somepath/somescript.sh someparameter!

I am not getting that to work whereas I can get something of the form:

RN /somepath/somescriptsomeparameter.sh!

to work. The problem is this means an unwieldy number of scripts. One for
each video macro card plus 1 more to do the work as opposed to only 2...

all the best,

drew

>
> --
> Cowboy
>
> This will be a memorable month -- no matter how hard you try to forget it.
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>


-- 
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] macro cart, RN command, with parameters

2020-02-25 Thread Cowboy
On Tue, 25 Feb 2020 16:13:58 -0500
drew Roberts  wrote:

> Mucking about trying to see if I can update my old rivendell / rdairplay
> does video in place of audio trick.

 Personally, I prefer mplayer for a non-interactive application.

-- 
Cowboy 

This will be a memorable month -- no matter how hard you try to forget it.
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] macro cart, RN command, with parameters

2020-02-25 Thread drew Roberts
Mucking about trying to see if I can update my old rivendell / rdairplay
does video in place of audio trick.

Videos are represented by macro carts.

This does not work: (Cart number 72's lines)

RN /home/rd/playvid.sh 72!
SP 184317!

This works: (Cart number 700011's lines)

RN /home/rd/playvid700011.sh!
SP 236960!

The SP lines match the length of the video to be played to keep things in
sync

The relevant bash script files referenced and one more to make things work:

==
$ cat playvid.sh
#! /bin/bash
# the below works but vlc closes down between videos try something else
#cvlc /var/vid/$1.mp4
# lets try netcat to a vlc running the rc interface like so:
# vlc -I rc --rc-host 0.0.0.0:8080
# and the netcat line wil be:
#echo "add /var/vid/$1.mp4" | nc 192.168.86.224 4212 &


#echo "add /var/vid/$1.mp4" >> /tmp/playingvid.txt
#echo "add /var/vid/$1.mp4" | nc 192.168.86.225 4212


echo `/bin/whoami` > /tmp/playvid

echo $1 >> /tmp/playvid

sudo -i -u rd /home/rd/playvidrun.sh $1
==
$ cat playvid700011.sh
#! /bin/bash
# the below works but vlc closes down between videos try something else
#cvlc /var/vid/$1.mp4
# lets try netcat to a vlc running the rc interface like so:
# vlc -I rc --rc-host 0.0.0.0:8080
# and the netcat line wil be:
#echo "add /var/vid/$1.mp4" | nc 192.168.86.224 4212 &


#echo "add /var/vid/$1.mp4" >> /tmp/playingvid.txt
#echo "add /var/vid/$1.mp4" | nc 192.168.86.225 4212


echo `/bin/whoami` > /tmp/playvid

echo "700011" >> /tmp/playvid

sudo -i -u rd /home/rd/playvidrun.sh 700011
==
$ cat playvidrun.sh
#! /bin/bash
# the below works but vlc closes down between videos try something else
#cvlc /var/vid/$1.mp4
# lets try netcat to a vlc running the rc interface like so:
# vlc -I rc --rc-host 0.0.0.0:8080
# and the netcat line wil be:
#echo "add /var/vid/$1.mp4" | nc 192.168.86.224 4212 &


echo `/bin/whoami` > /tmp/playvidrun

echo "beginning..." >> /tmp/playvidrun

echo $0 >> /tmp/playvidrun
echo $1 >> /tmp/playvidrun

export DISPLAY=:0.0
echo "add /var/vid/$1.mp4" >> /tmp/playvidrun
#echo "add /var/vid/$1.mp4" | nc 192.168.86.225 4212
echo "add /var/vid/$1.mp4" | nc 192.168.86.145 4212

echo "ending..." >> /tmp/playvidrun
==

192.168.86.145 is an ubuntu box with vlc being run like this:

vlc --rc-host 192.168.86.145:4212 -I rc

I did not want to add the repository to my centos 7 rivendell box that
would provide me with vlc.

After that long setup, can someone tell me what I am doing wrong with the:

RN /home/rd/playvid.sh 72!

approach that does not work?

I would much rather be able to have 2 script files to rive this whole
things rather than a file for each video plus 1 more...

I still have to make the playing side cleaner and perhaps send to a
streaming server as opposed to the screen... We shall see...

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