A Middleware System for Distributed Real-Time Mult

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

AMiddlewareSystemforDistributedReal-TimeMultimediaProcessingNelsonPosseLago1y,FabioKon11DepartmentofComputerScienceInstituteofMathematicsandStatisticsUniversityofSãoPaulo@ime.usp.br,kon@ime.usp.brAbstract.ThedevelopmentofdistributedapplicationsforMultimediaprocess-ingwithreal-timeandlow-latencyrequirementsfacesafewkeychallenges.Inthispaper,wecharacterizesuchapplicationsas“rmreal-timeapplications”,arguethattheyshouldbebasedonacallbackarchitecture,anddiscusstheas-sociatednetworklimitations.Wepresentanewmiddlewaresystemaddressingthechallengesdiscussedanddescribeanapplicationfordistributedaudiopro-cessingbuiltontopofthismiddleware.Experimentalresultsobtainedwiththisapplicationdemonstratetheeffectivenessofourapproach.1.IntroductionInseveralcomputersystemsformultimediaprocessing(suchasinteractivesystemsforthecreationandeditionofmultimedia,particularlyaudioandmusic,orsystemsforpat-ternrecognitionincontinuousmedia),itishighlydesirabletobeabletodotheprocessingnotonlyinreal-time,butalsowithlowlatency.Lowlatencyprocessingmeansthatthetimeittakesforachangeintheinputdataofthecomputersystemtoproducethecorre-spondingoutputshouldbeassmallaspossible;howsmallisenough,giventheusualgoalthatthelatencymustnotbeperceptiblebytheuser,variesalotwiththeapplicationandtheuser,butitseemsthatupto5msforthemostcriticalinteractiveapplicationsisrea-sonable(seeadiscussiononthesubjectinSteinmetzandNahrstedt,1995,p.588–599).Ininteractivesystems,forinstance,lowlatencyprocessingservesthepurposeofgivingtheusertheillusionthatthesystemperformsthecomputationsimmediately,whichisveryimportantsincetheusergenerallyadjustshisinputtothecomputersystemaccordingtotheoutputhereceivesfromthesystem.Lowlatencymayalsobeimportantifwewantpartofthedatatobeprocessedinreal-timebyexternaldevices(forinstance,wemaywanttorouteapreviouslycapturedaudiosignalintoananalogeffectsprocessorandrecordtheresultingsoundwithoutlosingthetiminginformationofthesignal).Asimpleexampleofasituationinwhichreal-timelow-latencyprocessingisde-sirableistherecordingofanacousticmusicalinstrumentwithsomeeffectprocessing(forThisresearchissupportedinpartbyagrantfromCNPq,proc.55.2028/02-9.yNelsonPosseLagoispartlysupportedbyCAPES.instance,anelectricguitarprocessedbyacustomdigitaldistorter):whileplayingthein-strument,themusicianneedstohearthesoundbeingproduced;iftheprocessinglatencyistoolarge,themusicianwillhavedifcultiestoperformcorrectly.Systemsformultimediaprocessinginreal-time,includingthosewherelowla-tencyisdesirable,usuallydemandlargeprocessingpowerfromthecomputersystem.Problemsthatdemandlargecomputingpower(asmultimediadoes)areusuallysolvedbyparallelordistributedprocessing.However,thereal-timeandlowlatencyrequirementsofmostmultimediaprocessingsystemscoupledwiththeneedforsometimesstrictsyn-chronizationbetweenseveralmediastreamsaswellasthecostofmultiprocessorsystemshavemademostmultimediaapplicationstobedevelopedforsingleprocessorsystems.Intheaudioandmusicprocessingeld,itisnotuncommonforsuchsystemstobecoupledwithdedicated,specializedhardwareinordertoboostthesystemperformance.Suchhardware,however,isusuallyproprietaryandexpensive:forexample,asinglepro-cessingboardfortheProToolsHDsystemcosts4timesasmuchasacompletemid-rangedesktopPCintheUSA1.Onsmallerstudioswithoutaccesstohigh-endequipment,itisrelativelycommonforthecomputingpowerduringaudioeditingtobeexceeded;whenthishappens,usuallypartoftheprocessingisdoneinnon-realtimemodeandthepro-cessedresultissavedtodisk,whichisinconvenient,sincethepossibilityofinteractiveexperimentationislost.Giventheeconomicadvantageandexibilityofferedbygeneral-purposecom-putersystems,beingabletoprocessmultimediadatainadistributedsystemwouldbeuseful,allowinguserstogobeyondtheperformancelimitsofsingleprocessorsystemsinamorecost-effectiveway.Homeandsmallmusicrecordingstudios,whichusuallycannotaffordtheexpensiveproprietarysolutions,wouldbenetfromtheuseofsmallclustersofolderandinexpensivecomputerstoincreasetheirprocessingpoweratalowcost.Thispaperdescribes(1)therequirementsandlimitationsofmechanismsfordis-tributedmultimediaprocessinginreal-timewithlow-latency,(2)asimplemiddlewaresystemwhichisatestbedfortheideaspresentedhere,and(3)anapplicationgearedto-wardsaudioprocessingdevelopedontopofthismiddleware.Insection2.1.wecharacter-izesystemsformultimediaprocessingasrmreal-timeapplicationsandargue,insection2.2.,thatlow-latency,rmreal-timesystemsshouldbebasedoncallbackfunctions.Insections2.3.and2.4.,wediscussthepossibleapproachesforloaddistribution,addressthelimitspresentedbythenetworkingmedium,andproposeamechanismtosolvethem.Finally,insection3.1.,wedescribethecurrentimplementationofthesystemandpresentexperimentalresultsinsection5.2.ProblemsandmechanismsWhendesigningamethodfordistributedprocessingofmultimediainreal-timewithlowlatency,onemusttakeintoaccountseveralfactors.Thespeciccharacteristicsofmul-timediawithregardtoreal-timeandlowlatency,whichsuggesttheuseofspecializedreal-timeoperatingsystems(suchasRT-Linux–BarabanovandYodaiken,19

1 / 16
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功