scaling next generation video backend infrastructurezafar shahid facebook. video landscape •color...

31
Scaling next generation video backend Infrastructure Zafar Shahid FaceBook

Upload: others

Post on 24-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Scaling next generation

video backend Infrastructure

Zafar Shahid

FaceBook

Page 2: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Landscape • Color Gamut

Page 3: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Landscape • VR 360 Video

Page 4: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Landscape • High Dynamic Range

• Too dark

• Too bright

• Display Ranges

Page 5: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Landscape • Resolution

• HD

• UHD

• 8K

• Frame Rate

• Interlace

• 30, 60,120 fps

• Bit Depth

• 8/10 bit

Page 6: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video On Demand

Page 7: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

• HLS Live Streaming

• Mpeg DASH

• RTMP

Live Streaming

Page 8: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Conferencing

Page 9: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Codecs

Page 10: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Video Processing @ Scale • Process millions of videos per day

• Peak load (New year Eve)

• Electricty Cost

Page 11: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Security • Transport Layer Security (TLS)

• DTLS (UDP)

• Certificate Exchange

Page 12: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Certificate

Exchange

Page 13: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Storage @ Scale • Each storage media has some Advanatages &

Limitations

• Cache

• DRAM

• Hard Drive

• SSD

• Tape Drives

Page 14: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

File Abstraction

Page 15: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

File Abstraction

Page 16: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

With & Without Abstraction

Page 17: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

File Transfer

“Not representative of actual server locations.”

Page 18: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

File Transfer via Vcache

“Not representative of actual server locations.”

Page 19: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

File write @Scale

Page 20: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Machine Learning@Scale

Page 21: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Machine learning@ Scale • What problems to solve

• Classification

• Ranking

• Video encoding decisions

• Content understanding

• Making decisions

• Training speed

• Training frequency

Page 22: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Machine Learning

Page 23: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale - Challenges

Page 24: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – AI Eco System

Page 25: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – AI Eco System

Page 26: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – Web Tier

Page 27: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – Compute/Memory & Storage

Tier

Page 28: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – GPU Processing Tier

Page 29: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

ML @Scale – Mapping Hardware to ML

Page 30: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

What is @ Scale • Nothing is available off-the-shelf.

• Build your own

• What is next biggest problem @Scale

Page 31: Scaling next generation video backend InfrastructureZafar Shahid FaceBook. Video Landscape •Color Gamut . Video Landscape •VR 360 Video . Video Landscape •High Dynamic Range

Questions?