I need a small script which run three vlc command on the same time (on Ubuntu server 14.04) as stated below:
#!/bin/sh
cvlc -vvv v1 --sout "#transcode{vcodec=h264,vb=999,acodec=mp3,ab=128,deinterlace channels=2,samplerate=44100}:standard{mux=ts,dst=x.x.x.x:5656,access=http}"
cvlc -vvv v2 --sout "#transcode{vcodec=h264,vb=999,acodec=mp3,ab=128,deinterlace channels=2,samplerate=44100}:standard{mux=ts,dst=x.x.x.x:5657,access=http}"
cvlc -vvv v3 --sout "#transcode{vcodec=h264,vb=999,acodec=mp3,ab=128,deinterlace channels=2,samplerate=44100}:standard{mux=ts,dst=x.x.x.x:5658,access=http}"
I need the perfect way or method to have the script running 3 VLC commands (all commands must be running as same time and silently on back ground).
Also need another script to check if the above script is running (all vlc command on above script is running) if stopped or crashed to restart it.
Thanks in Advance
Shata
Aucun commentaire:
Enregistrer un commentaire