Internet Technologies Streaming Media - and an exercise Allan Hammershøj Research Assistant, CMI Thursday, April 23, 2009.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

Internet for multimedia content Yogendra Pal Chief Engineer, All India Radio.
Multimedia Systems As Presented by: Craig Tomastik.
Chapter 20: Multimedia Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 20: Multimedia Systems What is Multimedia.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Real Time Streaming Protocol (RTSP)
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 20: Multimedia Systems.
User Control of Streaming Media: RTSP
UNCW UNCW SIGGRAPH 2002 Topic #3: Continuous Media in Wired and Wireless Environments Ronald J. Vetter Department of Computer Science University of North.
EE442—Multimedia Networking Jane Dong California State University, Los Angeles.
Application layer (continued) Week 4 – Lecture 2.
Quicktime Howell Istance School of Computing De Montfort University.
Wireless Audio Conferencing System (WACS) Mehmet Ali Abbasoğlu Furkan Çimen Aylin Deveci Kübra Gümüş.
IETF WG Presentation1 Nathan Mittler Multiparty Multimedia Session Control (mmusic)
Protocols and Quality of Service CP4022 – Lecture 4.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Introduction to Streaming © Nanda Ganesan, Ph.D..
1 NETE4631 Communicating with the Cloud and Using Media and Streaming Lecture Notes #14.
T Multimedia Programming Maciej Korczyński, Krzysztof Zurek.
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
1 CMSCD1011 Introduction to Computer Audio Lecture 10: Streaming audio for Internet transmission Dr David England School of Computing and Mathematical.
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Electronic Service Guides Focus on OMA BCAST Allan Hammershøj M.Sc. CMI, CTIF Copenhagen Lautrupvang 15, DK-2750 Ballerup
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
1 How Streaming Media Works Bilguun Ginjbaatar IT 665 Nov 14, 2006.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Multimedia Over IP: RTP, RTCP, RTSP “Computer Science” Department of Informatics Athens University of Economics and Business Λουκάς Ελευθέριος.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Session Initiation Protocol (SIP). What is SIP? An application-layer protocol A control (signaling) protocol.
IP Multicast A convention to identify a multicast address Each node must translate between an IP multicast address and a list of networks that contain.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time Multimedia: Internet Phone Case.
Sudarsun S 1 Audio and Video over Internet Sudarsun S., M.Tech Checktronix India Pvt Ltd Chennai
Real Time Protocol (RTP) 김 준
Streaming Media Control n The protocol components of the streaming n RTP/RTCP n RVSP n Real-Time Streaming Protocol (RTSP)
QuickTime The Joy of Streaming!. QuickTime Streaming Server Allows for real time delivery of media over a network. intranet internet Content can be prerecorded.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
Lab Assignment 15/ INF5060: Multimedia data communication using network processors.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 28 Multimedia.
Chapter 28. Network Management Chapter 29. Multimedia
Internet Measurment Multimedia 1. Properties Challenges Tools State of the Art 2.
Omar A. Abouabdalla Network Research Group (USM) SIP – Functionality and Structure of the Protocol SIP – Functionality and Structure of the Protocol By.
Multimedia and Networks. Protocols (rules) Rules governing the exchange of data over networks Conceptually organized into stacked layers – Application-oriented.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Presented by : BEN AMOR Adel MAKNI Mahmoud Ramzi
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 4 Monitoring Network Activity.
Fs Streaming Media a presentation by Florian Seidel.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Ch 6. Multimedia Networking Myungchul Kim
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
RTP/RTCP/RTSP Ben Biro CISC 856 – Spring '10 University of Delaware Thanks to Professor Amer, Henning Schulzrinne, Colin Perkins, Amit Hetawal.
Chapter 20: Multimedia Systems
VoIP ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts.
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Klara Nahrstedt Spring 2012
Chapter 20: Multimedia Systems
Klara Nahrstedt Spring 2014
Session Initiation Protocol (SIP)
Chapter 25 Multimedia TCP/IP Protocol Suite
Chapter 20: Multimedia Systems
Multimedia and Networks
Chapter 20: Multimedia Systems
Presentation transcript:

Internet Technologies Streaming Media - and an exercise Allan Hammershøj Research Assistant, CMI Thursday, April 23, 2009

Preparation  Each group should have at least one computer with the following software installed: VLC 0.8.6i  MP4box for streaming (the file has to be hinted)  Darwin Streaming Server (patched by me to work with all Windows versions)  available for download here:  Unpack it (using WinRAR), so the path to the software is: c:\Program Files\Darwin Streaming Server  In this folder run: Install.bat (on Vista run it is as administrator) Perl interpreter- For windows, choose:  MSWin32-x msi MSWin32-x msi  Remember to restart Windows afterwards 2

Agenda  Streaming terms  Streaming  Examples of streaming  The exercise  A little help 3

4 Hardware for interpreting digital content  Television DVB-(C/S/T) IP-TV  Handheld devices Mobile phone  3G  DVB-H

5 Streaming o Streaming: A client logs onto a server and requests a video/audio stream o Prerecorded & Live o Takes up no disk space (memory buffering) o No problem with Digital Right Managements (no local storing) o Content must be adapted to bandwidth

6 Streaming (cont.) o Streaming server o Interactivity o Stored content (if hinted) can be fast forwarded to the wanted timecode o Adapting to bandwidth o Depending on the clients network, the datastream can be adapted to the bandwidth o Rely on QoS o Quality of Service (QoS) refers to the capability of a network to provide better service to selected network traffic over various technologies o Dedicated bandwidth o Controlled jitter o Reduced latency o Priority for one or more flows does not make other flows fail

