Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant...

36
Stream video Liane Tarouco

Transcript of Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant...

Page 1: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

Stream video

Liane Tarouco

Page 2: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

2

Streaming MultiMedia

Streaming technology offers a significant improvement over the download-and-play approach to multimedia file distribution, because it allows the data to be delivered to the client as a continuous flow with minimal delay before playback can begin.

The multimedia data arrives, is briefly buffered before being played, and is then discarded.

It is never actually stored on the users' computer. Users benefit by experiencing instant playback without the

frustration of having to wait for the entire data to be downloaded before they can determine whether it meets their needs or interests

Page 3: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

3

Server/client Streaming is a server/client technology Allows live or pre-recorded data to be broadcast in

"real time”

Page 4: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

4

Streaming users

Opening up the network for traditional multimedia applications such as news, education, training, entertainment, advertising, and a host of other uses.

Page 5: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

5

Streaming technology

Typically, when accessing multimedia data across a network, a user had to wait for the entire file to be transferred before they could use the information.

Streaming, however, allows a user to see or hear the information as it arrives without having to wait.

Users benefit by experiencing instant playback without the frustration of having to wait for the entire data to be downloaded before they can determine whether it meets their needs or interests.

In most cases, this download process took a long time, and was impractical for widespread acceptance.

Page 6: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

6

Video source

The Video Source is typically one or more streams of analogue video. It can come from cameras, DVD players or VCRs.

These video sources will have an analogue video connection to the Encoding Station.

It is common for live broadcasts to connect the cameras to video production and editing equipment, before being passed on to the Encoding Station.

Page 7: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

7

Encoding Station The Encoding Station is a computer that captures and typically,

encodes both the audio and video live, directly into the required streaming format.

The most common systems used for encoding are Windows® XP or Windows® 2000 workstations equipped with audio and video capture cards.

These systems must have the computational power to encode one or more audio and video streams either in software or via a hardware codec.

The use of a good capture card is critical in achieving these high rates with good picture quality.

The card needs to be capable of capturing 640x480 @ 30 fps without dropping any pixels/frames, or having a high CPU consumption.

Page 8: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

8

Examples

To meet this criteria, Winnov have developed their own ASIC's (Application Specific Integrated Circuit) that are optimised for managing data transfers to the PCI bus. In fact, the latest cards also have SDRAM on board to create an Elastic Frame Buffer that holds a digitised frame until the PCI bus is prepared to receive it. This is particularly important when there is high bus traffic and/or multiple cards in the same PC. Without it, you could experience pixels drops that would degrade the video quality. In contrast, most other vendors, including Osprey use the Conexant PCI I/F chip for managing data transfers to the PCI bus.

Page 9: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

9

Examples

Image quality can be further improved by using the Osprey®-560, which has digital video inputs, hence there is no loss due to analogue to digital conversion of the video signal.

Page 10: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

10

The Encoding Station, which needs to be near the Video Source, sends the compressed audio/video streams on to the Video Streaming Server (typically via a LAN using UDP/TCP protocol).

Individual compressed streams can vary from 20 Kbps (Kilobits/second) to 500 Kbps or more.

Page 11: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

11

The connection between the Encoding Station and the Video Streaming Server must be able to accommodate the total of the bandwidths of the individual streams and must be a clear and reliable connection.

Page 12: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

12

The Video Streaming Server is responsible for delivering compressed video to each individual request for a particular video stream. This is usually handled by one of the commercial streaming media software packages such as RealNetworks® RealSystem™ or Microsoft® Windows Media™ Technologies.

Page 13: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

13

The bandwidth connection to the Video Streaming Server must accommodate the total bandwidth of all the requests for a video stream

As a result, the Video Streaming Server usually has a direct connection to a very high bandwidth line. – For example, if there were 100 requests for a video

stream compressed at 28.8 Kbps, the server would require at least a 3 Mbps connection.

Page 14: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

14

Web access

The WebServer for video streaming is in no way different from other Web Servers. The web site merely contains a URL link to the Video Streaming Server - one for every available video stream. Typically this is an icon on the web page to be selected.

