Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Pete O'Hanlon14-May-12 7:18
mvePete O'Hanlon14-May-12 7:18 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 7:21
Matt U.14-May-12 7:21 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 7:24
Matt U.14-May-12 7:24 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Pete O'Hanlon14-May-12 8:32
mvePete O'Hanlon14-May-12 8:32 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 8:39
Matt U.14-May-12 8:39 
Questionusing log4net with custom database logger Pin
SASS_Shooter14-May-12 5:08
SASS_Shooter14-May-12 5:08 
Questioncall a jar file from .net clr Pin
nextaxtion13-May-12 21:40
nextaxtion13-May-12 21:40 
AnswerRe: call a jar file from .net clr Pin
Pete O'Hanlon14-May-12 1:09
mvePete O'Hanlon14-May-12 1:09 
GeneralRe: call a jar file from .net clr Pin
Peter_in_278014-May-12 1:19
professionalPeter_in_278014-May-12 1:19 
GeneralRe: call a jar file from .net clr Pin
Pete O'Hanlon14-May-12 1:43
mvePete O'Hanlon14-May-12 1:43 
Questionhow can i run ~~~.aspx page without popup in c#? Pin
buffering8313-May-12 21:33
buffering8313-May-12 21:33 
AnswerRe: how can i run ~~~.aspx page without popup in c#? Pin
Nitin S14-May-12 1:28
professionalNitin S14-May-12 1:28 
GeneralRe: how can i run ~~~.aspx page without popup in c#? Pin
Sentenryu14-May-12 2:49
Sentenryu14-May-12 2:49 
GeneralRe: how can i run ~~~.aspx page without popup in c#? Pin
buffering8314-May-12 13:33
buffering8314-May-12 13:33 
QuestionStimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
hamed hossani12-May-12 21:40
hamed hossani12-May-12 21:40 
AnswerRe: Stimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
Sandeep Mewara12-May-12 23:27
mveSandeep Mewara12-May-12 23:27 
GeneralRe: Stimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
hamed hossani13-May-12 9:11
hamed hossani13-May-12 9:11 
QuestionQuestion about c # ffmpeg... Pin
devil185212-May-12 0:17
devil185212-May-12 0:17 
private void btnStart_Click(object sender, EventArgs e)
{
this.btnStart.Enabled = false;
this.progressBar1.Value = 0;

string srcFile = Path.Combine(this.txtSource.Text, this.lstFiles.SelectedItem.ToString());
MessageBox.Show(srcFile);
string dstFile = Path.Combine(this.txtOutput.Text,
Path.GetFileNameWithoutExtension(this.lstFiles.SelectedItem.ToString())) + "." + this.cboOutputFormat.SelectedItem;
MessageBox.Show(dstFile);
string imafile = Path.Combine("movie= "+this.openFileDialog1.SafeFileName);
MessageBox.Show(imafile);


string videoRateOption = string.Empty;
if (this.cboVideoRate.SelectedIndex != 0)
{
videoRateOption = " -b:v " + this.cboVideoRate.SelectedItem.ToString().Split(' ')[0] + "k ";
MessageBox.Show(videoRateOption);
}

string videoSizeOption = string.Empty;
if (this.lstVideoSize.SelectedIndex != 0)
{
videoSizeOption = " -s " + this.lstVideoSize.SelectedItem.ToString().Split(' ')[0] + " ";
}


this.Text = "Converting...";
ThreadPool.QueueUserWorkItem((object state) =>
{
ConvertFile(srcFile, imafile, dstFile, videoRateOption, videoSizeOption);
});
}


string strFFMPEGOut;
ProcessStartInfo psiProcInfo = new ProcessStartInfo();
TimeSpan estimatedTime = TimeSpan.MaxValue;

StreamReader srFFMPEG;

string ste = ""movie=watermarklogo.png [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"";
string strFFMPEGCmd = " -i "" + srcFile + "" -ar 44100 " + videoRateOption + videoSizeOption +"-vf"+ ste + "-y ""
+ dstFile + """;

psiProcInfo.FileName = Application.StartupPath + ((IntPtr.Size == 8) ? "\x64" : "\x86") + "\ffmpeg.exe";
psiProcInfo.Arguments = strFFMPEGCmd;
psiProcInfo.UseShellExecute = false;
psiProcInfo.WindowStyle = ProcessWindowStyle.Hidden;
psiProcInfo.UseShellExecute = false;
psiProcInfo.RedirectStandardError = true;
psiProcInfo.ErrorDialog = true;
psiProcInfo.RedirectStandardOutput = true;
psiProcInfo.CreateNoWindow = true;

prcFFMPEG.StartInfo = psiProcInfo;

prcFFMPEG.Start();


ponse that I push the start botten that I tried to fix the code that I
inserted the logo in the movie with ffmpeg.
Is that be okay if I don't choose the path of logo.and Is there any something wrong that I did.
AnswerRe: Question about c # ffmpeg... Pin
Alan N12-May-12 2:27
Alan N12-May-12 2:27 
QuestionHow to transfer data between two form Pin
Promance11-May-12 20:29
Promance11-May-12 20:29 
AnswerRe: How to transfer data between two form Pin
Sandeep Mewara11-May-12 22:15
mveSandeep Mewara11-May-12 22:15 
GeneralRe: How to transfer data between two form Pin
Promance12-May-12 19:45
Promance12-May-12 19:45 
AnswerRe: How to transfer data between two form Pin
Sandeep Mewara12-May-12 20:11
mveSandeep Mewara12-May-12 20:11 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:04
Promance13-May-12 15:04 
AnswerRe: How to transfer data between two form Pin
DaveyM6913-May-12 6:05
professionalDaveyM6913-May-12 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.