3 ########################################################################
4 # VLC demo command line generator
6 ########################################################################
8 #TODO: change on Max OS X
9 VLC="./vlc --quiet --color "
14 echo -e "\n- Psychedelic demo -\nconfiguration\n"
15 echo -en "Please chose an input. Live camera feeds are best.\ninput? "
17 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"
22 echo -e "\n- Gradient demo -\nconfiguration\n"
23 echo -en "Please chose an input. Live camera feeds are best.\ninput? "
25 echo -en "Please chose a logo to display (or multiple logos according to the --logo-file syntax)\nlogo? "
27 echo "new a broadcast enabled loop
29 setup a output #duplicate{dst=mosaic-bridge,select=video}
30 control a play" > "`pwd`/demo.vlm"
31 echo "VLM batch file saved to `pwd`/demo.vlm"
32 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"
37 echo -e "\n- Mosaic demo -\nconfiguration\n"
38 echo -en "Please chose a background input.\nbackground input? "
40 echo -en "Please chose a video to blend.\nvideo? "
42 echo "new a broadcast enabled loop
44 setup a output #duplicate{dst=mosaic-bridge,select=video}
45 control a play" > "`pwd`/demo.vlm"
46 echo "VLM batch file saved to `pwd`/demo.vlm"
47 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"
52 echo -e "\n- OpenGL cube demo -\nconfiguration\n"
53 echo -en "Please chose an input.\ninput? "
55 echo -e "\n$VLC -V opengl --opengl-effect transparent-cube $input"
60 echo -e "\n- Video wall demo -\nconfiguration\n"
61 echo -en "Please chose an input.\ninput? "
63 echo -en "Do you want to use rotated laptops/screens ?\n[y/N] "
67 echo -e "\nLeft hand side:\n$VLC --vout-filter wall:transform --transform-type 90 --wall-cols 2 --wall-rows 1 --wall-active 0 $input"
68 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"
71 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"
72 echo -e "\nRight hand side:\n$VLC --vout-filter wall --wall-cols 2 --wall-rows 1 --wall-active 1 $input"
79 1. psychedelic video filter
80 2. gradient video filter
86 echo -n "demo number? "
95 *) echo "Wrong answer ... try again"; exit 1;;
98 echo -e "\nUse the previous command to run the demo."
99 echo "Note: make sure that you reset your preferences before running these demos."