Results 1 to 4 of 4

Thread: How to convert video files to flash movie file using ASP .NET?

  1. #1
    Join Date
    Nov 2009
    Posts
    50

    How to convert video files to flash movie file using ASP .NET?

    Hi friends,
    I am new to this forum. I know how to convert video files to flash movie using any software, but I want to do this process using ASP .NET. Can anyone tell me How to convert video files to flash movie file using ASP .NET? Please help me.
    Thank you.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to convert video files to flash movie file using ASP .NET?

    Hey you can convert video files to flash movie file using ASP .NET in following ways. Just go through this code. It is command line program.



    Code:
    using System.Diagnostics;
    
    Process myP;
    
    myP = Process.Start("video"); 
    
    myP.CloseMainWindow();
    
    public void convert (string FilenamePathAndSwicthes) { .... }
    
    myProc=Process.Start(@"C:\....\Executable.exe"+FilePathAndSwicthes");

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to convert video files to flash movie file using ASP .NET?

    I have written code to convert video file to flash. It is working properly in my project. I think you also use this code to do this process.
    Code:
    string c1 = " -i \"" + inputPath + "\\" + fileName + "\"  \"" + outputPath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\""; 
    
    ConvertNow(c1);
    
    return true;
    }
    
    private void ConvertNow(string c1)
    {
       string exepath1;
       string AppPath1 = Request.PhysicalApplicationPath;
    
       exepath1 = AppPath1 + "karins.exe";
       System.Diagnostics.Process proc = new System.Diagnostics.Process();
       proc.StartInfo.FileName = exepath1;
    
       proc.StartInfo.Arguments = c1;
    
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.CreateNW = true;
       proc.StartInfo.RediretSO = false;
       proc.StartInfo.ErrorDialog = true;
       proc.Start();
       proc.WaitForExit();
       proc.Close();
    }

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: How to convert video files to flash movie file using ASP .NET?

    I am using following code for converting video files to flash movie file using ASP .NET. It think you also use this to do same. Just go through line by line and try to understand each step.


    Code:
     
    protected void convert_Click(object S, EventArgs E)
       {
    
    
           Process mp4; 
    
           string v1;
           string mpg;
           v1 = Page.MapPath("karina.wmv"); 
           mpg = Page.MapPath("") + "\\v1.flv"; 
           mp4 = new Process();
    
           mp4.StartInfo.Arguments = " -i " + v1 + " -s 480*360 -deinterlace -ab 32 -r 15 -ar 22050 -ac 1 " + mpg; 
           mp4.StartInfo.FileName = Page.MapPath("mp4.exe");
    
           mp4.Start(); // start !
           mp4.WaitForExit();
           mp4.Close();
    
       }
       public void ExtractImage()
       {
           Process mp4; 
           string v1;
           string t;
           v1 = Page.MapPath("v1.flv"); 
           t = Page.MapPath("") + "\\frame.jpg"; 
           mp4 = new Process();
    
           mp4.StartInfo.Arguments = " -i \"" + v1 + "\" -s 108*180 -vframes 1 -f image2 -vcodec mjpeg \"" + t + "\"";
           mp4.StartInfo.FileName = Page.MapPath("mp4.exe");
           mp4.Start(); 
       }

Similar Threads

  1. Is it possible to convert a movie maker PROJECT file?
    By mikeell in forum Windows Software
    Replies: 3
    Last Post: 25-05-2011, 07:52 AM
  2. Need to Convert Windows movie maker video for youtube
    By Annamarrie in forum Tips & Tweaks
    Replies: 4
    Last Post: 10-06-2010, 07:32 AM
  3. Replies: 6
    Last Post: 05-08-2009, 07:29 PM
  4. How to convert an ASF movie file ?
    By pratikk in forum Windows Software
    Replies: 2
    Last Post: 05-03-2009, 03:22 PM
  5. How to Convert VOB Files for use with Windows Movie Maker
    By LJ Marinello in forum Vista Help
    Replies: 12
    Last Post: 26-01-2008, 11:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,705,301.86160 seconds with 17 queries