Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , ,

Sponsored Links



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

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-01-2010
Member
 
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.
Reply With Quote
  #2  
Old 19-01-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
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");
Reply With Quote
  #3  
Old 19-01-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
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();
}
Reply With Quote
  #4  
Old 19-01-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
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(); 
   }
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to convert video files to flash movie file using ASP .NET?"
Thread Thread Starter Forum Replies Last Post
Need to Convert Windows movie maker video for youtube Annamarrie Tips & Tweaks 4 10-06-2010 08:32 AM
How to convert YouTube, limewire, DVD, flash and any video to iPod touch, classic, nano, video dvdloveri Guides & Tutorials 6 05-08-2009 08:29 PM
How to convert an ASF movie file ? pratikk Windows Software 2 05-03-2009 03:22 PM
Convert DV AVI file (created in Movie Maker) to a DVD file chayes Windows XP Support 1 02-02-2008 12:13 AM
How to Convert VOB Files for use with Windows Movie Maker LJ Marinello Vista Help 12 26-01-2008 11:47 PM


All times are GMT +5.5. The time now is 05:17 AM.