Saturday, 13 August 2011

Streaming media

Streaming media is multimedia that is consistently accustomed by and presented to an end-user while actuality delivered by a alive provider.[note 1] The name refers to the commitment adjustment of the average rather than to the average itself. The acumen is usually activated to media that are broadcast over telecommunications networks, as best added commitment systems are either inherently alive (e.g., radio, television) or inherently non-streaming (e.g., books, video cassettes, audio CDs). The verb 'to stream' is additionally acquired from this term, acceptation to bear media in this manner. Internet television is a frequently streamed medium.

Live streaming, added specifically, agency demography the media and broadcasting it alive over the Internet. The action involves a camera for the media, an encoder to digitize the content, a media administrator area the streams are fabricated accessible to abeyant end-users and a agreeable commitment arrangement to administer and bear the content. The media can again be beheld by end-users live.

History

Attempts to affectation media on computers date aback to the ancient canicule of accretion in the mid-20th century. However, little advance was fabricated for several decades, primarily due to the aerial amount and bound capabilities of computer hardware.

From the backward 1980s through the 1990s, consumer-grade claimed computers became able abundant to affectation assorted media. The primary abstruse issues accompanying to alive were:

accepting abundant CPU ability and bus bandwidth to abutment the appropriate abstracts rates

creating low-latency arrest paths in the operating arrangement (OS) to anticipate absorber underrun.

However, computer networks were still limited, and media was usually delivered over non-streaming channels, such as by downloading a agenda book from a alien server and again extenuative it to a bounded drive on the end user's computer or autumn it as a agenda book and arena it aback from CD-ROMs.

During the backward 1990s and aboriginal 2000s, Internet users saw:

greater arrangement bandwidth, abnormally in the aftermost mile

added admission to networks, abnormally the Internet

use of accepted protocols and formats, such as TCP/IP, HTTP, and HTML

commercialization of the Internet.

Severe Tire Damage was the aboriginal bandage to accomplish alive on the Internet. On June 24, 1993, the bandage was arena a gig at Xerox PARC while abroad in the building, scientists were discussing fresh technology (the Mbone) for broadcasting on the Internet application multicasting. As affidavit of their technology, the bandage was advertisement and could be apparent alive in Australia and elsewhere.

RealNetworks were additionally antecedents in the alive media markets and advertisement one of the beforehand audio contest over the Internet - a baseball bold amid the Yankees and Seattle Mariners - in 1995.[1] They went on to barrage the aboriginal alive video technology in 1997.

These advances in computer networking accumulated with able home computers and avant-garde operating systems fabricated alive media applied and affordable for accustomed consumers. Stand-alone Internet radio accessories emerged to action admirers a no-computer advantage for alert to audio streams.

In general, multimedia agreeable has a ample volume, so media accumulator and manual costs are still significant. To account this somewhat, media are about aeroembolism for both accumulator and streaming.

Increasing customer appeal for alive of aerial analogue (HD) agreeable to altered accessories in the home has led the industry to advance a cardinal of technologies, such as Wireless HD or ITU-T G.hn, which are optimized for alive HD agreeable after banishment the user to install fresh networking cables.

Increasing customer appeal for alive alive has prompted YouTube to apparatus their fresh Alive Alive account to users.[2]

A media beck can be streamed either alive or on demand. Alive streams are about provided by a agency alleged accurate streaming. Accurate alive sends the advice beeline to the computer or accessory after extenuative the book to a adamantine disk. On Appeal alive is provided by a agency alleged accelerating alive or accelerating download. Accelerating alive saves the book to a adamantine deejay and again is played from that location. On Appeal streams are generally adored to adamantine disks and servers for continued amounts of time; while the alive streams are alone accessible at one time alone (e.g. during the Football game)

Streaming bandwidth and storage

A broadband speed of 2.5 Mbit/s or more is recommended for streaming movies, for example to an Apple TV, Google TV or a Sony TV Blu-ray Disc Player, 10 Mbit/s for High Definition content.[4]
Unicast connections require multiple connections from the same streaming server even when it streams the same content

Streaming media storage size is calculated from the streaming bandwidth and length of the media using the following formula (for a single user and file):

    storage size (in mebibytes) = length (in seconds) × bit rate (in bit/s) / (8 × 1024 × 1024)[note 2]

Real world example:

One hour of video encoded at 300 kbit/s (this is a typical broadband video as of 2005 and it is usually encoded in a 320 × 240 pixels window size) will be:

    (3,600 s × 300,000 bit/s) / (8×1024×1024) requires around 128 MiB of storage.

If the file is stored on a server for on-demand streaming and this stream is viewed by 1,000 people at the same time using a Unicast protocol, the requirement is:

    300 kbit/s × 1,000 = 300,000 kbit/s = 300 Mbit/s of bandwidth

