Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

23
Frédéric (Fred) Lavigne Bluemix Developer Advocate @L2FProd Dark Vision video processing ServerlessConf May 26 & 27, 2016 with IBM Bluemix OpenWhisk

Transcript of Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Page 1: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Frédéric (Fred)LavigneBluemixDeveloperAdvocate@L2FProd

DarkVisionvideoprocessing

ServerlessConfMay 26 & 27, 2016

withIBMBluemixOpenWhisk

Page 2: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

PleaseNote• IBM’sstatementsregardingitsplans, directions, andintentaresubjecttochangeorwithdrawalwithoutnoticeatIBM’ssolediscretion.

• Informationregardingpotentialfutureproducts isintendedtooutlineourgeneralproductdirectionanditshould notberelied oninmakingapurchasingdecision.

• Theinformationmentionedregardingpotentialfutureproductsisnotacommitment,promise, orlegalobligationtodeliveranymaterial,codeorfunctionality. Informationaboutpotentialfutureproductsmaynotbeincorporatedintoanycontract.

• Thedevelopment, release,andtimingofanyfuturefeaturesorfunctionality described forourproductsremainsatoursolediscretion.

• Performanceisbasedonmeasurementsandprojections usingstandardIBMbenchmarks inacontrolledenvironment.Theactualthroughputorperformancethatanyuserwillexperiencewillvarydepending uponmanyfactors,including considerations suchastheamountofmultiprogrammingintheuser’s jobstream,theI/Oconfiguration,thestorageconfiguration, andtheworkloadprocessed.Therefore,noassurancecanbegiventhatanindividual userwillachieveresults similartothosestatedhere.

2

Page 3: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Videowillaccountfor80to90%ofallconsumer Internettrafficby2019

2.5quintillionbytesofdataeveryday

400hoursofvideouploadedeveryminute

Page 4: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Whatalargeamountofdatatoanalyze!

Page 5: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Places,products,objects, faces,people, texts

GuyFieri

Boat

MoulinRouge

Nivea

Page 6: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Usethedatatoimprovesearch,navigation, recommendation, brandresonance

Improvesearchresults

Betternavigation

Makerecommendations

Detectbrands

Page 7: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Agood fitforaserverlessarchitecture

Scalewiththenumberofvideos

Runasynchronously

Severalindependentactions

Page 8: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

DarkVision isanapplicationtodiscoverthesedata.Let’sseeitinaction.

DEMO

Page 9: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Usingthedatawediscovered,wecandeliveranimproveduserexperience.

Page 10: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Adeeperlookattheresults.

Page 11: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Moreresultsforothervideos.

Page 12: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

ImageAnalysis

BuiltwithIBMBluemix,OpenWhisk,Watson

PUBLIC NETWORK CLOUD NETWORK

OPENWHISK

REST APIMOBILEAPP STORAGE

VideoExtractor

Page 13: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Whathappened:extractingFrameswithaDockeraction

OPENWHISK

REST APIMOBILEAPP STORAGE

VideoExtractor

ImageFrames

1 2

3

4

5

Page 14: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

DockerimagestoredonDockerHub

Page 15: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Extractorusesffmpeg, ImageMagick

Page 16: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Whathappened:analyzingframeswithaJavaScriptaction

ImageAnalysis

OPENWHISK

STORAGE

ImageFrame

Watson Visual Recognitionand Alchemy Vision API

12

3

4

5

Page 17: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

ImageanalysisusedImageMagick,WatsonVisualRecognitionandAlchemyVision

Page 18: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

NewVideoRule

VideoExtractor ImageAnalysis

OpenWhiskartifactsusedbyDarkVision

TR

STORAGE

A

NewVideoTrigger NewImageTrigger

NewImageRuleule

ction

rigger

Page 19: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Contributions welcometoperformaudioanalysis(speechtotext,toneandsentimentanalysis)

Getthecode

https://github.com/IBM-Bluemix/openwhisk-darkvisionapp

Page 20: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

TryOpenWhisk

IBMBluemixOpenWhiskofferinghttps://new-console.ng.bluemix.net/openwhisk/

OpenWhiskopensourceprojecthttps://github.com/openwhisk/openwhisk

Page 21: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

Variationonthesametheme,Drones!

Page 22: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

NoticesandDisclaimers• Copyright ©2016byInternational BusinessMachinesCorporation (IBM).Nopart ofthisdocument maybereproduced ortransmitted inanyformwithout written permissionfromIBM.

• U.S.GovernmentUsersRestrictedRights- Use,duplication ordisclosure restrictedbyGSAADPSchedule Contractwith IBM.

