E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – 560012, India.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
E0262 MIS - Multimedia Playback Systems Prof Pallapa. Venkataram, Electrical Communication Engineering, Indian Institute of Science, Bangalore – ,
Continuous Media 1 Differs significantly from textual and numeric data because of two fundamental characteristics: –Real-time storage and retrieval –High.
Chapter 20: Multimedia Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 20: Multimedia Systems What is Multimedia.
Digital Media Dr. Jim Rowan ITEC 2110 Video. Works because of persistence of vision Fusion frequency –~ 40 frames.
Courtesy: Nick McKeown, Stanford 1 Intro to Quality of Service Tahir Azim.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 20: Multimedia Systems.
Distributed Multimedia Systems
CS 408 Computer Networks Congestion Control (from Chapter 05)
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
1 Multimedia Chapter Introduction to multimedia 7.2 Multimedia files 7.3 Video compression 7.4 Multimedia process scheduling 7.5 Multimedia file.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 3) Klara Nahrstedt Spring 2011.
EE442—Multimedia Networking Jane Dong California State University, Los Angeles.
Peer-to-peer Multimedia Streaming and Caching Service Jie WEI, Zhen MA May. 29.
SWE 423: Multimedia Systems Chapter 7: Data Compression (1)
Ncue-csie1 A QoS Guaranteed Multipolling Scheme for Voice Traffic in IEEE Wireless LANs Der-Jiunn Deng 、 Chong-Shuo Fan 、 Chao-Yang Lin Speaker:
Chapter 2 : Business Information Business Data Communications, 4e.
Problems.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
Image Formation and Digital Video
MM File Management Karrie Karahlaios and Brian P. Bailey Spring 2007.
Networks (Part 2) Use of a Modem The different modems Baud Rate Bandwidth Server and Client machines Network Topologies ( Bus, Ring and Star)
Using Multimedia on the Web
1 CMSCD1011 Introduction to Computer Audio Lecture 10: Streaming audio for Internet transmission Dr David England School of Computing and Mathematical.
INF Web Design Using Multimedia on the Web Sound - Part 2.
MPEG MPEG-VideoThis deals with the compression of video signals to about 1.5 Mbits/s; MPEG-AudioThis deals with the compression of digital audio signals.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 19/20: Real-time and Multimedia Systems Inclusions from Tanenbaum,
Distributed Multimedia March 19, Distributed Multimedia What is Distributed Multimedia?  Large quantities of distributed data  Typically streamed.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
CONGESTION CONTROL and RESOURCE ALLOCATION. Definition Resource Allocation : Process by which network elements try to meet the competing demands that.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 25 – Media Server (Part 1) Klara Nahrstedt Spring 2011.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - VIDEO. In this chapter How digital video differs from conventional analog video How digital video differs from.
E0262 MIS - Multimedia Playback Systems Prof Pallapa Venkataram, Electrical Communication Engineering, Indian Institute of Science, Bangalore – ,
British Computer Society (BCS)
Chapter 28. Network Management Chapter 29. Multimedia
Multimedia streaming Application Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Querying.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 40 – Final Exam Review Session Klara Nahrstedt Spring 2010.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
Class 9 LBSC 690 Information Technology Multimedia.
E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India.
Understanding Network Architecture CHAPTER FOUR. The Function of Access Methods The set of rules that defines how a computer puts data onto the network.
E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India.
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Musical Instruments Connecting to a Mixer using Tal Kesari & Shimon Korenman Advisor: Dr. Chen Avin.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Competence Based Education – Internet Protocols E XAMPLES AND P ROBLEMS.
Chapter 20: Multimedia Systems
Chapter 7 Multimedia Networking
Multimedia Systems Operating System Presentation On
Chapter 20: Multimedia Systems
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2012
Chapter 20: Multimedia Systems
Multimedia networking: outline
CIS679: MPEG-2 Review of MPEG-1 MPEG-2 Multimedia and networking.
Computer Science Division
Multimedia networking: outline
Chapter 20: Multimedia Systems
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Presentation transcript:

E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Playback Systems

