Your SlideShare is downloading. ×
Audio and Video Streaming
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Audio and Video Streaming

2,428
views

Published on

Seminar Presentation on Audio and Video Streaming by Anil Kumar on 27th June, 2009 at Nyros Technologies, kakinada.

Seminar Presentation on Audio and Video Streaming by Anil Kumar on 27th June, 2009 at Nyros Technologies, kakinada.

Published in: Technology, Business

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,428
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
146
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Audio and Video Streaming - Anil Kumar Panigrahi
  • 2.
    • What is streaming
    • Introduction to streaming
    • Why do we need for streaming
    • What is the process to do streaming files
    • How does the streaming files work
    • Relevant players to run the streaming files (for the web)
    • Complete example with how to create ,run and converting to different formats.
  • 3.
    • What is streaming
    In streaming video and audio, the traveling information is a stream of data from a server. The decoder is a stand-alone player or a plugin that works as part of a Web browser. The server, information stream and decoder work together to let people watch live or prerecorded broadcasts. The success of streaming media is recent days, but the idea behind it has been around as long as people have. Information travels toward you in the form of a sound wave. Your ears and brain decode this information, allowing you to understand it. This is also what happens when you watch TV or listen to the radio Information travels to an electronic device in the form of a cable signal, a satellite signal or radio waves. The device decodes and displays the signal.
  • 4.
    • Introduction to streaming files.
    Person A is having a book , the Person B wants it. There is two options to sends The book from Person A to Person B. 1) Sends the total book at a time 2) Sends the page by page with speed of Person B reads that page. The option 1 may be failed while transferring the data. The option 2 is called the Streaming.
  • 5.
    • Why we need Streaming
    If there is small file transfer from one point to another , there is no need of streaming. Suppose we having the file with having 5 minutes as duration And it having the 59 MB, We want to play that file in the web site. We having the Dial-up connection internet connection , to loading that file in the browser take more and more time. There we want the steaming concept to reduce the file size and we want to play that file in the browser. While uploading the file into server that will convert into flv format to run that file In the flash player. The 5minutes file will be converted into 10 MB file with small change in the quality and it will be load in the browser to play the file with very span of time depends upon speed of internet.
  • 6.
    • What is the process to streaming
    Streaming means reduce the quality of pictures and ultimately reduce the size of the file to run at the web. Make the picture smaller: Most streaming videos don't fill the whole screen on a computer. Instead, they play in a smaller frame or window. If you stretch many streaming videos to fill your screen, you'll see a drop in quality. Reduce the frame rate: A video is really a series of still images. The frame rate is how quickly these images move from one to the next. A lower frame rate means fewer total images and less data needed to recreate them. The reduction in frame rate is why some streaming videos. According to bitrate that files are steamed, the software that compressed and decompressed that is codec.
  • 7.
    • How the streaming file works 1.1
    1) Basic Streaming Process: User visits a web page hosted on a web server and finds a file he would like to see or hear. 2)Web Server: The web server sends a message to a streaming media server, requesting the specific file.
  • 8.
    • How the streaming file works 1.2
    3) Media Server : The streaming server streams the file to the user’s computer, bypassing the web server. 4)Client: The client software on the user’s computer decodes and plays the file (The browser plugin, standalone player or Flash application on your computer decodes and displays the data as it arrives.)
  • 9.
    • Relevant players for to play the streaming files
    • QuickTime, from Apple, plays files that end in .mov.
    • 2) RealNetworks RealMedia plays .rm files.
    • 3) Microsoft Windows Media can play a few streaming file types: Windows Media Audio (.wma), Windows Media Video (.wmv) and Advanced Streaming Format (.asf).
    • 4) The Adobe Flash player plays .flv files. It can also play .swf animation files.
    • The flow player
    • We can download from below website
    • URL : http://flowplayer.org/download/index.html
    • It having features like it can all supported formats like flv,mp3 and customization player
    • JW flv player
    • We can download from the
    • http://www.longtailvideo.com/players/jw-flv-player/
    • It having the features like it can play the flv, mp4, mp3,aac,jpg and png files.
  • 10.
    • The complete example for streaming
    To implement it that we want the FFMpeg software files, We can download those Files from http://ffmpeg.org It will run at the command prompt , then it will gives the list out total formats which supports using ffmpeg , 1) To list out the total commands that is supports by the FFMpeg: ffmpegffmpeg –formats 2) Converting video file to flv using FFMpeg: ffmpeg -i video.dat -ar 22050 -ab 32 -f flv -s 320x240 video.flv – i is input file name – ar is audio sampling rate in Hz – ab is Audio bit rate in kbit/s -f Output format -s Output dimension
  • 11. The command at the command prompt and how it run at the command prompt
  • 12. Creating Thumbnails while converting the file using FFMpeg: ffmpegffmpeg -i video10806.avi -r 0.1 -sameq -f image2 thumbs esting%02d.jpg Here ffmpegffmpeg is in the ffmpeg folder in that ffmpeg is exe file to run the command. video10806.avi The source file which are going to converted into small thumbnails. thumbs esting%02d.jpg Is the destination folder in which the thumbnails going to be saved. For every five seconds will be one fifth (1/5) or 0.2, so to grab ever 0.2 frame, this code is used. -i Input file name -an Disable audio -r fps -y Overwrite file -s Output dimension ffmpegffmpeg -i AVSEQ01.mpg -an -ss 00:01:03 -t 00:00:30 -r 1 -y -s 320×240 %d.jpg This command for create 320×240 sized images starting of the video 00:01:03 to next 30 seconds, creates the 30 images.
  • 13.
    • To convert the flv file to mpg format:
    • ffmpegffmpeg -i video10806.flv -ab 56 -ar 22050 -b 500 -s 320×240 jokes.mpg
    • -b bitrate: set the video bitrate in kbit/s (default = 200 kb/s)
    • -ab bitrate: set the audio bitrate in kbit/s (default = 64)
    • -ar sample rate: set the audio samplerate in Hz (default = 44100 Hz)
    • -s size: set frame size. The format is WxH (default 160×128 )
    • ffmpeg can also make DVD video files using -target, where the target can be "vcd",
    • "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd".
    • VCD format file
    • ffmpegffmpeg -i video10806.avi -target ntsc-vcd vcd.mpg
    • - DVD format file
    • ffmpegffmpeg -i video10806.avi -target ntsc-dvd dvd.mpg
    • - FLV file to VCD or DVD format
    • ffmpegffmpeg -i video10806.flv -target ntsc-vcd vcd1.mpg
    • FLV – mpg and mpg – flv
    • ffmpegffmpeg -i videovcd1.mpg -ab 256 Som_du_visnar2.flv
    • ffmpegffmpeg -i videoSom_du_visnar2.flv -target ntsc-vcd Som_du_visnar2.mpg
  • 14.
    • To convert into video file into mobile version supported file format:
    • ffmpegffmpeg -i jokes.mpg -vcodec h263 -s qcif -r 15 -b 100k -acodec libfaac -ac 1 -ar 32000 -ab 64k output.3gp
    • The file size is 716 kb that is converted into 3gp file format with 512 kb.
      • H.263 video codec
      • QCIF video resolution (176×144)
      • 15fps
      • 100 kb/s video bitrate
      • AAC audio codec (through libfaac)
      • 1 audio channel
      • 32000 Hz audio sampling frequency
      • 64 kb/s audio bitrate
      • How to splitting the video file:
      • ffmpegffmpeg -i vcd1.mpg -ss 00:00:10 -t 00:00:30 out1.mpg
      • -ss are the start point in hh:mm:ss from the beginning of your video file. -t is the length of time in hh:mm:ss of your new segment.
      • Here the video file from the 10 seconds to 30 seconds and it will store at the output video file.
  • 15. Queries?
  • 16. Thank You - Anil Kumar Panigrahi