Tải bản đầy đủ - 0 (trang)
Hack 72. Alternate Endings Based on the Time of Day

Hack 72. Alternate Endings Based on the Time of Day

Tải bản đầy đủ - 0trang

Youwillnotwanttoaddtheinteractivityuntilafteryouhavecompletedediting

yourmovie.Uponcompletion,youshouldoutputthreedigitalmovies:

Theentiremovie,minustheending

Theoriginalending

Thealternateending

Youwillcompilethesemoviesintoone,finalmoviefordistribution.



6.13.2.CreatingYourProject

StartanewprojectinLiveStageProandchooseEdit DocumentSettings…to

changesomeofthepropertiesofthemovie.UnderthePlaybacktab,changethe

Transport Controller:pop-uptoStandardMovie.Thiswillplacethefamiliar

timeindicatoratthebottomofthemovie,alongwithaPlay/Pausebuttonand

volumecontrols.

UndertheSettingstab,changethewidthandheightofthemovieto720andto

480,respectively(720x576forPAL).

Ifyouwouldliketoannotateyourmoviewithyourname,somecomments,or

anddisclaimers,forexampleyoucandosoundertheAnnotationstab.



6.13.3.ImportingYourMovies

LocateyourcompletemovieonyourharddriveanddragitontoyourLive-Stage

Protimeline.ThevideoandaudiotrackswillbeseparatedoutandlabeledVideo

1andSound1,respectively.Youcanchangetheirlabelsbydouble-clickingon

thelabelontheleftsideofthewindow.Thiswillopenawindow,allowingyou

tochangethenameofthetrack,theheightandwidth,andawholebunchof

otherdetails(whichdonotpertaintothishack).

6.13.3.1.Addingtheendings.



Inordertomakethealternateendingwork,youobviouslyneedthetwoendings

tobecomeapartoffinalmovie.Locatetheoriginalendinganddragittothe

timeline.Then,changethenameofthevideotracktoOriginalVandtheaudio

tracktoOriginalA.Repeattheprocesswiththesecondalternateending,but

changethetrackstoAlternateVandAlternateA.



Thenamingofthetracksisimportant,becausethatishowyourmovie

isgoingtoidentifywhichtrackstoplay.



Youwillmostlikelynoticethatyourmoviesareallstackedontopofeachother.

Ifyouweretoplayyourmovierightnow,alloftheaudiotrackswouldmix

togetherandonlythetop-layervideotrackwouldbevisible.That'snotwhatyou

want,soyouneedtomovethetwoendingstotheendofyourmovie.

6.13.3.2.Movingtheendings.

Tomovetheendingstotheendofthemovie,youneedtoenabletheTrack

ManipulationToolbyclickingonthebottomiconontheleftsideofthetimeline.

Onceyou'veenabledthetool,yourtrackswillturngrey-silverincolor.Youcan

thenclickonthevideoandaudiotracksanddragthemindividuallytotheendof

themovie.Ifyoumoveslowlyneartheendofthemovie,thetracksshouldsnap

intoplace.Figure6-42showstheTrackManipulationToolasenabledandthe

alternateendingslinedup.

Figure6-42.MovingthetrackswiththeTrackManipulationTool



Ifyouwanttomakesureyourmovieshavelinedupcorrectly,youcanzoominto

thetimeline(justlikemostvideoeditingprograms)usingtheZoomSlideratthe

bottomleftofthewindoworbyusingthekeyboardshortcutstozoomin([)or

zoomout(]).Afterplacingyourendings,clickontheSelectionTool,whichis

thearrowbuttonatthetopleftofthetimeline.

6.13.3.3.Enablingpassiveinteraction.

Okay,you'vegoteverythinglinedup.So,howdoyoumakethemovie"know"

whattimeitisandwhichtracktoplay?YoucaneitheruseaSpriteTrackora

TextTrack.Bothtracktypeswillaccomplishthesamegoal,butIliketheText

Trackforthistask.

ToaddaTextTrack,selectMovie CreateTrack Text.Youwillthenhave

anewtrackatthetopofyourtimeline.Ifyoucannotseethegreen-coloredtrack,

youneedtomovetothestartofyourtimeline.Youshoulddouble-clickthe

greentrack,whichwillopenthetrackeditor.

UndertheTrackEvents,onthebottomleftofthewindow,youwillseealistof

eventswhatcanoccur.ClickontheFrameLoadedeventandtypethefollowing

script:

if(LocalHours<17)

TrackNamed("OriginalA").SetEnabled(True)

TrackNamed("OriginalV").SetEnabled(True)

TrackNamed("AlternateA").SetEnabled(False)

TrackNamed("AlternateV").SetEnabled(False)

else



TrackNamed("OriginalA").SetEnabled(False)

TrackNamed("OriginalV").SetEnabled(False)

TrackNamed("AlternateA").SetEnabled(True)

TrackNamed("AlternateV").SetEnabled(True)

Endif



Thefirstlinecheckstoseeifthelocaltimeofthecomputerisearlierthan5:00

p.m.,or17militarytime(Iknow,Iknow,1700gowiththeflow).Ifthetimeis

