Top Banner
On Air: Evaluating streaming MPEG4 content across WLANs Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson September 21, 2007 Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson On Air: Evaluating streaming MPEG4 content across WLANs
31

On Air

May 26, 2015

Download

Technology

Jason Novinger

On Air: Evaluating streaming high definition MPEG4 content across WLANs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: On Air

On Air: Evaluating streamingMPEG4 content across WLANs

Nicole Driscoll, Joshua Liberman, JasonNovinger, Robert Williamson

September 21, 2007

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 2: On Air

Acknowledgement

University of Missouri Columbia ComputerScience Department

National Science Foundation

Dr. Haibin Lu and Dr. Wenjun Zeng

Yingnan Zu and Yiping Wu

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 3: On Air

Outline of Presentation

IntroductionVideo compression, wireless networks, and videostreaming

MethodologiesNetwork testbed, video tools

Results

Further Research

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 4: On Air

Introduction

Our project sought to evaluate whether currentMPEG4 video compression schemes were adequateto allow video content to be streamed acrosswireless (WLANs) computer networks. To do this, itis important to understand:

benefits of streaming video

video compression techniques

challenges associated with WLANs

techniques used to evaluate video quality

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 5: On Air

Streaming video

Streaming video has many advantages over thedownload and watch method:

Data streamed over UDP, avoiding the need forACK messages and retransmitted packets

Immediate or near-immediate start of videoplayback

Ability to play, pause, skip forward andbackward

Availability of live broadcasts

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 6: On Air

Video sequences

Video sequences are essentially:

sequences of still images displayed at aconstant rate (e.g. 25 frames per second)

these still images are literally a matrix of pixelsof differing color and brightness

each of pizel is represented by a set number ofbits (often 8 bits per pixel)

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 7: On Air

Why compress?

bandwidth constraints - dial-up dataconnections cannot accomodate the data ratenecessary as can WLAN connections, which inturn cannot accomodate the data rate thatwired Ethernet connections can

there is existing redundant information inimages that can be represented more efficiently

humans perceive some components, likeluminance, with more sensitivity than othercomponents, like chrominance

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 8: On Air

Video compression

Compressing video sequences takes advantages ofredundant information found in the sequence:

spatial - redundant color and luminanceinformation within one image (frame)

temporal - redundant information between twoconsecutive frame in a video sequence

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 9: On Air

Spatial redundancy

Still 2-D images will have some pixels that are thesame color and brightness. These images can becompressed by:

breaking the image into 8 pixel x 8 pixel blocks

using a DCT (discrete cosine transform) toidentify highly important information

Gu,v = α(u)α(v)7

∑x=0

7

∑y=0

gu,v cos[π

8(x +

1

2)u] cos[

π

8(y +

1

2)v ]

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 10: On Air

Spatial redundancy

reducing this numerical information by aquantizing coefficient

−415 −30 −61 27 56 −20 −2 04 −22 −61 10 13 −7 −9 5

−47 7 77 −25 −29 10 5 −6−49 12 34 −15 −10 6 2 2

12 −7 −13 −4 −2 2 −3 3−8 3 2 −6 −2 1 4 2−1 0 0 −2 −1 −3 −4 −1

0 0 −1 −4 −1 0 1 2

−26 −3 −6 2 2 −1 0 00 −2 −4 1 1 0 0 0

−3 1 5 −1 −1 0 0 0−4 1 2 −1 0 0 0 0

1 0 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0

representing more common information withsmaller binary ”words” a Huffman code

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 11: On Air

Temporal redundancy

From frame to frame, there is often repeated datathat can be transmitted just once to reducebandwidth needs.

frames are each eitherI - intra frame - full image is compressed usingspatial compressionP - predicted frame - only the differences from theprevious frame are sentB - bi-predicted frame - only the differences fromthe previous and successive frames are sent

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 12: On Air

Challenges of wireless networks

While WLANs are prized for their mobility, thiscomes at a cost:

Unlike switched Ethernet, WLANs must share abroadcast medium, leading to collisions andretransmissionsThe fastest WLANs have inherently slowerspeeds than switched Ethernet connections

802.11b 11mbps802.11g 54mbps802.11n 300mbpsEthernet 10/100/1000mbps

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 13: On Air

Challenges of wireless networks

WLANs do not have fantastic range, with datathroughput suffering as distance from theaccess point is increased

Unlike shielded Ethernet cables, WLANs aresusceptible to interference from commonhousehold items like microwaves and cordlesstelephones

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 14: On Air

Evaluating video quality

There are numerous, subjective and objective, waysto judge the quality of received video

subjectivehuman eye

objectivePSNR - Peak Signal to Noise RatioSSIM - Strucural SIMilarity

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 15: On Air

Objective video quality

PSNR - ratio of the highest power of signal tothe power of noise, expressed in dB, a scoreabove 30.0 dB is considered high quality

PSNR = 10 · log102552

