31
Adaptive Encoding of Zoomable Video Streams based on User Access Pattern Ngo Quang Minh Khiem Guntur Ravindra Wei Tsang Ooi National University of Singapore

Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Adaptive Encoding of Zoomable Video Streams based on User

Access Pattern

Ngo Quang Minh Khiem

Guntur Ravindra

Wei Tsang Ooi

National University of Singapore

Page 2: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Zoomable Video

Page 3: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Zoomable Video with Bitstream Switching

Page 4: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Server Client

(x,y,w,h)

GOAL: Minimize bandwidth to transmit RoIs

Page 5: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Dynamic Cropping of ROI

Encode video onceSupport any RoI cropping

Tiled Streaming(TS)

Monolithic Streaming(MS)

Page 6: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Tiled Streaming

One tile = k x k macroblocks

Encode eachtile as independantly

decodable video streams

Tiles overlapping with the RoI are transmitted

Page 7: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Monolithic Streaming

Data outside RoIneed for decoding RoI

Single monolithic video

Page 8: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Trade-offs with TS and MS

TS

Bigger tile More waste More bits

Smaller tile Less compression More bits

Page 9: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Longer MV More dependency More bits

Shorter MV Less compression More bits

MS

Page 10: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

RoI Access Pattern

Reduce bandwidth further, given RoI access statistics?

Page 11: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Questions in this paper

• Tiled Streaming

Different tile size in the same frame?

• Monolithic Streaming

Different motion search range?

• How?

Page 12: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Adaptive Encoding

Given RoI access statistics, adapt the encoding parameters such that the expected bandwidth

E needed to transmit a RoI is minimized

Rr

rprcE )()(

c(r): compressed size of RoI rp(r): access probability of RoI r

Page 13: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Log user selection of RoI

(Online)

Adaptive Encoded Video

RoI Access Pattern

Encoded Video

Page 14: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Adaptive Encoding

Adaptive Tiling(AT)

Monolithic Streamingwith RoI-aware Coding

(MS-PB)

Page 15: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Adaptive Tiling

Given RoI access pattern, tile the video such that E is minimized

Tt

tptcE )()(

c(t): compressed size of tile tp(t): access probability of tile t

Page 16: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Intuition

Allowing tiles of different sizes can reduce bandwidth

Regular tiling with 2x2 tiles

Adaptive tiling

2

4

1

3

RoI accessed by most users

Merge tiles 1,2,3 and 4

Page 17: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Greedy Heuristic Tiling

• Start with regular 1x1 tiles

• Merge a tile with its neighbors if expected bandwidth is reduced

• Merge newly-formed tile with its neighbors bandwidth is reduced

Page 18: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

t1c(t1) = 9

p(t1) = 0.8

t2c(t2) = 6

p(t2) = 0.8

t12c(t12) = 11

p(t12) = 1

))c(tp(t ))c(tp(t ))c(tp(t 12122211

Page 19: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Resulting tile map

RoI Access Pattern

Page 20: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Monolithic Streaming withRoI-aware Coding

• Referenced MBs form large region outside RoI

• Short motion vector: less bandwidth efficient

• Probabilistic boxing motion vector (MS-PB)

Page 21: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Intuition

• P(A) – P(AB) > P(B)

Increase in size of A when sending R2 is marginal

• P(A) – P(AB) < P(B) Increase in size of A when sending R2 is higher

• [P(A)-P(AB)] S(A) > P(B) S(B)

P(A), P(B): sending A, BP(AB) : A and B in same RoIP(A) – P(AB): sending A independent of B

R2

R1

B

A

Page 22: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Motion Vector Spread after MS-PB

Page 23: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Evaluation

• Evaluate AT and MS-PB in terms of

Bandwidth efficiency

Compression efficiency

• Benchmark methods

Per-RoI

Tiled Streaming

Monolithic Streaming

Page 24: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Video Sequences

Rush-Hour (500 frames)

Bball (200 frames) Rainbow (350 frames)

Tractor (688 frames)

Page 25: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Experiment Setup

• RoI size: 320x192 pel

• Video resolution 1920x1080 pel

• Evaluation is conducted by a training-testing framework

Training and test sets have the same distribution

• One training and test set for each GoP

Page 26: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

0

0.5

1

1.5

2

2.5

3

3.5

4

Bball Rainbow

Exp

ect

ed

Dat

a R

ate

(M

bp

s)

Test Video

Expected Data Rate for Different Videos without B-Frames

PerRoI

MS-PB

MS

AT

TS4x4

Page 27: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

Bball Rainbow

Exp

ect

ed

Dat

a R

ate

(M

bp

s)

Test Video

Expected Data Rate for Different Videos with 2 B-Frames

PerRoI

MS-PB

MS

AT

TS4x4

Page 28: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

0

20

40

60

80

100

120

140

160

Bball Rainbow

File

Siz

e (

MB

)

Test Video

Compressed Video File Size with 2 B-Frames

PerRoI

MS-PB

MS

AT

TS16x16

0

20

40

60

80

100

120

140

Bball Rainbow

File

Siz

e (

MB

)

Test Video

Compressed Video File Size without B-Frames

PerRoI

MS-PB

MS

AT

TS16x16

Page 29: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Presence of B-frame

Motion Vector Spread without B-frame

Motion Vector Spread with 2 B-frame

Without B-frame

MS-PB < MSWith B-frame

MS-PB ≈ MS

Page 30: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Conclusion & Future Work

• Propose an adaptive encoding approach based on user access patterns

• Reduce bandwidth by 21% (MS-PB) and 27% (AT)

• Limiting motion vector is beneficial to zoomable video with wide spread of dependency

• Future work: Computational complexity

Diverse user interest of RoI

Frequency of Adaptation

Page 31: Adaptive Encoding of Zoomable Video Streams based on User … · 2017-09-11 · MB) Test Video Compressed Video File Size with 2 B-Frames PerRoI MS-PB MS AT TS16x16 0 20 40 60 80

Thank you

• Questions?

• Feedback/Suggesetion?