grid video processing - internet2...1/21 outline motivation distributed encoding environment future...

21
1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video Processing Petr Holub [email protected] CESNET z. s. p. o. Laboratory of Advanced Networking Technologies Institute of Computer Science and Faculty of Informatics Masaryk University of Brno Internet2 Fall Member Meeting 2005, Philadelphia, 2005–09–20

Upload: others

Post on 09-Jun-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

1/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Grid Video ProcessingDistributed Approach to Video Processing

Petr [email protected]

CESNET z. s. p. o.

Laboratory of Advanced Networking TechnologiesInstitute of Computer Science and Faculty of Informatics

Masaryk University of Brno

Internet2 Fall Member Meeting 2005, Philadelphia, 2005–09–20

Page 2: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

2/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Outline

Motivation

Distributed Encoding EnvironmentPerformance Evaluation

Future Work

Real-WorldTM Usage Example

Page 3: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

3/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Motivation

• Huge production of video content (e. g. lecture archivesand live streams from lecture halls).

• Problems with centralized storage capacity(price/capacity/performance).

• Use existing computing and storage infrastructures.

• Create scalable tool from financial point of view.

Page 4: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

4/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Distributed Encoding Environment

• Uses PC clusters of MetaCenter project as computingenvironment.

• IBP storage infrastructure of DiDaS project as transientstorage for processing.

User Interface Job Preparation

Local Scheduler Interfaces

Job Submission

Job Monitoring

Media Processing Tools

Media Analyzer

Media Splitter

Media Processor

Media Merger

Distributed Storage

Page 5: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

5/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Internet Backplane Protocol

• Distributed storage with soft-state/best-effortcharacteristics.

• Storage servers are called IBP depots.• Time-limited allocations.• Volatile allocations.• End2end services: encryption, checksums, compression.

• Support for redundancy.• Both performance and reliability.

• libxio library developed at Masaryk University/CESNET

• Implements POSIX calls for both local files and IBPstored files.

• Easy enabling of IBP in existing applications.

Page 6: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

6/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DEE WorkflowDV upload

RM chunksremoval

RM upload

serverstreaming RM upload

PC clusterIBP

single node

editingcomputer

DV remux

DV splitDV chunks

upload

upload

RM chunks

DV chunks

downloadmany nodes

transcoding toraw AVIencoding toRealMedia

RM chunksdownload single node

chunksjoining RM

RM upload

DV download

Page 7: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

7/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DV upload

RM chunksremoval

RM upload

serverstreaming RM upload

PC clusterIBP

single node

editingcomputer

DV remux

DV splitDV chunks

upload

upload

RM chunks

DV chunks

downloadmany nodes

transcoding toraw AVIencoding toRealMedia

RM chunksdownload single node

chunksjoining RM

RM upload

DV download

• Native IBP LoRS tools.• Command-line tools for Windows, Linux and MacOS,

