X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fdemo.sh;h=af3f4d64168148720de7fc48e8adab8105ceed80;hb=ab1e2b524cb535d8c2ef1a7914f359d679d83136;hp=b565711bc7519c127606f69e9cbe68976388fd35;hpb=31c3d77dbc6b826618ab351542e47f0eaa591f2b;p=vlc diff --git a/doc/demo.sh b/doc/demo.sh index b565711bc7..af3f4d6416 100755 --- a/doc/demo.sh +++ b/doc/demo.sh @@ -2,11 +2,15 @@ ######################################################################## # VLC demo command line generator -# $Id:$ +# $Id$ ######################################################################## #TODO: change on Max OS X -VLC="./vlc --quiet --color " +if test ".`uname -s`" = ".Darwin"; then + VLC="./VLC.app/Contents/MacOS/VLC --quiet --color " +else + VLC="./vlc --quiet --color " +fi CMD="" pyschedelic() @@ -28,6 +32,7 @@ gradient() setup a input $input setup a output #duplicate{dst=mosaic-bridge,select=video} control a play" > "`pwd`/demo.vlm" + echo "VLM batch file saved to `pwd`/demo.vlm" echo -e "\n$VLC --sub-filter mosaic:marq:logo --mosaic-width 120 --mosaic-height 90 --mosaic-cols 1 --mosaic-rows 1 --marq-position 8 --marq-size 30 --marq-color 65280 --marq-marquee \"VLC - Gradient video filter\" --logo-file $logofile --vout-filter distort --distort-mode gradient --extraintf telnet --telnet-host localhost --vlm-conf `pwd`/demo.vlm $input" } @@ -42,7 +47,35 @@ mosaic() setup a input $vid setup a output #duplicate{dst=mosaic-bridge,select=video} control a play" > "`pwd`/demo.vlm" - echo -e "\n$VLC --sub-filter mosaic --mosaic-height 90 --mosaic-width 120 --mosaic-rows 1 --mosaic-cols 1 --mosaic-alpha 150 --extraintf telnet --telnet-host localhost --vlm-conf `pwd`/demo.vlm $bg" + echo "VLM batch file saved to `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? " + read input + echo -en "Do you want to use rotated laptops/screens ?\n[y/N] " + read rot + case "$rot" in + "y"|"Y"|"yes") + echo -e "\nLeft hand side:\n$VLC --vout-filter wall:transform --transform-type 90 --wall-cols 2 --wall-rows 1 --wall-active 0 $input" + echo -e "\nRight hand side:\n$VLC --vout-filter wall:transform --transform-type 90 --wall-cols 2 --wall-rows 1 --wall-active 1 --sub-filter marq --marq-marquee \"VLC - Video wall\" $input" + ;; + *) + echo -e "\nLeft hand side:\n$VLC --vout-filter wall --wall-cols 2 --wall-rows 1 --wall-active 0 --sub-filter marq --marq-marquee \"VLC - Video wall\" $input" + echo -e "\nRight hand side:\n$VLC --vout-filter wall --wall-cols 2 --wall-rows 1 --wall-active 1 $input" + ;; + esac } cat << EOF @@ -50,6 +83,8 @@ VLC cool demos script 1. psychedelic video filter 2. gradient video filter 3. mosaic + 4. OpenGL cube + 5. video wall EOF echo -n "demo number? " @@ -59,6 +94,8 @@ case "$choice" in 1) pyschedelic;; 2) gradient;; 3) mosaic;; + 4) opengl;; + 5) wall;; *) echo "Wrong answer ... try again"; exit 1;; esac