Spark Streaming, Machine Learning and meetup.com streaming API.
Streaming
description
Transcript of Streaming
![Page 1: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/1.jpg)
Streaming Multimedia
![Page 2: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/2.jpg)
What is streaming?
Streaming media consists of sound and video, continuously “streamed” over the Internet
![Page 3: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/3.jpg)
Streaming media (continued) Streaming media may be either video or audio, or
most commonly a combination of both. There are two categories of streaming, pseudo
and genuine streaming Pseudo streaming allows for immediate playback
as the file is downloaded whilst it is playing. Pseudo streaming uses pre-compressed data
Genuine streaming requires a specialised server and compresses the data on-the-fly, delivering content in an efficient format
![Page 4: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/4.jpg)
The Principle of StreamingThe Principle of Streaming
(A snapshot in time)
![Page 5: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/5.jpg)
Limitations on Streaming types Because video and audio data can be quite large,
compression is an integral part of streaming Pseudo streaming uses pre-compressed files and
only allows users to view media sequentially; you cannot skip to a set point in the stream
Genuine streaming allows a user to navigate to any point in the stream, but requires a dedicated server to do this. Genuine streaming files must be prepared specially for delivery
![Page 6: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/6.jpg)
What’s going on behind the scenes on the servers?
![Page 7: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/7.jpg)
Formats of Streaming
There are many formats of streaming available. Some of the more common formats are: RealPlayer Windows Media Player Quicktime Flash
![Page 8: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/8.jpg)
What do the different formats do? Each format uses a different algorithm for
compressing and embedding the streaming data Different manufacturers place emphasis on
different aspects: video, sound, speed, bandwidth Because of the competitiveness of the different
manufacturers, each format represents a different means of achieving effective multimedia streaming
![Page 9: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/9.jpg)
Different formats (continued) Common to virtually all formats is the MPEG
compression algorithm MPEG (Moving Picture Experts Group) develops
standards for the compression of digital video and audio
The actual compression is often referred to as a codec (coder/decoder)
Common MPEG standards deliver video at up to 8Mbps and audio at up to 96kbps
![Page 10: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/10.jpg)
Why use streaming? Streaming allows for the delivery of high-impact,
engaging and often interactive content Streaming is typically very flexible and can be
distributed widely in a variety of formats Standard video and audio content is too large to
deliver via traditional formats. Streaming formats offer incredible compression and very effective delivery.
![Page 11: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/11.jpg)
When to use streamingMultimedia content in any fashion is a two edged sword. It can
quite literally make or break a website
Users of a website must be able to efficiently and effectively navigate a site. Use of extraneous multimedia can be detrimental.
Not all users have access to high-speed internet connections. Multimedia can very quickly chew up a users available bandwidth, frustrating them if they cannot see multimedia as the author intended.
![Page 12: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/12.jpg)
When to use streaming (continued)
With correct application, relevance and attention to issues such as performance, multimedia can be used to enhance any website.
For example: Multimedia streaming can be used as a self-serve sales tool. Instead of a customer waiting to receive literature of a product, they can view a video clip advertisement.
![Page 13: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/13.jpg)
Considerations for streaming Bandwidth, bandwidth, bandwidth! Multimedia streaming in almost any format will
take up a significant portion of a user’s available bandwidth.
Some players will wait until a buffer of data is received before playback commences. This can result in a constant stop-start effect in the stream. This can be very annoying!
![Page 14: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/14.jpg)
Adding streaming to your website Streaming can be inserted into your
website using either an Anchor tag, or using an Embed tag
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="55" vspace="20" align="middle">
<param name="movie" value="../images/flickerboardnosound.swf">
<param name="quality" value="high">
<param name="LOOP" value="false">
<embed src="../images/flickerboardnosound.swf" width="300" height="55" vspace="20" loop="false" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave- flash"></embed>
</object>
![Page 15: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/15.jpg)
Decision: Pseudo or genuine streaming?
You will need to decide on the best content delivery system.
Pseudo streaming will require sufficient bandwidth from the hosting server to deliver content
Genuine streaming will calculate the optimum bandwidth delivery to the client.
![Page 16: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/16.jpg)
Don’t forget to test, test, test… Check the delivery of your content over a variety
of connection speeds and conditions; remember your target audience will judge the value of the streaming on it’s performance as much as anything else!
Make sure that you are delivering a common format. Obscure formats won’t win you any friends.
Consider whether the target audience will need to download new codecs to see the stream
![Page 17: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/17.jpg)
Other directionsStreaming is not just limited to delivering video and audio over
the Internet. New developments include multi-casting, pod-casting and live streams.
Streaming is constantly changing, and in an ever-competitive world, the technology is being driven to deliver more and more.
Always remember, that while technology changes, your multimedia must still be relevant and efficient for it to work.
![Page 18: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/18.jpg)
Live Streaming: What’s happening behind the scenes?
![Page 19: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/19.jpg)
And now…
Vividas delivers broadcast quality video and audio real-time without the need for end-user software or players.
Explore some of the videos on showcase at the following site:
http://www.vividas.com
![Page 20: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/20.jpg)
Some final considerations Legal issues are very important to consider when
streaming Make sure that you have the permission of a
copyright owner before streaming someone else’s content
Don’t forget to protect your own work See a legal professional for the best ways to
protect yourself and your multimedia work
![Page 21: Streaming](https://reader033.fdocuments.us/reader033/viewer/2022061212/549597e4b479591b158b4690/html5/thumbnails/21.jpg)
StreamingReferences How Streaming Video and Audio Work
http://computer.howstuffworks.com/streaming-video-and-audio.htm Embedding Streaming Video Files
http://www.free-video-hosting.net/embed.php
Acknowledgements
This lecture was further developed from previous lectures by Sean Kelleher and Peter Somerville