Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How to transfer data between two form Pin
Sandeep Mewara13-May-12 6:19
mveSandeep Mewara13-May-12 6:19 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:38
Promance13-May-12 15:38 
AnswerRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 5:16
Bull City Rambler12-May-12 5:16 
GeneralRe: How to transfer data between two form Pin
OriginalGriff12-May-12 5:24
mveOriginalGriff12-May-12 5:24 
GeneralRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 7:08
Bull City Rambler12-May-12 7:08 
AnswerRe: How to transfer data between two form Pin
BillWoodruff12-May-12 16:48
professionalBillWoodruff12-May-12 16:48 
GeneralRe: How to transfer data between two form Pin
Promance12-May-12 19:38
Promance12-May-12 19:38 
GeneralRe: How to transfer data between two form Pin
BillWoodruff15-May-12 16:14
professionalBillWoodruff15-May-12 16:14 
GeneralRe: How to transfer data between two form Pin
Promance19-May-12 3:47
Promance19-May-12 3:47 
AnswerRe: How to transfer data between two form Pin
Apocalypse Now13-May-12 15:00
Apocalypse Now13-May-12 15:00 

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.