Posted on July 24, 2010 0:21 AM by Moderator. Tags: html5 , webm , asp.net vp8 , asp.net video encoding
You can use the following sample code to publish any format video to flash flv, mp4, vp8 webm, ogg vorbis, grab thumb in one step using ASP.NET Media Handler Pro.

Note: You need to download latest ffmpeg build with support of VP8 codec

Sample Code:
[quote]
         _mhandler.InputPath = RootPath + "\\contents\\original";
        _mhandler.OutputPath = RootPath + "\\contents\\output";
         VideoInfo info = new VideoInfo();
        _mhandler.FileName = "sample.wmv";
        _mhandler.OutputFileName = "sample";
         //***************************************
         //FLV Encoding
         //***************************************

        _mhandler.OutputExtension = ".flv";
        _mhandler.Video_Bitrate = 500;
        _mhandler.Audio_Bitrate = 128;
        _mhandler.Audio_SamplingRate = 44100;
        _mhandler.Force = "flv";
         info = _mhandler.Process();
         if (info.ErrorCode > 0)
          {
            Response.Write("Error occured while processing flv video");
            return;
          }
        _mhandler.Force = "";<
complete story

Showing 0 to 0 of 0 records

No comments posted yet!

© 2007 - 2012, mediasoftpro.com  | Site Map | Privacy Policy | Terms of Use