MPEG + RTP.

Slides:



Advertisements
Similar presentations
Streaming Protocol Suite
Advertisements

NUS.SOC.CS5248 Ooi Wei Tsang 1 Adaptive Playout. NUS.SOC.CS5248 Ooi Wei Tsang 2 You are Here Network Encoder Sender Middlebox Receiver Decoder.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) MPEG + RTP.
MPEG + RTP.
User Control of Streaming Media: RTSP
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Streaming Protocol Suite RTP, RTCP, RTSP.
1 NUS.SOC.CS5248 OOI WEI TSANG Playout Buffer Management.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Adaptive Playout.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Media Compression.
CS294-9 :: Fall 2003 ALF and RTP Ketan Mayer-Patel.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #2 Header Compression.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Systems Support for Continuous Media.
1 Internet Networking Spring 2006 Tutorial 14 Header Compression.
CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- II Hao Jiang Computer Science Department Boston College Nov. 8, 2007.
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Advance Computer Networks Lecture#14
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Media Compression.
1 RTP Payload Format for DV Format Video draft-kobayashi-dv-video-00.txt Akimichi Ogawa Keio University.
29. Apr INF-3190: Multimedia Protocols Multimedia Protocols Foreleser: Carsten Griwodz
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
1 Dude, Where is My Packet?. NUS.SOC.CS5248 OOI WEI TSANG 2 Overview Characteristics of the Internet General techniques Error recovery for audio Effect.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Systems Support for Continuous Media.
1 © NOKIA FILENAMs.PPT/ DATE / NN Helsinki University of Technology Department of Electrical and Communications Engineering Jarkko Kneckt point to point.
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Media Compression.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Error Recovery.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Error Recovery.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) 1 Error Recovery.
NUS.SOC.CS5248 Ooi Wei Tsang Systems Support for Continuous Media OOI WEI TSANG.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Systems Support for Continuous Media.
NUS.SOC.CS5248 Ooi Wei Tsang Rate Adaptations. NUS.SOC.CS5248 Ooi Wei Tsang You are Here Network Encoder Sender Middlebox Receiver Decoder.
MPEG-1Standard By Alejandro Mendoza. Introduction The major goal of video compression is to represent a video source with as few bits as possible while.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.
Ch 6. Multimedia Networking Myungchul Kim
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Project Packetize MP3 audio into RTP Packets.
NUS.SOC.CS Roger Zimmermann Project Packetize MP3 audio into RTP Packets.
NUS.SOC.CS5248 Ooi Wei Tsang Protocols. NUS.SOC.CS5248 Ooi Wei Tsang You are Here Network Encoder Sender Middlebox Receiver Decoder.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Streaming Protocol Suite RTP, RTCP, RTSP.
NUS.SOC.CS5248 Ooi Wei Tsang Systems Support for Continuous Media.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.
Chapter 7 Multimedia Networking
The Transport Layer Congestion Control & UDP
Media Compression.
Klara Nahrstedt Spring 2012
Error Recovery.
Media Compression.
CS5248: Systems Support for Continuous Media
Proxy Caching for Streaming Media
Rate Adaptations.
Streaming Protocol Suite
RTP: A Transport Protocol for Real-Time Applications
Project Proposal Due Next Mon. Submit by
Error Recovery.
Error Recovery Supplemental Slides.
Rate Adaptations.
Adaptive Playout.
Media Compression.
Streaming Protocol Suite
Video Compression - MPEG
RTP – Real-time Transport Protocol
TCP and UDP Transmission Control Protocol (TCP) - The set of standards that is responsible for breaking down and reassembling the data packets transmitted.
Multimedia networking: outline
Foreleser: Carsten Griwodz
Multimedia networking: outline
Presentation transcript:

MPEG + RTP

Previously, on CS5248 MPEG Compression Sequence, GOP, Picture, Slice, Macroblock, Block, DC/AC Coefficient I-Frame, P-Frame, B-Frame NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

MPEG Frame Sizes Constant Bitrate (CBR) vs. Variable Bitrate (VBR) NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Previously, on CS5248 RTP headers SSRC, Media Timestamp, Marker Bit, Payload Type .. Application-Level Framing NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

You are Here Encoder Decoder Middlebox Sender Receiver Network NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Application-Level Framing

Let the application decide, not protocol stacks. How to send/recv? Let the application decide, not protocol stacks. Tennenhouse + Clark NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Application Knows Best How to reorder packets Whether to ignore loss Which packet to retransmit NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Application Data Unit (ADU) Can be processed individually, even out-of-order Unit of error-recovery If part of an ADU is lost, the whole ADU is considered lost 8-Bit PCM audio: 1 ADU = 1 Byte MPEG1 Video: 1 ADU = NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

How to chop data into packets? Every received packet should be useful (even in very lossy environments) Ideally, 1 ADU in 1 packet NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header MPEG-1? 2? Temporal Reference I? P? B? RTP Header RTP Payload Header RTP Payload MPEG-1? 2? Temporal Reference I? P? B? Begin of Slice? End of Slice? NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Header Media Timestamp: 32 bits the instant the first byte in this packet is captured 90 kHz timestamp (90000 = 1 second) NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Header Marker Bit: 1 if contains the last byte of a frame NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Header 32 for MPEG-1 Payload Type: 7 bits NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header MBZ (5 bits) Unused. Must be 0 NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header T (1 bit) 1 if there is a MPEG-2 Extension Header after this header. NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header Temporal Reference (10 bits) The ‘frame number’ of the current frame within the GOP NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header AN bit and N bit Set to 0 for MPEG-1 NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header S (1 bit) Is there a sequence header in this packet? Repetition of sequence header is useful for resynchronization NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header BS (1 bit) and ES (1bit) BS is 1 iff the ‘first’ byte of this payload is a slice header ES is 1 iff the last byte of this payload is the end of a slice NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header Picture Type (3 bits) I (1), P (2), B (3), D (4) NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

RTP Payload Header Motion Vectors Information Get from most recent picture header NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Fragmentation Rules Sequence header: at the start of payload GOP header: at the start of a payload (or follows Sequence header) Picture header: at the start of a payload (or follows Sequence/GOP header) NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Fragmentation Rules A slice must be either First data in the packet, or Follows integral number of slices A slice may be fragmented if exceeds the size of a packet NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Packet Size 1 MTU is 1500 bytes IP Header UDP Header RTP Header RTP Payload Header Payload Size = NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Packetize MP3 or Speex audio into RTP Packets Project Packetize MP3 or Speex audio into RTP Packets

Goal Use the Yima Personal Edition streaming media server code Modify the yimasplit utility, which creates data blocks containing pre-computed RTP packets Server reads data blocks and sends out RTP packets Modify client to decompress and play audio NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Project Homepage Descriptions Yima Personal Edition Code on CD-ROM Documentation IVLE Forums NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Advice The Yima PE source code is not very well documented Select your own project, or do the suggested one Either way: Start early NUS.SOC.CS5248-2009 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)