|
|
|
| HOME | J2ME | Struts | AJAX | SOAP | SOA | MEDIA STREAMING | AXIS | | |
|
|
Encoding InternalsBack | Tutorial Home | Next Every media file is a Container of Audio Format and Video format.
Lets consider the popular DVD video format called VOB (Video Object). VOB file I have downloaded from my cam coder has following encoding formats which are visible in a tool called MediaCoder As is clearly visible MPEG-PS is the container holding Video as MPEG-PES and Audio as AC-3. Parameters of respective encoding is given in the above picture. Lets look at some of these important parameters Bitrate Core to bitrates are macroblocks which are squares of adjacent pixels. These are the basis for all encoding techniques. These are blocks that form the complete picture. bitrates depend on the changes in these macroblocks. If changes in pictures are more then changes in these microblocks will be more, example: A video showing landscape will need lesser macroblocks to change while a video showing car racing will need more macroblocks to change. Frame Rate Each frame in a video is a static image with rendering duration detail. More frame rate more the quality of video. Let us now do the encoding to streaming media using Reals Helix DNA Producer which is an open source counter part of Real Producer . I encoded a file called demo.mpg through command line to converted.rm and following results are printed on my console C:\\producer>producer -i C:mediademo\demo.mpg -o C:mediademo\converted.rm
If you carefully analyze the above system outs following process of encoding happens
From the console we now have few new parameters. Let us see what these mean Pre-roll Amount of movie data buffered before the movie starts Audience Audience is usually associated with network bandwidth. Helix DNA takes default network bandwidth as 256k DSL or Cable. However there are techniques which can stream depending on different bandwidths. These audience settings are usually called Multiple Bit Rate(MBR) and Variable Bit Rate(VBR) Multiple Bit Rate(VBR) Multiple Bit Rate is a technique were the media file is encoded to play at multiple bitrates depending on the network bandwidth. Multiple streams are packaged in the same file to play various bit rates. Thus same file can play over networks supporting various bandwidths 128kpbs, 256kpbs etc, This encoding gives better user experience and is not effected due to changes in network band width. The media player and the media server interact with each other to find the best bit rate for that particular stream cast.
Variable Bit Rate Variable Bit Rate is a technique were the media file is encoded for a particular network bandwidth. Most of the media servers use 256 kpbs as the default bandwidth. This is best suited for intranets were the bandwidth can be predicted. Bit Rates Vs Network Bandwidth Lets understand this basic media server technique. Usually a media file is encoded for a lesser bit rate than the target network band width. Suppose the audience network bandwidth is 256 kpbs the bit rate while encoding is 191 kpbs(indicative value). This additional bandwidth is utilized to offset varying bandwidths and buffering. Other general terms used in encoding technologies are described below Compression Compression is nothing but encoding Lossy Compression technique to remove additional useless information from video file Back | Tutorial Home | Next site comments powered by Disqus |
|
| toolbar powered by Conduit |
|
| Copyright © 2009. All rights reserved | Terms and Conditions | About | Contact | Feed Back | |