7 Streaming (cont.)  Content delivery On-Demand Live  Unicast (one server where all clients connect to)  Splitting (one server send to other servers where clients connect to)  Multicast (standardized way of distributing data to a large network like the Internet by routing the same packages to all users) Simulated live  Like the three options in live but with prerecorded material

8 The protocols of Streaming  Streaming also is based on a bunch of protocols like everything else relating to the Internet  RFC 2326 – RTSP: Real Time Streaming Protocol  RFC SDP: Session Description Protocol  RFC 2974 – SAP: Session Announcement Protocol  RFC SIP: Session Initiation Protocol  RFC RTP: Real-Time Transport Protocol  RFC 3550 – RTCP: Real-time Transport Control Protocol  RFC RTP Profile for Audio and Video Conferences with Minimal Control  The RFC’s can be found on :

9 Network structure (the real ”layer cake”)  Layer definition Layer 1 is not included because it is simply the raw copper, radio frequency or optic fiber

10 RTSP – Real-Time Streaming Protocol  The streaming ”remote control” MethodDescription OptionsGet available methods SETUPEstablish transport ANNOUNCEChange description of media object DESCRIBEGet description of media object PLAYStart playback, reposition RECORDStart recording REDIRECTRedirect client to new server PAUSEHalt delivery, but keep state SET-PARAMETERDevice or encoding control TEARDOWNRemove state

11 SDP – Session Description Protocol  The ”menu card” from the server

12 RTP – Real-time Transport Protocol  The ”data stream” but more than just plain data

13 RTCP – Real-time Transfer Control Protocol  Used in both RTP & SDP  Overview:

14 Single streaming session Streaming server Client  Client request file info (RTSP)  Server send SDP-file (RTSP)  Client initialize and send connection info Option: Send one or more possible suggestions  Server send connection accept Option: Look through suggestions and accept one of the solutions. Then the client can send an connection accept. If none can be accepted then server sends connection refused  Client send RTP-request (RTSP)  Server send RTP accept (RTSP) and streams RTP on configured port  Option: Client send information on RTCP (statistics on connection) Request Send SDP Request RTP RTP RTCP Connection info Connection accepted

15 Live streaming (ex. video conference) RTSP/SIP/SAP/ RTP RecorderPresentation Capture/encoding Streaming server Clients RTSP/SIP/SAP/ RTP Picture/Sound Unicast (RTP)

16 Multicast streaming  In many ways the same as single sessions  SIP – Session Initiation Protocol SIP invitations used to create sessions carry session descriptions that allow participants to agree on a set of compatible media types SIP makes use of elements called proxy servers to help route requests to the user's current location, authenticate and authorize users for services SIP is an agile, general-purpose tool for creating, modifying, and terminating sessions  SAP – Session Announcement Protocol Info of the session being broadcasted is periodically sent to a known address and port to subscribers within the same scope of the broadcast

17 A little calculus  Video: Frame rate (frames/s)  frame width (pixels)  frame height (pixels)  color depth (bits/pixel)  duration (s) = total video file size (bit)  Sound: Sampling resolution (bit/sample)  sampling frequency (Hz)  no. of channels  duration (s) = total audio file size (bit)  Total media file size Video + Sound

Questions Thank you for your attention 18

The exercise  1. Step – Try Darwin Streaming Server (DSS) with Quicktime/VLC using rtsp Use the example files from DSS in the folder: “Movies”  2. Step - Play with VLC and transcode non-live/live video to H.264/AAC Experiment with different frame rates and bit rates. Identify the lowest acceptable setting to be used with a mobile phone (352x288 resolution)  3. Step – Create a batch-script to transcode to a file using VLC with chosen settings from step 2  4. Step – Insert a semi transparent group logo in the top right corner  5. Step – Prepare it for streaming with the container format 3gp using MP4box  6. Step – Use DSS to stream the file from step 4 to a client (if possible a mobile phone using WIFI) (mandatory)  7. Step – Generate an SDP-file with live input using VLC (optional)  8. Step – Stream the live content to a mobile phone (if possible) using DSS (optional) 19

A little help  Using VLC in command line mode:  Common errors: Using VLC command line with spaces in names, remember ”” Be sure that you use {} in the right amount On the streaming server computer, open port 554 (and 1220 to remote control the streaming server) in the firewall  Using MP4box: mp4box -hint -flat -add “ #1:fps=15.000" -add " #2" - 3gp -new “.3gp“ The fps means frames per second and has to be edited to match the actual fps in the file being prepared for streaming. In the example above the video is encoded with 15 fps  Encoding to H.264/AAC using VLC: vcodec=h264,vb=320,venc=x264{keyint=50,no- cabac,bframes=0,level=13,ref=1,me=hex,subme=5,no-b-adapt,ratetol=10,aq-mode=0,aq- strength=0.75,partitions=none,direct=auto},fps=25,maxwidth=320,maxheight=176,deinterl ace acodec=mp4a,ab=64,channels=1,samplerate=22050  Generating an SDP-file with VLC and put it in the main folder of DSS: :rtp{dst= ,port-video=11030,port-audio=11032,ttl=3,mp4a- latm,sdp="file://C:\Program Files\Darwin Streaming Server\Movies\vlc_live.sdp"} 20