Page 15: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

15

Video player

A Video Player application is required to decode the specific video stream received by the system requesting the stream over the Internet (or corporate Intranet).

The most popular current video streaming applications are – RealNetworks® RealSystem™ – Microsoft® Windows Media™ Technologies.

Page 16: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

16

Video player

Both of these require downloading a corresponding Video Player application such as RealOne™ Player or Windows Media™ Player; but both of these are free.

There are other video streaming applications that are implemented in such a way as to include the player in the stream and no download is required.

Page 17: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

17

Unicast v IP Multicast.

There are two key streaming delivery techniques: unicast and multicast. Unicast refers to networking in which computers establish two-way, point-to-point connections. Most networks operate in this fashion....users request a file, and a server sends the file to those clients only..

Page 18: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

18

Unicast

When streaming multimedia over a network, the advantage to unicast is that the client computer can communicate with the computer supplying the multimedia stream.

The disadvantage of unicast is that each client that connects to the server receives a separate stream, which rapidly uses up network bandwidth

Page 19: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

19

Multicast IP Multicast refers to the networking technique in which one

computer sends a single copy of the data over the network and many computers receive that data.

Unlike a broadcast, routers can control where a multicast travels on the network.

When streaming multimedia over the network, the advantage to multicasting is that only a single copy of the data is sent across the network, which preserves network bandwidth.

The disadvantage to multicasting is that it is connectionless; clients have no control over the streams they receive.

Page 20: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

20

Multicast

To use IP multicast on a network, the network routers must support the IP Multicast protocol. Most routers now handle multicast.

Page 21: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

21

Internet Protocols

There are several internet protocols available for streaming data, TCP, UDP, RTP, RTSP, MMS & HTTP. Generally, each configures the data into packets, with each packet having a 'header' that identifies its contents. The protocol used is usually determined by the need to have reliable or unreliable communications.

Page 22: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

22

RTSP

With RealServer™, RealNetworks introduced as its primary server protocol the RealTime Streaming Protocol (RTSP); an open, standards-based protocol for multimedia streaming. To use this prot0col, URLs that point to media clips on a RealServer™ begin with rtsp://

Page 23: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

23

MMS With Windows Media™ Technologies, Microsoft

introduced Microsoft Media™ Server (MMS) as its primary server protocol. MMS protocol has both a data delivery mechanism to ensure that packets reach the client and a control mechanism to handle client requests such as Stop/Play.

MMS includes both Microsoft Media Server protocol/UDP (MMSU) and Microsoft Media Server protocol/TCP (MMST) as subsets to explicitly request the stream to use UDP or TCP respectively.

Page 24: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

24

MMS

Media Stream Broadcast Distribution (MSBD) protocol was used to transfer streams from the Windows Media™ Encoder to the Windows Media™ Server or between servers. However, Windows Media™ Encoder 7 and later versions no longer supports MSBD and uses HTTP instead.

URLs that point to media clips on a Windows Media™ Server usually begin with mms://

Page 25: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

25

HTTP

Hyper Text Transport Protocol (HTTP) is the slowest of the protocols and is used by Internet Web Servers.

HTTP is transparent to some older firewalls and can bypass security in such cases.

Unlike RTSP and MMS that can serve the stream at a steady bitrate, HTTP would just serve the stream as fast as it could, hence it is better to have separate web and streaming servers.

Page 26: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

26

RealNetworks® RealSystem™

RealNetworks® video streaming software, RealSystem™, includes Helix™ Producer to Create the .rm stream, Helix™ Universal Server to Serve the .rm stream and RealOne™ Player to View the .rm stream. Helix™ Producer uses any of the Osprey video capture cards or any of the Winnov video capture cards to encode live in software. More importantly, under Windows 2000, Windows XP or Windows Server 2003, several cards can be installed in a single PC and used to simultaneously encode separate audio/video streams at different bit rates.

The current version of Helix™ Producer is now also supported under Linux, which can use the Osprey®-100 video capture card.

