PDA

View Full Version : تبدیل ویدئو به flv



jasadeghi
شنبه 15 تیر 1387, 17:09 عصر
سلام

برنامه ای دارم برای تبدیل فایلهایی ویدئویی به .flv .
این برنامه رو از یک سایت آموزشی برداشتم که متن آموزشی به شرح زیر بود.



- Google and download cygwin1.dll, cygz.dll and ffmpeg.exe
- Put them in one folder

- Google and download FFMpegScout.dll
- Add FFMpegScout.dll to your C#‎ project as a reference.

Here is the codes:

------------

using FFMpegScout;


private void button1_Click(object sender, EventArgs e)
{
FFMpegScout.CFFMPegScoutClass VideoConverter = new CFFMPegScoutClass();
VideoConverter.Width = 640;
VideoConverter.Height = 480;
VideoConverter.InputFileName = "C:\\dan.mp4";
VideoConverter.OutputFileName = "C:\\dan.flv";
VideoConverter.PathToFFMpeg = "C:\\ffmpeg\\ffmpeg.exe";
VideoConverter.Execute();

MessageBox.Show("Done!");
}
تمام گزینه ها در متن بالا اجرا شده ولی با پیغام خطای زیر روبرو می شود.


Retrieving the COM class factory for component with CLSID {8994374B-C413-465B-BB10-33B8D1AC6DF4} failed due to the following error: 80040154.

Line 29: protected void Button1_Click(object sender, EventArgs e)
Line 30: {
Line 31: FFMpegScout.CFFMPegScoutClass VideoConverter = new CFFMPegScoutClass();
Line 32: VideoConverter.Width = 640;
Line 33: VideoConverter.Height = 480;
. (https://plus.google.com/102973385927509161031?rel=author)
با تشکر