1mn ∑m−1

i=o ∑n−1j=0 ||I (i , j)− K (i , j)||2

SSIM - a decimal value from 0.0 to 1.0, 0.0meaning no similarity and 1.0 being perfect

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 16: On Air

Methodologies

To evaluate video quality over wireless networks, wefirst had to build a network testbed using thetechnologies we were hoping to test.

wired and wireless local area network

server computer running streaming serversoftware

client computers running streaming clientsoftware

tools to encode video, compare receivedstreams to originals, and hold it all together

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 17: On Air

Network hardware

The network hardware consisted of wired andwireless equipment.

Wired Netgear router/firewall

24-port Cisco Ethernet switch

Linksys WAP54G 802.11b and g access point

Linksys WAP4400N 802.11n access point13 assorted USB and PCI wireless adaptors

4 PCI 802.11b and g adaptors6 USB 802.11b and g adaptors3 USB 802.11n adaptors

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 18: On Air

Network topology

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 19: On Air

Streaming server and clients

ServerTypical Dell desktop PCPentium 4 CPU, 512MB RAM, 100mbps EthernetFedora Core 6 LinuxApple’s Darwin Streaming Server

ClientsTypical Dell desktop PCsPentium 4 CPU, 512MB RAM, 100mbps EthernetFedora Core 6 and/or Ubuntu 7.04 LinuxopenRTSP streaming media client from live555802.11b, g, or n wireless adaptor

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 20: On Air

Software packages

MPEG4IPmp4creator to create MPEG4 container files fromelementary streamsmp4videoinfo to help identify lost frames

ffmpegused to encode raw YUV videos to MPEG4elementary streamsused to convert received MPEG4 stream to YUVfor analysis

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 21: On Air

Software packages

psnr tool from the evalvid package to calculatePSNR and SSIM scores for received MPEG4streams

Perl programming language to automate thetest run process and analysis of receivedstreams

tcpdump to record all incoming (client) andoutgoing (server) stream packets for lateranalysis

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 22: On Air

Missteps

Videolan client (VLC)Robert modified code to report statistics duringtest runsVLC eventually proved to not be able to handleheavy streams well, prompted the switch toopenRTSP

Darwin Streaming Servertrouble compiling, needed to work outdependenciesfirewall and SELinux were enabled by default onFedora Core 6, not allowing any incomingconnections

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 23: On Air

Missteps

ffmpegexisting binaries did not properly encode MP4 videomp4creator could not find headers

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 24: On Air

Testing

after the videos are streamed to the clients,they are then copied back and analyzed incomparison to the reference video

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 25: On Air

Assumptions

Our expected breaking points

Network Max Speed Ave. Speed Breaking pointEthernet 100mbps 90mbps 5-6 15mbps streams802.11n 300mbps 20 15mbps streams?802.11g 54mbps 27mbps 2 15mbps or 6 5mbps streams802.11b 11mbps 5.5mbps 5 1024k or 1 5mbps stream

Let’s find out what happened!

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 26: On Air

Feedback

A multitude of data

server connected clients meter

output from openRTSP

tcpdump log filesvideo itself

artifactsPSNR scoreSSIM score

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 27: On Air

Our first clue

Percentage packet loss on the DarwinStreaming Server web interface suggested thatthere was significant packet losses at thebeginning of all streams 5mbps and larger

Most likely due to very large I & P frames nearthe beginning of the video

On 5mbps video, issues quickly went away,lingered on 15mbps and higher

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 28: On Air

Initial results

our initial observations tend to support ourearlier assumptions that video quality is severelybroken when total video throughput nears themaximum capacity of the network link

all types of networks had issues with streamsthat 5mbps or larger, with early frames beingdropped

both wireless and wired networks had problemswith streams 15mbps and larger, oftendropping all I frames

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 29: On Air

Detailed results

data runs were completed earlier this week

PSNR and SSIM calculations for all receivedvideo were completed Wednesday evening

unfortunately, not enough time to have a goodview of what happened

plan on continuuing work on data analysisduring the following semester

detailed results will be posted on the website

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 30: On Air

Further Research

MPEG4 Part 10 (h.264) encodinghigher quality at a lower bitrate

more intensive testing of 802.11n wirelessdo wireless issues outweigh potential throughputgains

tweaking wireless network settings forstreaming video

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs

Page 31: On Air

Authors

Nicole Driscoll is a senior majoring in Computer Science at SoutheastMissouri State University in Cape Girardeau, MO.

Joshua Liberman is a senior majoring in Computer Science and Math-ematics at the University of Central Missouri in Warrensburg, MO.

Jason Novinger is a senior majoring in Computer Science at TrumanState University in Kirksville, MO.

Robert Williamson is a senior majoring in Computer Science andMathematics at the University of Missouri-Columbia in Columbia,MO.

Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson

On Air: Evaluating streaming MPEG4 content across WLANs