|
Hi stancrm
Thank you very much for your reply, I got download the sharpFFMPEG and i add that project to myC#project, I am able to generate the sharpFFMPEG dlls. Now My requirement is I need to convert one video to another video format.
eg: video1.wmv to video1.flv
video2.mp4 to video2.flv
So, I will give input of one video format to SharpFFMPEG and i need to get the output of another video format. How can write code to get this by using sharpFFMPEG dll.
Is sharp FFMPEG have any methods , which converts a video to another video format.
Please help me. Thanks in advance.
Balaji.V
|
|
|
|
|
I have the same problem with you, but i want to convert flv to mp4 by c#, i hope, all you can help me to resolve it.
|
|
|
|
|
My company are using this library Solid FFmpeg C# .Net Wrapper . It's a quite good and powerful ffmpeg wrapper. Especially for beginners. You can try it and decide by yourselves.
|
|
|
|
|
Hi,
I have an interesting problem.
I have a tray utility program with various menu options that in turn bring up different dialog boxes. I want each dialog box to work as if they were modeless, but track them as if they were modal. I have solved this by making each box modal but have them on individual threads with a boolean to track if it is open or not.
Some code...
#region Configure MenuItem
private bool MyFormStarted = false;
private MyForm MyDlg;
private void MyDlgMenuItem_Click(object sender, EventArgs e)
{
if (MyFormStarted)
{
if (MyDlg.InvokeRequired)
{
MyDlg.BeginInvoke((ThreadStart)delegate()
{
});
}
else
{
}
}
else
{
MyFormStarted = true;
new Thread(new ThreadStart(delegate
{
MyDlg = new MyForm ();
MyDlg.ShowDialog();
MyDlg.Dispose();
MyFormStarted = false;
})).Start();
}
}
#endregion
I have a block of code similar to this for each dialog that the tray utility is to open. By doing it this way, I can allow the opening of multiple dialog boxes at the same time while ensuring that each dialog can only be opened once.
What the problem is though, I cannot work out how to put the selected dialog on top. I have rem'ed out the MyDlg.Show() because this does not seem to work. I have tried
MyDlg.BringToFront();
MyDlg.Focus();
As well, but while the form obtains the focus, I cannot get it to display on top. I think it might have something to do with the threads.
So I guess ultimately my question is this: Is there a way to bring one thread in front of the other as 'BringToFront' would do to to the form?
Obviously, I will have to use a private class variable to hold the thread instance, but then what should I do with it.
Regards,
David
|
|
|
|
|
|
Thanks Shameel,
That worked. I had to follow it immediately with a:
MyDlg.TopMost = false;
So it did not stay on top. But that was the answer I was looking for.
Thanks again,
David Bailey.
|
|
|
|
|
HI,
I have wriiten the code to set the DHCP options such as DNS IPaddresses, Router IPAddress etc.
using DhcpSetOptionValueV5 API in c#.
The API add the option in the DHCP server but doesn't add the value for it, But same works on windows 2003 server.
All the DHCP management are used using p/invoke.
Regards
"A winner is not one who never fails...but the one who never quits"
modified on Monday, November 9, 2009 3:17 AM
|
|
|
|
|
I'm working on a application which simulates a pdf reader. I have a issue with traversing the page. Following are the details.
there are two buttons called, "Previous View" and "Next View". These fulnctionality of these two buttons is I can navigate to the previously visited pages.
My requirement is as follows.
Lets say I visit page 1, followed by 10, followed by 15, followed by 12 and back to 10.
i.e, 1->10->15->12->10.
Suppose If I'm @ page 12. if I click on "Previous View", I should nagigate to page 15 and If I click "Next View" I should go to page 10.
My issue is, Suppose I'm @ the last visited page. that is page 10, after page 12. If I click I "Next View" it should not navigate, because it is the last visited page. But what happening is it is navigating to page 15. The reason for that is I'm checking only for the first occurenece of a element. which is @ 2nd position.
this happens only if there is multple occurenec of a element.
I need help in developing the logic.
any suggestion is appreciated.
|
|
|
|
|
Well, maintain your position / index in the array; don't start searching for the page "you know you are already on".
Based on your scenario, your "index" should be 4 (i.e. the last "10") and you know you can't move "next" because the "count" of the items in the array is not greater than index + 1 (using 0 based addressing).
Moving to a new page directly, you simply add that page number to the end of the array, and set the current index to that entry.
Moving "previous", decrement the index; until it reaches 0, at which point you know you're at the first page visited.
|
|
|
|
|
search CP articles about "history" or "undo/redo". There is at least one very good one I remember.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
int index = 0;
string[] pages = .....;
void NextView() {
if (index < pages.Count-1) {
index++;
View.CurrentPage = pages[index];
}
}
void PreviousView() {
if (index > 0) {
index--;
View.CurrentPage = pages[index];
}
}
|
|
|
|
|
Hi
I am trying to insert a DataGridViewComboBoxColumn, the column is getting inserted but without values (options) in the combobox.
The Code is as under
<br />
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();<br />
column.HeaderText = "SELECT";<br />
column.Name = "ItemSelect";<br />
column.CellTemplate = new DataGridViewComboBoxCell();<br />
column.Items.AddRange("One", "Two", "Three");<br />
column.DropDownWidth = 160;<br />
column.Width = 90;<br />
column.MaxDropDownItems = 3;<br />
column.FlatStyle = FlatStyle.Flat;<br />
myDataViewGrid.Columns.Insert(0, column);<br />
When I run the code, in datagridview all cells except 1st are populated properly, in first cell I see only empty combobox.
Also, after showing the value, which event should I use to get the selected value of combobox?
Please guide
Thanks in advance
|
|
|
|
|
Hi
I got the Ping Monitor
Alberto Venditti -
given sample code but when I am running the program ,the Host name and ,OFF,ON are not displaying on the Grid Control.
I created the PingLog and ,HostList Tables in the SQL server 2005.Whatever I addded in the Hostlist through the GUI it is updating in the database.but,The ON and Off status are unable to view on the Grid control.
I just coped whole code and created the Database,And my running host name I added in the List of GUI.
Can u pls. tell me what I have to do to see the List of ON and OFF host details.If I missed ...something.
Advance Thanks.
Pandu
|
|
|
|
|
medara wrote: If I missed ...something
Yes you are missing something. You would be way better off posting your question here[^] since he more likely to see it there than here. And posting a question about a VB article in the C# forum is almost certainly not going to get you an answer.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
My C# program is set to target the 2.0 version of the .NET Framework.
I used one of the overloads of WaitHandle.WaitAny that's only available in the 3.0 version of the framework, and it let me build the program and run it!
Is this supposed to occur?
The problem is that when I run the program on a machine that only has version 2.0 of the framework, the program crashes, of course.
But why did Visual Studio allow me to use an overload from the 3.0 version when it shouldn't have?
|
|
|
|
|
Actually 3.0 is a update to 2.0. It runs over 2.0. Thus if you build your project with a machine which have 3.0 installed, it will automatically take it as 3.0 (if not specified explicitly while creating project in VS 2008 IDE).
The project you built has taken 3.0 framework.Thus it requires it when running to a machine having 2.0 and crashes.
3.0 is not a new framework, but just an enhancement to 2.0.
|
|
|
|
|
Thank you for the information!
|
|
|
|
|
Is there an API for the Win32 CreateProcess interface with all functionality available in C#/.NET?
I'm seeking for an example and would be very grateful for one.
|
|
|
|
|
You're either going to use the Process class in the System.Diagnostics namespace or you can P/Invoke the CreateProcess function yourself. Go to http://www.pinvoke.net[^] for details.
|
|
|
|
|
Have a try:
using system.diagnostics;
process.start("excel.exe");
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:55pm.
|
|
|
|
|
...and you're telling me the blatenly obvious, why....??
You might want to reply to the original poster and not me. That way, HE gets the email notification that you replied.
|
|
|
|
|
Hi
i have treeview and it has some parantnode and chilenode;
i want when user checked(select) parantnode all of that chilnode's checked automatically;
what should i do?
|
|
|
|
|
If a parent node is clicked, you'll have to write code to enumerate all of its child nodes and check them.
|
|
|
|
|
I would implement an event handler for the AfterCheck event of the TreeView : in that event handler : if the checked Node has child Nodes : call a recursive function passing the TreeNodeCollection of the Node to the recursive function which will check all the child nodes, or do whatever else you want to do.
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
can anyone help me to get a source code for file sharing, power point presentation, whiteboard, for video conference....
|
|
|
|