Hi!
I had no expereince in coding a few months ago, and i didn't see the point either, thought it'd be rubbish! then when i had to study it for my collage course this year my god i took a liking to it, it passes the time and allows me to make stuff that are helpful for me and maybe others =)
Anyways i figured i'd sign up to a forum so i can read post and find ideas for some projects, and i'm current stuck on one of my projects at the moment =)
If i use the command in dos:
This will extract the file ffmpeg.exe located in the bin folder of the rar archive, works perfectly... then i tried to implement that into my project with this
you should note i have the file being downloaded using webclient
this downloads the file directly to the built exe for the project
Now in my eyes that should work, i can't see a fault yet it still does nothing, any ideas?!
The project i'm making is a simple FFMPEG converter from whatever to an flv, i have a problem with that also =)
Problem here is the conversion starts in a separate window, not too sure if i care about that though, but it ends a few seconds in with no errors or anything, as if system.diagnost ics is set to end the process if nothing happens after x amount of seconds
Thanks in advance guys!
I had no expereince in coding a few months ago, and i didn't see the point either, thought it'd be rubbish! then when i had to study it for my collage course this year my god i took a liking to it, it passes the time and allows me to make stuff that are helpful for me and maybe others =)
Anyways i figured i'd sign up to a forum so i can read post and find ideas for some projects, and i'm current stuck on one of my projects at the moment =)
If i use the command in dos:
Code:
c:\program files\winrar\winrar.exe e "ffmpeg.7z" bin\ffmpeg.exe
you should note i have the file being downloaded using webclient
Code:
webClient.DownloadFileAsync(new Uri("http://ffmpeg.arrozcru.org/autobuilds/ffmpeg-latest-mingw32-static.7z"), "ffmpeg.7z");
Code:
if (File.Exists("C://Program Files//WinRAR//WinRAR.exe"))
{
winrar = "C://Program Files//WinRAR//WinRAR.exe";
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = winrar;
proc.StartInfo.Arguments = "e ffmpeg.7z bin//ffmpeg.exe";
proc.Start();
label4.Text = "Extracting";
proc.WaitForExit();
label4.Text = null;
label3.Text = "FFMPEG Updated";
}
else
{
MessageBox.Show("Winrar is either not installed or installed to a diffrent location... Please find it for me!");
openwin.Filter = "|winrar.exe";
openwin.ShowDialog();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = openwin.FileName;
proc.StartInfo.Arguments = "e ffmpeg.7z bin//ffmpeg.exe";
proc.Start();
label4.Text = "Extracting";
proc.WaitForExit();
label4.Text = null;
label3.Text = "FFMPEG Updated";
}
The project i'm making is a simple FFMPEG converter from whatever to an flv, i have a problem with that also =)
Code:
private void button4_Click(object sender, EventArgs e)
{
// converting ends prematurly
// maybe add "no file input / output"
// ****ing **** crap
try
{
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "ffmpeg.exe";
proc.StartInfo.Arguments = "-y -i " + open.FileName + " -acodec libmp3lame -ar 22050 -f flv " + save.FileName;
proc.Start();
}
catch
{
MessageBox.Show("There was an error converting that file!");
}
}
Thanks in advance guys!
Comment