Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd May 2010, 15:06   #1  |  Link
Yiu
Quality Whore
 
Join Date: Dec 2009
Location: Scotland
Posts: 14
Hiding command line and exchanging info.

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#.
Yiu is offline   Reply With Quote
Old 23rd May 2010, 15:21   #2  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,575
If you're willing to go the open source route, there's staxrip that you can look at... it's written in VB.NET.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 23rd May 2010, 15:26   #3  |  Link
Yiu
Quality Whore
 
Join Date: Dec 2009
Location: Scotland
Posts: 14
Quote:
Originally Posted by Doom9 View Post
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.
Yiu is offline   Reply With Quote
Old 23rd May 2010, 16:07   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,047
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/libr...(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=k...190351&x=0&y=0
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 25th May 2010, 03:01   #5  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,852
double post

http://forum.doom9.org/showthread.ph...hlight=process
stax76 is offline   Reply With Quote
Reply

Tags
developement, encoder, gui, x264

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.