• Information inthesepresentations (including information relatingtoproducts thathavenotyetbeenannounced byIBM)hasbeen reviewedforaccuracyasofthedateofinitial publication andcould includeunintentional technical ortypographical errors.IBMshallhavenoresponsibility toupdatethisinformation. THIS DOCUMENTISDISTRIBUTED"ASIS"WITHOUTANYWARRANTY,EITHEREXPRESSORIMPLIED.INNOEVENTSHALLIBMBELIABLEFORANYDAMAGEARISINGFROMTHEUSEOFTHISINFORMATION,INCLUDINGBUTNOTLIMITEDTO,LOSSOFDATA,BUSINESSINTERRUPTION,LOSSOFPROFITORLOSSOFOPPORTUNITY.IBMproductsandservicesarewarranted according tothetermsandconditions oftheagreementsunder whichtheyareprovided.

• Anystatements regardingIBM'sfuturedirection, intent orproduct plansaresubjecttochangeorwithdrawal without notice.

• Performance datacontained herein wasgenerallyobtained inacontrolled, isolatedenvironments.Customer examplesarepresented asillustrations ofhowthosecustomershaveusedIBMproducts andtheresultstheymayhaveachieved.Actualperformance, cost, savingsorother resultsinother operatingenvironments mayvary.

• References inthisdocument toIBMproducts, programs,orservicesdoesnotimplythatIBMintendstomakesuchproducts, programsorservicesavailableinallcountries inwhichIBMoperatesordoesbusiness.

• Workshops,sessionsandassociatedmaterialsmayhavebeenprepared byindependent sessionspeakers,anddonotnecessarilyreflecttheviewsofIBM.Allmaterialsanddiscussions areprovided forinformational purposesonly,andareneither intended to, norshallconstitute legalorother guidanceoradvice to anyindividualparticipant ortheirspecific situation.

• Itisthecustomerʼs responsibility toinsure itsowncompliance withlegalrequirements andtoobtain adviceofcompetent legalcounselastothe identification andinterpretation ofanyrelevantlawsandregulatoryrequirements thatmayaffectthecustomerʼsbusinessandanyactionsthecustomer mayneedtotaketocomplywithsuchlaws.IBM doesnotprovidelegaladviceorrepresent orwarrant thatitsservicesorproducts willensurethatthecustomer isincompliance withanylaw

Page 23: Frederic Lavigne and Stephen Fink - Serverless Video Processing with IBM Bluemix OpenWhisk

NoticesandDisclaimersCon’t.

• Informationconcerningnon-IBMproductswasobtainedfromthesuppliersofthoseproducts,theirpublishedannouncements orotherpubliclyavailablesources.IBMhasnottestedthoseproducts inconnectionwiththispublicationandcannotconfirmtheaccuracyofperformance,compatibilityoranyotherclaimsrelatedtonon-IBMproducts. Questionsonthecapabilitiesofnon-IBMproductsshouldbeaddressedtothesuppliersofthoseproducts. IBMdoesnotwarrantthequalityofanythird-partyproducts,ortheabilityofanysuchthird-partyproductstointeroperatewithIBMʼsproducts. IBMEXPRESSLYDISCLAIMSALLWARRANTIES,EXPRESSEDORIMPLIED,INCLUDINGBUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE.

• Theprovisionofthe informationcontainedherein isnotintendedto,anddoesnot,grantanyrightorlicenseunderanyIBMpatents,copyrights,trademarksorotherintellectualpropertyright.

• IBM,theIBMlogo,ibm.com,Aspera®,Bluemix,Blueworks Live,CICS,Clearcase,Cognos®,DOORS®,Emptoris®,EnterpriseDocumentManagementSystem™,FASP®,FileNet®,GlobalBusinessServices®,GlobalTechnologyServices®,IBMExperienceOne™,IBMSmartCloud®,IBMSocialBusiness®, InformationonDemand,ILOG,Maximo®,MQIntegrator®,MQSeries®,Netcool®,OMEGAMON,OpenPower,PureAnalytics™,PureApplication®,pureCluster™,PureCoverage®,PureData®,PureExperience®,PureFlex®,pureQuery®,pureScale®,PureSystems®,QRadar®,Rational®,Rhapsody®,SmarterCommerce®,SoDA,SPSS,SterlingCommerce®,StoredIQ,Tealeaf®,Tivoli®,Trusteer®,Unica®,urban{code}®,Watson,WebSphere®,Worklight®,X-Force®andSystemz®Z/OS,aretrademarksofInternationalBusinessMachinesCorporation,registeredinmanyjurisdictionsworldwide.OtherproductandservicenamesmightbetrademarksofIBMorothercompanies.AcurrentlistofIBMtrademarksisavailableontheWebat"Copyrightandtrademarkinformation"at:www.ibm.com/legal/copytrade.shtml.