GUI for Windows.• Problems with files >2 GB :-(

• javalors tool• Uploading and downloading using several threads in

parallel and GUI.• Written in Java, works on Windows, Linux (maybe even

MacOS X).

• Sound/video re-multiplexing.• Creating video chunks for parallel encoding.

Page 8: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

8/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DV upload

RM chunksremoval

RM upload

serverstreaming RM upload

PC clusterIBP

single node

editingcomputer

DV remux

DV splitDV chunks

upload

upload

RM chunks

DV chunks

downloadmany nodes

transcoding toraw AVIencoding toRealMedia

RM chunksdownload single node

chunksjoining RM

RM upload

DV download

• IBP-enabled transcode

• Image transformation by transcode• image reduction, de-noising, deinterlacing, color

corrections, audio resampling

• Transcoding to target format, or

• transcoding to raw video and then encoding usingexternal encoder.• RealProducer for Linux 9.x

Page 9: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

9/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DV upload

RM chunksremoval

RM upload

serverstreaming RM upload

PC clusterIBP

single node

editingcomputer

DV remux

DV splitDV chunks

upload

upload

RM chunks

DV chunks

downloadmany nodes

transcoding toraw AVIencoding toRealMedia

RM chunksdownload single node

chunksjoining RM

RM upload

DV download

• Permanently stored on IBP• Playing with IBP-enabled client tools or via

implementation of IBP as local file-system.• Playing through IBP-enabled Apache HTTP.

• Uploading to streaming and downloading servers localstorage.

Page 10: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

10/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Selected Properties of the DEE

<computersciencetheory>

• Scheduling model ∈ PO class.• Classical model ∈ NPO class when scheduling different

jobs on uniform processors.• DEE uses uniform jobs on different processors, which

belongs to PO.• Data depot scheduling can be made as PO for network

described as complete graph.

• Data location optimization with respect to computinginfrastructure.

</computersciencetheory>

Page 11: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

11/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Performance Evaluation

• DV to RealMedia with/without remultiplexing

• Source: 6911 PAL DV frames (4:36s), 48 kHz audio

• Target: deinterlaced (HQ cubic blend), 384× 288(Lanczos), 44 kHz audio, bitrates: 28, 56, 128, 256, 384,512, 768 kbps

• Testbed• 2× Pentium 4 @ 3.0 GHz, 2GB + 2 GB swap, Intel

PRO/1000 1Gbps• DiDaS IBP infrastructure

Page 12: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

12/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DiDaS/MetaCenter Infrastructure Used for DEE

Praha

Liberec

Brno

Ostrava

NIX

USA

GÉANTSANET

PIONIER

NetherLight

Plzeň

České Budějovice

DWDM10 Gb/s1–2,5 Gb/s800 Mb/s100 Mb/s10–34 Mb/s

Page 13: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

13/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DEE Execution Profiles

0 60 120 180 240 300 360 420 480 540 600 660 720 780 840 900time [s]

0

1

2

3

4

5

6

7

8

9

# pr

oces

ses

DEE Execution ProfileParallelism = 2

Page 14: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

14/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

DEE Execution Profiles

0 60 120 180 240 300 360 420 480 540 600 660 720 780 840 900time [s]

0

1

2

3

4

5

6

7

8

9

# pr

oces

ses

DEE Execution ProfileParallelism = 8

Page 15: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

15/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Parallelization Performance

0 1 2 3 4 5 6 7 8 9 10 11degree of parallelism

5

10

15

20

time

[min

]

with remuxwithout remuxy = 1/(0.0498*x) + 3.05(RMS = 0.030)y = 1/(0.0520*x) + 2.52(RMS = 0.040)

DEE Parallelization Performance

Page 16: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

16/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Future Work/Work in Progress

• Integration with new grid middleware (schedulers).

• DEEng – we plan to reimplement DEE, new GUI,production quality code, etc.

Page 17: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

17/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Real-WorldTM Usage Example

• Lecture recording, processing, archiving and publishing atMasaryk University in Brno.

• Motivation• Continuous video feed from 3 lecturing halls Faculty of

Informatics.• More to come, esp. from other faculties.

Page 18: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

18/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

System Architecture

Canopus ADVC-100 convertors

Caching PCs

Cameras

IBP Storage

Processing Cluster

Streaming andDownloading

Server

DEE

Page 19: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

19/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Providing Archived Content

• Streaming• RealMedia format:

768, 512, and 256 kbps target audiences andSureStream, 360× 288 @ 15 – 25 fps.

• Experiments with 1.5 Mbps full PAL (768× 576 @25 fps).

• RealServer with local disk array.

• Downloading• MPEG-4: 512× 384 @ 25 fps @ 512 kbps + MP3 @

128 kbps• Apache web server with local disk array.

• Currently a simple web interface.

• IP-based authorization limited to university IP addressrange.

Page 20: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

20/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Acknowledgments

• CESNET Development Foundation projects 017/2002and 018/2002

• We would like to thank to Lukas Hejtmanek for creatinglibxio, enabling IBP in many applications, andmaintaining IBP infrastructure.

• We would like to thank to Ludek Matyska and EvaHladka for supporting us from e-learning side.

Page 21: Grid Video Processing - Internet2...1/21 Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example Grid Video Processing Distributed Approach to Video

21/21

Outline Motivation Distributed Encoding Environment Future Work Real-World Usage Example

Thank you for your attention!

Q/A?