Presentation is loading. Please wait.

Presentation is loading. Please wait.

Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.

Similar presentations


Presentation on theme: "Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot."— Presentation transcript:

1 Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot October 2010 October 2010 Ref: Computer Networking: A Top Down Approach, 4th ed., Kurose & Ross

2 A few words about audio compression analog signal sampled at constant rate analog signal sampled at constant rate telephone: 8,000 samples/sec telephone: 8,000 samples/sec CD music: 44,100 samples/sec CD music: 44,100 samples/sec each sample quantized, i.e., rounded each sample quantized, i.e., rounded e.g., 2 8 =256 possible quantized values e.g., 2 8 =256 possible quantized values each quantized value represented by bits each quantized value represented by bits 8 bits for 256 values 8 bits for 256 values example: 8,000 samples/sec, 256 quantized values --> 64,000 bps* example: 8,000 samples/sec, 256 quantized values --> 64,000 bps* receiver converts bits back to analog signal: receiver converts bits back to analog signal: some quality reduction some quality reduction Example rates CD: 1.411 Mbps** CD: 1.411 Mbps** MP3: 96, 128, 160 kbps*** MP3: 96, 128, 160 kbps*** Internet telephony: Internet telephony: 5.3 kbps and up GSM (13kbps), G.729 (8kbps)**** GSM (13kbps), G.729 (8kbps)****

3 A few words about video compression video: sequence of images displayed at constant rate video: sequence of images displayed at constant rate e.g. 24 images/sec e.g. 24 images/sec digital image: array of pixels digital image: array of pixels each pixel represented by bits each pixel represented by bits redundancy redundancy spatial (within image) spatial (within image) temporal (from one image to next) temporal (from one image to next)Examples: MPEG 1 (CD-ROM) 1.5 Mbps MPEG 1 (CD-ROM) 1.5 Mbps MPEG2 (DVD) 3-6 Mbps MPEG2 (DVD) 3-6 Mbps MPEG4 (OO video compression, often used in Internet, < 1 Mbps) MPEG4 (OO video compression, often used in Internet, < 1 Mbps)Research: layered (scalable) video* layered (scalable) video* adapt layers to available bandwidth adapt layers to available bandwidth

4 * Layered (scalable) video A scalable solution to the problem of available bandwidth variation is to use multi-layered video. A multi-layered video encoder encodes raw video data into one or more streams, or layers, of differing priority. The layer with the highest priority, called the base layer, contains the most important portions of the video stream. One or more enhancement layers with progressively lower priorities may then be encoded to further refine the quality of the base layer stream. A scalable solution to the problem of available bandwidth variation is to use multi-layered video. A multi-layered video encoder encodes raw video data into one or more streams, or layers, of differing priority. The layer with the highest priority, called the base layer, contains the most important portions of the video stream. One or more enhancement layers with progressively lower priorities may then be encoded to further refine the quality of the base layer stream. The source must respond to constantly changing network conditions by dynamically adjusting the number of video layers it generates. The source have to receive congestion feedback from the destinations and the network. The source must respond to constantly changing network conditions by dynamically adjusting the number of video layers it generates. The source have to receive congestion feedback from the destinations and the network.

5 Streaming Stored Multimedia application-level streaming techniques for making the best out of best effort service: application-level streaming techniques for making the best out of best effort service: client-side buffering client-side buffering use of UDP versus TCP use of UDP versus TCP multiple encodings of multimedia multiple encodings of multimedia jitter removal jitter removal decompression decompression error concealment error concealment graphical user interface with controls for interactivity graphical user interface with controls for interactivity Media Player

6 Internet multimedia: simplest approach audio, video not streamed: no, “pipelining,” long delays until playout! audio or video stored in file files transferred as HTTP object –received in entirety at client –then passed to player

7 Internet multimedia: streaming approach browser GETs metafile browser launches player, passing metafile player contacts server server streams audio/video to player

8 Metafile Example <title>Twister</title><session> <track type=audio <track type=audio e="PCMU/8000/1" e="PCMU/8000/1" src= "rtsp://audio.example.com/twister/audio.en/lofi"> src= "rtsp://audio.example.com/twister/audio.en/lofi"> <track type=audio <track type=audio e="DVI4/16000/2" pt="90 DVI4/8000/1" e="DVI4/16000/2" pt="90 DVI4/8000/1" src="rtsp://audio.example.com/twister/audio.en/hifi"> src="rtsp://audio.example.com/twister/audio.en/hifi"> <track type="video/jpeg" <track type="video/jpeg" src="rtsp://video.example.com/twister/video"> src="rtsp://video.example.com/twister/video"> </session>

9 Internet multimedia: Streaming from a streaming server allows for non-HTTP protocol between server and media player UDP or TCP for step (3), more shortly

10 Streaming Multimedia: Client Buffering constant bit rate video transmission Cumulative data time variable network delay client video reception constant bit rate video playout at client client playout delay buffered video client-side buffering, playout delay compensate for network-added delay, delay jitter

11 Streaming Multimedia: Client Buffering client-side buffering, playout delay compensate for network-added delay, delay jitter

12 Streaming Multimedia: UDP or TCP? UDP: server sends at rate appropriate for client (Do not care about network congestion !) server sends at rate appropriate for client (Do not care about network congestion !) often send rate = encoding rate = constant rate often send rate = encoding rate = constant rate then, fill rate = constant rate - packet loss then, fill rate = constant rate - packet loss short playout delay (2-5 seconds) to remove network jitter short playout delay (2-5 seconds) to remove network jitter error recover: time permitting error recover: time permittingTCP: send at maximum possible rate under TCP (careful about network congestion) send at maximum possible rate under TCP (careful about network congestion) fill rate fluctuates due to TCP congestion control fill rate fluctuates due to TCP congestion control larger playout delay: smooth TCP delivery rate larger playout delay: smooth TCP delivery rate HTTP/TCP passes more easily through firewalls HTTP/TCP passes more easily through firewalls

13 Streaming Multimedia: client rate(s) Q: how to handle different client receive rate capabilities? –28.8 Kbps dialup –100 Mbps Ethernet A: server stores, transmits multiple copies of video, encoded at different rates 1.5 Mbps encoding 28.8 Kbps encoding


Download ppt "Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot."

Similar presentations


Ads by Google