earlierthan5:00p.m.,thentheoriginalendingisshown.Otherwise,thesecond

alternateendingisshown.

Ifyoudon'twantthebig,whiteboxplacedbythetexttracktoshow,simply

clickonthetrackname(mostlikely"Text1")anddragitdown,belowyour

videotracks.YoucanalsoselectthePropertiestabandenableKeyedText.If,on

theotherhand,youwanttogetcreativeandaddsometext,gorightahead.Just

makesureyouchangetheDurationofthetextifyoudoaddsome.



6.13.4.CompilingYourMovie

Nowthatyou'veassembledallofthepiecestogether,youcancompile

everythingtogetherandhaveyourcompletemovie.Toexportyourmovie,

chooseFile Export QuickTimeMovie…andtypethenameofyour

movie.Theprocessmighttakeawhile,dependingonthelengthofyourmovie.

That'sit.You'redone.



6.13.5.HackingtheHack

LiveStageProisapowerfulprogramandthereisalotyoucandowithit.Even

withinthelimitationsofenablingalternateendings,youcanchangetheway



yourmoviechoosestheending.Forexample,insteadofusingthehour,youcan

usetheminutewiththeLocalMinutes(orthesecondusingLocalSeconds)

instructioninsteadoftheLocalHours.Youcanalsodeterminewhetherthe

viewerisonaMacintoshorWindowsmachineandevenwhethertheyare

connectedtotheInternet.

Ifyouwanttoreallydivein,youcandeterminetheviewer'sIPaddressand,

fromthatinformationdeterminetheirgloballocationusingsomethinglike

GeoIP(http://sourceforge.net/projects/geoip/;free,opensource).Fromthere,

youcouldfigureoutthecurrentweatherintheirareausingtheWeather

Underground(http://wunderground.com;$5peryear)andthenchooseanending

basedonthatinformation.Ifyouwanttogodownthatpath,lookat"What's

YourVisitor'sWeatherLike?"(http://hacks.oreilly.com/pub/h/999)from

SpideringHacksbyKevinHemenwayandTaraCalishain(O'Reilly).The

possibilitiesarenearlyendless.

Thereallycoolpartisthatthiswholeapproachtoalternateendingsismerely

scratchingthesurfaceofwhatyoucanaccomplishusingQuickTimeandLiveStagePro.



Hack73.AlteraVideo'sLookAfterEditing



Evenifyou'vecompletededitingyourvideo,youcanstillalterits

appearance.

Ifyou'veinstalledQuickTimePro(http://www.apple.com/quicktime/buy/;$29.

99),youhavetheabilitytoaddafiltertoavideowithoutusinganyother

application.Infact,QuickTimeProadds14standardfilters;plus,youcanadd

morefromthird-partycompanies,suchasBuenaSoftware

(http://www.buena.com/;free$30).Youalsohavetheabilitytocut,copy,and

pastevideotogether,aswellascreateskins[Hack#76],createchapters[Hack

#49],andevenconvertamoviefromoneformattoanother[Hack#29].But,I

digress.



6.14.1.GettingtotheFilters

IfyouhaveavideofilethatQuickTimecanread,youcanopenthefileandthen

selectFile Exporttobegintheprocess.



QuickTime-supportedfileformatsinclude:3DMF(MacOS9and

Windows),3GPP,3GPP2,AIFF,AMC,AMR,AnimatedGIF,AU,

AudioCDData(MacOS9),AVI,BMP,CubicVR,DLS,DV,

FlashPix,FLC,GIF,GSM,JPEG2000(MacOSX),JPEG/JFIF,

Karaoke,MacPaint,MacromediaFlash,MIDI,MPEG-1,MP3

(MPEG-1,Layer3),M3U(MP3Playlistfiles),MPEG-2(througha

separatePlaybackComponent),MPEG-4,M4A,M4B,M4P(iTunes

audio),PDF(MacOSX),Photoshop,PICS,PICT,PLS,PNG,QCP

(MacOS9&Windows),QuickTimeImageFile,QuickTimeMovie,

SD2(MacOS9&Windows),SDP,SDV,SF2(SoundFont2),SGI,

SMIL,System7Sound(MacOS9),Targa,Text,TIFF,TIFFFax,

VDU(SonyVideoDiskUnit),VirtualReality(VR),andWAV.



FromtheExportwindow,chooseMovietoQuickTimeMoviefromtheExport

pop-upmenu.Then,clicktheOptions…button,whichbringsuptheMovie

Settingswindow.Figure6-43showstheExportwindow.

InMovieSettingswindow(Figure6-44),youhavetheabilitytochangethe

video'scodecusingtheSettingsbutton,changethevideo'slookusingtheFilter

button,andchangethevideo'ssizeorrotationusingtheSizebutton.

You'reonlyconcernedaboutalteringthevideo'slook,soyoushouldclickthe

Filter…button.

Figure6-43.ExportingamovietoaQuickTimeMovie



Figure6-44.Changingavideo'slookwiththeMovieSettings

window



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 72. Alternate Endings Based on the Time of Day

Tải bản đầy đủ ngay(0 tr)

×