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
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
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
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
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
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
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
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
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
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
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
Spatial redundancy
reducing this numerical information by aquantizing coefficient
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
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
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
Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson
On Air: Evaluating streaming MPEG4 content across WLANs
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
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
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
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
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
Network topology
Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson
On Air: Evaluating streaming MPEG4 content across WLANs
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
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
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
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
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
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
Nicole Driscoll, Joshua Liberman, Jason Novinger, Robert Williamson
On Air: Evaluating streaming MPEG4 content across WLANs
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
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
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
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
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
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