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.
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.
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.
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.
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.
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.)
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
The command at the command prompt and how it run at the command prompt
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.