Log in

View Full Version : Hiding command line and exchanging info.


Yiu
23rd May 2010, 14:06
Hey, developing my own x264 encoder GUI but I need some help!
I've got everything done but when I click encode, the x264 command pops up and I don't really know how to hide it...
I have a progress bar on my application also which shows what percentage it's supposed to be at, but I have no clue as to how to tell x264 to send the info to my app...

Working in ASP/VB.NET but willing to convert to C#.

Doom9
23rd May 2010, 14:21
If you're willing to go the open source route, there's staxrip that you can look at... it's written in VB.NET.

Yiu
23rd May 2010, 14:26
If you're willing to go the open source route, there's staxrip that you can look at... it's written in VB.NET.

Ah thank you very much...the majority of the work is done, it's just these final steps I need to complete.

LoRd_MuldeR
23rd May 2010, 15:07
You will need to redirect x264's console output to your own application and parse it. Then you can "extarct" the current progress.

To hide the console window, set STARTUPINFO.wShowWindow to SW_HIDE and add STARTF_USESHOWWINDOW to STARTUPINFO.dwFlags when calling CreateProcess ;)

See for details:
http://msdn.microsoft.com/en-us/library/ms686331(v=VS.85).aspx

A great article on how to redirect the STDOUT to your own application can be found here:
http://support.microsoft.com/?scid=kb%3Ben-us%3B190351&x=0&y=0

stax76
25th May 2010, 02:01
double post

http://forum.doom9.org/showthread.php?t=153580&highlight=process