|
| |||||||||
| Tags: asp dot net, c sharp, flash, number, program, textbox, video |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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
| ||||
| ||||
| 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();
}
__________________ Grand Theft Auto 4 PC Video Game |
|
#4
| ||||
| ||||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |