#!/bin/bash

# TRON LEGACY!

# rm -f *.pgm

# # The Shining Johnny
# # youtube-dl -f 22 https://www.youtube.com/watch?v=d-ABIIZV3vA -o source/The_Shining_Johnny.mp4
./encode The_Shining_Johnny source/The_Shining_Johnny.mp4 00:00:00 00:02:45 25 1687

# # Amiga Boing
# # youtube-dl -f 22 https://www.youtube.com/watch?v=YlAhRJjOhDg -o source/Amiga_Ball.mp4
./encode Amiga_Ball source/Amiga_Ball.mp4 00:00:00 00:02:45 30 1048

# # ADB Color Classic 1
# # youtube-dl -f 22 https://www.youtube.com/watch?v=yRvyrUFgGU8 -o source/Adrian1.mp4
# ./encode Adrian1 source/Adrian1.mp4 00:00:00 00:02:45 29.970 770

# # Star Wars Intro
./encode Star_Wars_Intro source/StarWars.mp4 00:01:53 00:01:00 23.976 915

# # MayTheForceBeWithYou
# # youtube-dl -f 22 https://www.youtube.com/watch?v=66Ux1D9MDOk -o source/May_The_Force.mp4
./encode May_The_Force source/May_The_Force.mp4 00:00:00 01:00:00.000 29.970 2481

# # Star Wars Attack
./encode Star_Wars_Death_Star source/StarWars.mp4 01:53:38 00:03:59.950 23.976 1841

# # 300
./encode 300 source/300.mp4 00:11:38 00:01:40 23.976 1630

# Matrix Bullet Time
./encode Matrix_Bullet_Time source/Matrix.mp4 01:46:15 00:00:43.280 23.976 918

# Bad Apple
#youtube-dl -f 18 https://www.youtube.com/watch?v=i41KoE0iMYU -o source/Bad_Apple.mp4
./encode Bad_Apple source/Bad_Apple.mp4 00:00:00 00:10:00 29.970 1823

# Tron race
#youtube-dl -f 22 https://www.youtube.com/watch?v=1kyiQzc4134 -o source/Tron_Race.mp4
./encode Tron_Race source/Tron_Race.mp4 00:00:00 00:01:00 23.976 697

# Gangnam Style
#youtube-dl -f 18 https://www.youtube.com/watch?v=9bZkp7q19f0 -o source/Gangnan_Style.mp4
./encode Gangnan_Style source/Gangnan_Style.mp4 00:00:00 00:04:12 23.976 2790
#### ./encode Gangnan_Style source/Gangnan_Style.mp4 00:00:00 00:01:00 23.976 20

# The Wall
#youtube-dl -f 18 https://www.youtube.com/watch?v=YR5ApYxkU-U -o source/The_Wall.mp4
./encode The_Wall source/The_Wall.mp4 00:00:25 00:06:00 29.970 5500

# Sweet Dreams
# youtube-dl -f 18 https://www.youtube.com/watch?v=qeMFqkcPYcg -o source/Sweet_Dreams.mp4
./encode Sweet_Dreams source/Sweet_Dreams.mp4 00:00:00 00:03:34 25 769

# 8 bits
# youtube-dl -f 22 https://www.youtube.com/watch?v=GoGpLl-SUfk -o source/8Bits.mp4
./encode 8Bits source/8Bits.mp4 00:00:00 00:03:28 25 1860

# Old Apple ad
./encode OldAppleAd2 source/OldAppleAd2.mov 00:00:00 00:00:31 12 190

# 1984 Apple ad
./encode 1984 source/1984.mkv 00:00:00 01:00:00 29.970 636

# 2001
# youtube-dl -f 22 https://www.youtube.com/watch?v=avjdKTqiVvQ -o source/2001.mp4
./encode 2001 source/2001.mp4 00:00:00 01:00:00 23.976 3250 sc

# Pulp Fiction Dance
# youtube-dl -f 22 https://www.youtube.com/watch?v=WSLMN6g_Od4 -o source/Pulp_Fiction_Dance.mp4
./encode Pulp_Fiction source/Pulp_Fiction_Dance.mp4 00:00:00 06:00:00 23.976 2237

# Me Want You Play
# youtube-dl -f 22 https://www.youtube.com/watch?v=vU9q7I0FMJM -o source/Me_Want_You_Play.mp4
./encode Me_Want_You_Play source/Me_Want_You_Play.mp4 00:00:00 06:00:00 25 1201

# iPod ad #1
# youtube-dl -f 18 https://www.youtube.com/watch?v=NlHUz99l-eo -o source/iPodAd1.mp4
./encode iPodAd1 source/iPodAd1.mp4 00:00:00 06:00:00 30 1201
# flimmaker --from 1 --to 10000 --fps 30 --buffer-size 300000 --out iPodAd1.flim --profile se30 --filters q5c --dither ordered
# --filters g0.8q5c

# iPod ad #2 (shuffle)
# youtube-dl -f 18 https://www.youtube.com/watch?v=TE4EEwQAfxo -o source/iPodAd2.mp4
./encode iPodAd2 source/iPodAd2.mp4 00:00:00 06:00:00 30 1201
# flimmaker --from 1 --to 10000 --fps 30 --buffer-size 300000 --out iPodAd2.flim --profile se30 --filters q5c --dither ordered

# iPod ad #3
# youtube-dl -f 18 https://www.youtube.com/watch?v=4CPab8U5zTU -o source/iPodAd3.mp4
./encode iPodAd3 source/iPodAd3.mp4 00:00:00 06:00:00 30 1201
flimmaker --from 1 --to 10000 --fps 30 --buffer-size 300000 --out iPodAd3.flim --profile se30 --filters q5c --dither ordered



# ./encode MacFlimTechDemoMacPlus source/MacFlimTechDemoMacPlus.mp4 00:00:00 06:00:00 23.976 636 sc

# Rick Ashley
#youtube-dl -f 18 https://www.youtube.com/watch?v=dQw4w9WgXcQ -o source/Never_Gonna_Give_You_Up.mp4
# ./encode Never_Gonna_Give_You_Up source/Never_Gonna_Give_You_Up.mp4 00:00:00 00:04:00 25 918 &

# JMJ Ethnicolor
#youtube-dl -f 18 https://www.youtube.com/watch?v=dOriOnABbAM -o source/Ethnicolor.mp4
# ./encode Ethnicolor source/Ethnicolor.mp4 00:06:25 00:01:00 30 918

# Marilyn Monroe
# youtube-dl -f 22 https://www.youtube.com/watch?v=fIh6HDeXKGY -o source/Marilyn.mp4
# ./encode Marilyn source/Marilyn.mp4 00:00:00 00:03:28 23.976 50

# youtube-dl -f 18 https://www.youtube.com/watch?v=3QFu8SD4sqE -o source/I_Need_A_Man.mp4

# youtube-dl -f 18 https://www.youtube.com/watch?v=0-Q3cp3cp88 -o source/Missionary_Man.mp4

# youtube-dl -f 22 https://www.youtube.com/watch?v=pWhB-6MR4qs -o source/The_Neo_Demon.mp4



# cp -up z-*/*.flim /mnt/data0/WebSites/www.macflim.com/techdemo/
# cp -up z-*/*.gif /mnt/data0/WebSites/www.macflim.com/techdemo/
# cp -up z-*/*macplus.mp4 /mnt/data0/WebSites/www.macflim.com/techdemo/
# cp -up z-*/*macse.mp4 /mnt/data0/WebSites/www.macflim.com/techdemo/
# cp -up z-*/*se30.mp4 /mnt/data0/WebSites/www.macflim.com/techdemo/