More information on the components and system requirements of RealSystem™.

Page 27: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

27

Microsoft® Windows Media™ Technologies Windows Media™ Technologies includes several

streaming media components that are based around the Windows® Server 2003 operating system and are capable of efficiently encoding a 640x480 video window at 30 frames per second over a 1 Mbps stream.

These components are functionally grouped into Windows Media™ Encoder to Create the .wmv file, Windows Media™ Services to Serve the .wmv stream and Windows Media™ Player to View the .wmv stream.

Page 28: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

28

Microsoft® Windows Media™ Technologies There is also the Windows Media™ Resource Kit that

includes a collection of tools and utilities to assist producers in the creation, distribution and playback of .wmv files.

Windows Media™ Encoder uses any of the Osprey video capture cards or any of the Winnov video capture cards to encode live in software.

Image quality can be further improved by using the Osprey®-560 which has digital video inputs, hence there is no image loss due to analogue to digital conversion of the video signal.

Page 29: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

29

Capturing Still Images Any of the Osprey or Winnov capture cards used under

Windows NT® 4.0, Windows® 2000 or Windows® XP provide the tools to display high quality video from multiple sources such as camera, Camcoder or VCR, at up to full PAL resolution of 768x576 pixels in 32bit depth.

To capture a still image, the moving video sequence is usually freeze framed at the time of display of the required image.

This frame is then copied into the windows clipboard prior to being pasted into an editing package such as Microsoft Paint or Microsoft Photo Editor.

Page 30: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

30

Capturing Still Images

Paint is included in the operating system and allows images to be edited and saved as Bitmap files.

These files can be Monochrome, 16 Color, 256 Color or 24-bit True Color.

Photo Editor is part of Microsoft Office and allows images to be edited and saved in various formats such as 256 Color GIF, 24bit True Color JPEG or Bitmap.

GIF files maybe saved with a transparency colour set, this can be useful when they are used on Web Pages so that the background shows through.

Page 31: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

31

Capturing Moving Sequences

Capturing video as a moving sequence is much more demanding as the amount of data generated can be high.

There are three popular formats used when capturing video; – AVI, – MPEG– Motion-JPEG.

Page 32: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

32

Capturing Moving Sequences Which format is used will depend upon several

factors, such as – required quality; – image size; – length of sequence; – available storage capacity; – distribution media and cost.

This can be very intensive, not only must the capture card be capable of capturing video at the required size, depth and frame rate, but the rest of the system must have sufficient CPU power and hard discs performance capable of storing this data.

Page 33: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

33

AVI

In general, AVI files are good for very short sequences.

They are cheap to produce and can be played by freely available software packages such as Microsoft's Windows Media™ Player or RealNetworks RealOne™ Player.

However, if not checked, AVI sequences can very quickly swamp the available disk space as they usually contain uncompressed raw video and grow rapidly at several MBps.

Page 34: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

34

Compression

You can reduce the AVI file size by applying software compression such as Indeo®; however, applying any compression requires that the Player must be able to de-compress the file.

AVI files can be incorporated into slide presentations, such as those created by PowerPoint®, used as video messages and send as attachments in email, or used to create promotional and training videos for distribution on disc.

Page 35: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

35

MPEG-2

MPEG-2 is the format to use for high quality videos that can be several hours long.

It is the same format as used on DVD-Video and Digital TV.

MPEG-2 requires hardware encoding to attain the high compression rates needed for instantaneous storage.

Also, hardware decoding is required when playing the files.

Page 36: Stream video Liane Tarouco. 2 Streaming MultiMedia n Streaming technology offers a significant improvement over the download-and-play approach to multimedia.

36

Capturing the whole Desktop

The whole desktop can be captured by using a Video Scan Converter between the graphics card output and the monitor. These devices output both an S-Video and Composite signal that can be recorded on a VCR in either PAL or NTSC format.

Alternatively, there are now graphics cards that incorporate a TV-Out connection.

These newer graphics cards effectively have a built-in scan converter and offer an easier and less cluttered solution with a direct output connection to the TV monitor or VCR.