X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fdemo.sh;h=594de9eaefa3e98e50f402cbaba331a2b8c7dbbf;hb=6c28114d8ba4ca42fc7834bb31e77d81f72cb312;hp=af3f4d64168148720de7fc48e8adab8105ceed80;hpb=576a7246e3d714bf052e72ab4ce10e4232f333ef;p=vlc diff --git a/doc/demo.sh b/doc/demo.sh index af3f4d6416..594de9eaef 100755 --- a/doc/demo.sh +++ b/doc/demo.sh @@ -16,7 +16,7 @@ CMD="" pyschedelic() { echo -e "\n- Psychedelic demo -\nconfiguration\n" - echo -en "Please chose an input. Live camera feeds are best.\ninput? " + echo -en "Please choose an input. Live camera feeds are best.\ninput? " read input echo -e "\n$VLC --sub-filter marq --marq-position 8 --marq-size 30 --marq-color 16776960 --marq-marquee \"VLC - Psychedelic video filter\" --vout-filter distort --distort-mode psychedelic $input" } @@ -24,9 +24,9 @@ pyschedelic() gradient() { echo -e "\n- Gradient demo -\nconfiguration\n" - echo -en "Please chose an input. Live camera feeds are best.\ninput? " + echo -en "Please choose an input. Live camera feeds are best.\ninput? " read input - echo -en "Please chose a logo to display (or multiple logos according to the --logo-file syntax)\nlogo? " + echo -en "Please choose a logo to display (or multiple logos according to the --logo-file syntax)\nlogo? " read logofile echo "new a broadcast enabled loop setup a input $input @@ -39,9 +39,9 @@ control a play" > "`pwd`/demo.vlm" mosaic() { echo -e "\n- Mosaic demo -\nconfiguration\n" - echo -en "Please chose a background input.\nbackground input? " + echo -en "Please choose a background input.\nbackground input? " read bg - echo -en "Please chose a video to blend.\nvideo? " + echo -en "Please choose a video to blend.\nvideo? " read vid echo "new a broadcast enabled loop setup a input $vid @@ -51,18 +51,10 @@ control a play" > "`pwd`/demo.vlm" echo -e "\n$VLC --sub-filter mosaic:marq --marq-marque \"VLC - mosaic\" --marq-position 6 --mosaic-width 120 --mosaic-height 90 --mosaic-rows 1 --mosaic-cols 1 --mosaic-alpha 150 --extraintf telnet --telnet-host localhost --vlm-conf `pwd`/demo.vlm $bg" } -opengl() -{ - echo -e "\n- OpenGL cube demo -\nconfiguration\n" - echo -en "Please chose an input.\ninput? " - read input - echo -e "\n$VLC -V opengl --opengl-effect transparent-cube $input" -} - wall() { echo -e "\n- Video wall demo -\nconfiguration\n" - echo -en "Please chose an input.\ninput? " + echo -en "Please choose an input.\ninput? " read input echo -en "Do you want to use rotated laptops/screens ?\n[y/N] " read rot @@ -83,8 +75,7 @@ VLC cool demos script 1. psychedelic video filter 2. gradient video filter 3. mosaic - 4. OpenGL cube - 5. video wall + 4. video wall EOF echo -n "demo number? " @@ -94,9 +85,8 @@ case "$choice" in 1) pyschedelic;; 2) gradient;; 3) mosaic;; - 4) opengl;; - 5) wall;; - *) echo "Wrong answer ... try again"; exit 1;; + 4) wall;; + *) echo "Unrecognized input, please try again"; exit 1;; esac echo -e "\nUse the previous command to run the demo."