This is equivalent to around 135 GB per hour. Of course, using a multicast protocol the server sends out only a single stream that is common to all users. Hence, such a stream would only use 300 kbit/s of serving bandwidth. See below for more information on these protocols.

The calculation for Live streaming is similar.

Assumptions: speed at the encoder, is 500 kbit/s.

If the show lasts for 3 hours with 3,000 viewers, then the calculation is:

    Number of MiB transferred = encoder speed (in bit/s) × number of seconds × number of viewers / (8*1024*1024)

    Number of MiB transferred = 500,000 (bit/s) × 3 × 3,600 ( = 3 hours) × 3,000 (nbr of viewers) / (8*1024*1024) = 1,931,190 MiB

Codec, bitstream, transport, control

The audio beck is aeroembolism application an audio codec such as MP3, Vorbis or AAC.

The video beck is aeroembolism application a video codec such as H.264 or V8.

Encoded audio and video streams are accumulated in a alembic bitstream such as FLV, WebM, ASF or ISMA.

The bitstream is delivered from a alive server to a alive applicant application a carriage protocol, such as MMS or RTP.

The alive applicant may collaborate with the alive server application a ascendancy protocol, such as MMS or RTSP.

Protocol issues

Designing a arrangement agreement to abutment alive media raises abounding issues, such as:

Datagram protocols, such as the User Datagram Agreement (UDP), accelerate the media beck as a alternation of baby packets. This is simple and efficient; however, there is no apparatus aural the agreement to agreement delivery. It is up to the accepting appliance to ascertain accident or bribery and balance abstracts application absurdity alteration techniques. If abstracts is lost, the beck may ache a dropout.

The Real-time Alive Agreement (RTSP), Real-time Carriage Agreement (RTP) and the Real-time Carriage Ascendancy Agreement (RTCP) were accurately advised to beck media over networks. RTSP runs over a array of carriage protocols, while the closing two are congenital on top of UDP.

Another access that seems to absorb both the advantages of application a accepted web agreement and the adeptness to be acclimated for alive alike alive agreeable is the HTTP adaptive bitrate streaming. HTTP adaptive bitrate alive is based on HTTP accelerating download, but adverse to the antecedent approach, actuality the files are actual small, so that they can be compared to the alive of packets, abundant like the case of application RTSP and RTP.[5]

Reliable protocols, such as the Manual Ascendancy Agreement (TCP), agreement actual commitment of anniversary bit in the media stream. However, they achieve this with a arrangement of timeouts and retries, which makes them added circuitous to implement. It additionally agency that back there is abstracts accident on the network, the media beck stalls while the agreement handlers ascertain the accident and retransmit the missing data. Clients can abbreviate this aftereffect by buffering abstracts for display. While adjournment due to buffering is adequate in video on appeal scenarios, users of alternate applications such as video conferencing will acquaintance a accident of allegiance if the adjournment that buffering contributes to exceeds 200 ms.[6]

Unicast protocols accelerate a abstracted archetype of the media beck from the server to anniversary recipient. Unicast is the barometer for best Internet connections, but does not calibration able-bodied back abounding users appetite to appearance the aforementioned television affairs concurrently.

Multicasting broadcasts the aforementioned archetype of the multimedia over the absolute arrangement to a accumulation of clients

Multicast protocols were developed to abate the abstracts archetype (and consistent server/network loads) that occurs back abounding recipients accept unicast agreeable streams independently. These protocols accelerate a distinct beck from the antecedent to a accumulation of recipients. Depending on the arrangement basement and type, multicast manual may or may not be feasible. One abeyant disadvantage of multicasting is the accident of video on appeal functionality. Continuous alive of radio or television actual usually precludes the recipient's adeptness to ascendancy playback. However, this botheration can be mitigated by elements such as caching servers, agenda set-top boxes, and buffered media players.

IP Multicast provides a agency to accelerate a distinct media beck to a accumulation of recipients on a computer network. A multicast protocol, usually Internet Accumulation Management Protocol, is acclimated to administer commitment of multicast streams to the groups of recipients on a LAN. One of the challenges in deploying IP multicast is that routers and firewalls amid LANs charge acquiesce the access of packets destined to multicast groups. If the alignment that is confined the agreeable has ascendancy over the arrangement amid server and recipients (i.e., educational, government, and accumulated intranets), again acquisition protocols such as Agreement Independent Multicast can be acclimated to bear beck agreeable to assorted Local Area Arrangement segments.

Peer-to-peer (P2P) protocols align for prerecorded streams to be beatific amid computers. This prevents the server and its arrangement access from acceptable a bottleneck. However, it raises technical, performance, quality, and business issues.