E0262 MIS - Multimedia Playback Systems Problem 1. Consider the multimedia file system. In this system, data for client requests are retrieved in cycles P ( P refers to the common time period of the whole system). If a real time client ‘i’ has the consumption rate fi (in bits per second) and there are k bits in the buffer at the start of a cycle, then the admission controller checks at the start of each cycle if k ≥ P x fi. With this admission test, what does the admission controller ensures? Explain.

E0262 MIS - Multimedia Playback Systems Solution With this admission equation we can ensure that at the beginning of each cycle we are at least one frame ahead, if fi rate means consumption rate of one frame from client ‘i’. It means that if there is congestion on the network, the client will have at least one frame to display at the beginning of the cycle to ensure that no blocking occurs. However, this condition does not prevent overflow of the buffer.

E0262 MIS - Multimedia Playback Systems Problem 2. Consider the Maxbuf buffering strategy with the maximal buffer size of Bmax. Let us consider that the multimedia frame size at time t is M(t), and the number of bits received at the receiver side at time t is C(t). What are the two buffer states that a receiver needs to check for and try to avoid? What are the exact conditions that the receiver could check for both buffer states?

E0262 MIS - Multimedia Playback Systems Solution The two states that any buffer management scheme must avoid are: (a)Starvation: when the buffer does not have any data to display due to congestion or other problems in the network and/or system. The system blocks in this case since there is no multimedia frame to display. (b) Overflow: when the amount of incoming data exceeds Bmax and the buffer overflows. In this case the sender/network delivered packets faster than the receiver could display. The exact conditions are: to avoid starvation C(t) ≥M(t) : with this condition we ensure that we will have always at least amount of bits corresponding to frame size to display. To avoid overflow, the condition is C(t) ≤ Bmax + M(t) : it means that one frame will be in display frame buffer and the rest of the data received will be in buffer which should not exceed the max buffer size.

E0262 MIS - Multimedia Playback Systems Problem 3 Let us assume Video ‐ on ‐ Demand (VOD ) service with one client and one server. Let us assume that the server sends the Motion JPEG video at 20 frames per second and the client receives 20 frames per second. Let us assume that the end ‐ to ‐ end delay between client and server is 50 ms (in both directions) including the computational overheads on client and server side. Let us assume that the movie in fast forward model uses step ‐ skipping method and step is equal to 5 (e.g.,, if FF mode triggered from the beginning, only frames will be played: 1st, 6th, 11th, 16th, etc in FF mode). Under the above assumption, consider the following scenario:

E0262 MIS - Multimedia Playback Systems PROBLEM (cont..) The client receives streaming video and plays it on the screen. Suddenly somewhere in the middle of the movie, the client switches to fast forward operation. What is the minimal buffer size (in number of frames) at the client side for this scenario, so that the movie in fast forward mode will continue to play the FF frames at the rate of 20 frames per second?

E0262 MIS - Multimedia Playback Systems Solution First, the client must buffer at least one frame to avoid starvation. Second, in order to avoid delay for FF, the buffer should have all the frames up to the skip step frame, it means if the system has buffered frame 6, it should also have frames 7,8,9,10, 11, so that if the user triggers FF mode at the frame 6, the system can immediately jump to frame 11. Third, since the end ‐ to ‐ end delay is 50ms, it will take 100 ms for the system to get feedback to the server about changing from PLAY to FF and get the next FF frame 16 (which would violate the required rate for FF mode of 20 frames per second), so we need to buffer at least up to the frame 16, so that we have in buffer frames 11 and 16 to play if request for FF is hit at frame 6. In between the system can deliver the next frame 21, 26, etc in a pre-fetch mode, i.e., send and fill up buffer with FF frames. (Note: We do not have any requirements to come from FF to PLAY mode, only from PLAY to FF model).

E0262 MIS - Multimedia Playback Systems So the minimal buffer size is frames 6, 7,8,9,10,11,12,13,14,15,16 (11 frames) to achieve 20 frames per second of playback when switching from PLAY to FF mode and the switch happens at the frame 6. This solution assumes that immediately when FF mode is triggered at frame 6, a feedback is sent to server to send frame 21 and more.

