1 / 14

MP 2: Audio/ Video Streaming

MP 2: Audio/ Video Streaming. CS414: Multimedia System Instructor: Klara Nahrstedt March 21, 2014. Covered Aspects of Multimedia. Audio/Video Presentation Playback. Image/Video Capture. Audio/Video Perception/ Playback. Image/Video Information Representation. Transmission.

sylvestre
Download Presentation

MP 2: Audio/ Video Streaming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: KlaraNahrstedt March 21, 2014

  2. Covered Aspects of Multimedia Audio/Video Presentation Playback Image/Video Capture Audio/Video Perception/ Playback Image/Video Information Representation Transmission Transmission Compression Processing Audio Capture Media Server Storage Audio Information Representation A/V Playback

  3. Learning Goals • Learning media streaming using network • Learning audio video synchronization mechanism • Understanding following multimedia system concepts • Resource Admission • QoS Negotiation • QoS Enforcement • Session Control • Session Adaptation • Understanding network dynamics such as end-to-end delay, network jitter, and synchronization skew server client

  4. System Components Control Channel Data Channel Server Client • Server • Stored Audio and Video • Video: 30 fps, Audio: 8000Hz • Client • Requests for Video and/or Audio • Works in Two modes: Active Mode and Passive Mode • Active Mode: • Media type: Audio, Video • Video Rate: 15 to 25 fps • Audio Rate: 8000Hz • Passive Mode: • Media type: Video • Video Rate: 10 fps

  5. Functional Diagram: Connection Establishment Client Server Server listening Take user-inputs (mode) Resource admission resource.txt Stream Request: <media file, media type, rates> resource.txt Resource admission Resource Reservation Stream Request Accept/ Reject Resource Reservation QoS Enforcement Client listening RTP/ UDP AV Synchronization Session Monitor

  6. Functional Diagram: Control Playback Client Server Client is streaming from the Server Server listening User requests PAUSE Control Command: PAUSE Stop streaming [does not close connection states] User requests RESUME Control Command: RESUME QoS Enforcement RTP/ UDP AV Synchronization Resume streaming from current position Session Monitor Control Command: STOP User requests STOP Clear Resource Reservation Then new connection will require the connection setup phase

  7. Functional Diagram: Session Adaptation Client Server Server always listening User Change Bandwidth resource.txt Resource admission resource.txt Stream Request: <media file, media type, rates> Resource admission Resource Reservation Stream Request Accept/ Reject Resource Reservation QoS Enforcement Client listening RTP/ UDP AV Synchronization Session Monitor

  8. Resource Admission • Client • Available Application Bandwidth ABN • Application Frame Size, MN = ? • Application Frame Rate, RN = ? • Audio Bandwidth = 8000 * 16 • Bandwidth • Active Mode: BN = (MN * RN) + Audio Bandwidth • Passive Mode: BN = (MN * RN) resource.txt Optimistic Allocation MJPEG Video 8000Hz Audio Signal Assuming resolution is known by the client, e.g., stated in the file name like “MIB3-1080p.mjpeg” fps: 10 In active mode, the video rate should be considered the Maximum between [15fps-25fps] provided that ABN>= BN Notice: You have to be able to show your computation during the demo

  9. Resource Admission • Server • Available Application Bandwidth ABN • Required Bandwidth for Client BC • Admission is successful if BC <= ABN • To support multiple client • You also need to consider bandwidth assigned to other resource.txt Resource Table

  10. Rate Control: QoS Enforcement • You can build leaky bucket • You can implement token bucket • You can use gstreamer rate control • You can implement your own method You an simply read using loop Sleep (100) => 10 fps You have to do this for both audio and video

  11. Synchronization Media Type Timestamp RTP header • Build your own synchronization algorithm • Synchronization Skew < 80 ms • Display synchronization skew on the screen Payload

  12. Server-side Data Flow Architecture App Sink Capture timestamp You can use gstreamer Pipeline Video source App Sink Video Queue Rate Control RTP header Network Audio source App Sink Audio Queue RTP header Rate Control App Sink Capture timestamp

  13. Client Side Data Flow Architecture Audio Decoder Audio Sink App Source Video Queue RTP header Network Synchronization App Source Video Sink Video Decoder RTP header Audio Queue How to use AppSrc? http://code.google.com/p/gstreamer-java/source/browse/trunk/gstreamer-java/src/org/gstreamer/example/AppSrcTest.java?r=509

  14. Evaluations Required Points: 100, Optional Points: 30 Points will be considered based on live demo and interview performance

More Related