Enc Encoding ding, F , Fas ast and Slo t and Slow: w: Low-Latency Video Processing Using Thousands of Tiny Threads
Presenter: Wen-Fu Lee
Enc Encoding ding, F , Fas ast and Slo t and Slow: w: - - PowerPoint PPT Presentation
Enc Encoding ding, F , Fas ast and Slo t and Slow: w: Low-Latency Video Processing Using Thousands of Tiny Threads Presenter: Wen-Fu Lee Outline Vision & Goals mu: Supercomputing as a Service Fine-grained Parallel Video
Presenter: Wen-Fu Lee
Currently, running such pipelines on videos takes hours and hours, even for a short video.
Can we achieve interactive collaborative video editing by using massive parallelism?
running in parallel, with instant startup.
compression efficiency.
function” service.
*Inter-process communication (IPC)
Virtual machine Cloud Service Providers Amazon: EC2 Microsoft: Azure Google: GCE Think about it as Base layer Unit = VM Pros & cons [+] Thousands of threads [+] Arbitrary Linux executables [-] Minute-scale startup time
[-] High minimum cost
Running 3,600 threads for 1 sec > $20
Virtual machine Cloud function Cloud Service Providers Amazon: EC2 Microsoft: Azure Google: GCE AWS Lambda Google Cloud Functions Think about it as Base layer Unit = VM Event-driven compute (microservice) Unit = function Pros & cons [+] Thousands of threads [+] Arbitrary Linux executables [-] Minute-scale startup time
[-] High minimum cost
[+] Thousands of threads [+] Arbitrary Linux executables [+] Sub-second startup [+] Sub-second billing Running 3,600 threads for 1 sec > $20 10 cents
computations on AWS Lambda.
inter-thread communication.
Coordinator Worker Worker Worker RPC RPC RPC State Rendezvous
State
worse the compression efficiency.
a digital video.
image reconstructed image compressed frames
image1 image2 image3
Interframe1 (diff) key frame
(diff)
image’
1
Image’
2
Image’
3
Decoder key frame Interframe1 (diff)
Interframe2 (diff)
K I I K I I K I I K I I
state’ state’ state’ state:=(images’[3]) K I I K I I K I I K I I state’
K I I I I I I I I I I I
K I I I I I I I I I I I
K I I I I I I I I I I I
K I I I I I I I I I I I
K I I I I I I I I I I I
Slow Part Fast Part Slow Part
Encoding Speed
PyWren ExCamera Same Using AWS Lambda Different No Inter-thread communication Serverless Coordinator & rendezvous
application to get maximum benefits out of it.
presentation/fouladi