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 700002's lines) RN /home/rd/playvid.sh 700002! 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 700002! 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