E0262 MIS - Multimedia Playback Systems So the minimal buffer size is frames 6, 7,8,9,10,11,12,13,14,15,16 (11 frames) to achieve 20 frames per second of playback when switching from PLAY to FF mode and the switch happens at the frame 6. This solution assumes that immediately when FF mode is triggered at frame 6, a feedback is sent to server to send frame 21 and more.

E0262 MIS - Multimedia Playback Systems Problem 4 Assume Token Ring network with negligible ring latency (you can assume to be zero) and maximal token holding time of 10 ms. If we assume only one station transmitting video stream as the high ‐ priority traffic and other stations transmitting best effort traffic, then can we guarantee that this video will play at 60 frames per second? Note that there is no buffering at the receiver side of the video stream and assume that one video frame fits into one Token Ring packet, and can be processed within the maximum token holding time. Explain your answer in detail (not just yes or no).

E0262 MIS - Multimedia Playback Systems Solution In case of one high priority stream, the access time τ ≤ 2*τmax, where max token holding time τmax = 10ms, so the highest priority station gets the token every 20ms. To play video at 60 frames per second, the period it 1000/60 = 16.6 ms < 20ms, hence with these parameters of the token ring, the high priority station will not be able to play at 60 fps.

E0262 MIS - Multimedia Playback Systems Problem 5 Assume four stations (A,B,C,D) transmitting video streams as high ‐ priority traffic. Assume the order A,B,C,D in terms of movement of the token, i.e., A gets the token first, then B, C, and D. Can we guarantee that video sent from station A can play at 30 frames per second? Can video sent from station D be played at 10 frames per second? Explain your answers. Note that there is no buffering at receiving stations and assume that one video frame fits into one Token Ring packet. Explain your answer in detail.

E0262 MIS - Multimedia Playback Systems Solution Since we have four stations with high priorities, the time to access for any of the stations will be t≤ (M ‐ 1)τ + 2τmax, where M=4, so the time to access is 3*10+20 = 50ms for any of the station since they go in round robin manner passing the token. So under this condition the node A still cannot play since it needs token at least every 30ms to play at 30 frames per second and it will get it only every 50 ms. The station D can play at 10 frames per second, since it needs to get frames every 100 ms.

E0262 MIS - Multimedia Playback Systems Problem 6 How much bandwidth (MBit/s) does it take to show a 900 KB/frame video at 30 frames/second? 900 KB * 30 frames/s = 27,000 KB = (approx).027 MBits/sec

E0262 MIS - Multimedia Playback Systems Problem 7 Good quality digital video data typically requires about how much space per minute in uncompressed form? in compressed form? Uncompressed =~ 80 MB/minute Compressed = ~ 400 KB/minute

E0262 MIS - Multimedia Playback Systems Problem 8 How much space does it take to store an RGB 640x480 pixel picture? At its simplest, it's 640*480**24 = 7,372,800 = 921 Kbytes, but rgb can actually be stored in less.

E0262 MIS - Multimedia Playback Systems Problem 9 Most experts agree that, while creating an audio production, it's best to keep all audio in digital format rather than converting back and forth to analog. Why? Because each conversion loses information in the conversion process

E0262 MIS - Multimedia Playback Systems Problem10 Using standard sampling rates for CD quality, how many bits per second are generated. Show your work. Standard sampling rate is 44,100 for 16 bits 44,100 * 16 =.705 MBit/s

E0262 MIS - Multimedia Playback Systems What is the maximum number of users that can be supported by a disk with transfer bandwidth of 20MBytes/s and maximum seek time of 10ms? Assume multimedia files are stored in constrained manner on the disk, with block size = 2 frames = 40KBytes, separation between blocks of 1ms. Assume playback rate of 30 frames/sec. Problem 11

E0262 MIS - Multimedia Playback Systems Solution

E0262 MIS - Multimedia Playback Systems Problem 12

E0262 MIS - Multimedia Playback Systems Problem 13

E0262 MIS - Multimedia Playback Systems Problem 14

E0262 MIS - Multimedia Playback Systems Solution

E0262 MIS - Multimedia Playback Systems Problem 15