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, 14: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, 14:21   #2  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
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, 14: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, 15:07   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 25th May 2010, 02:01   #5  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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 06:49.


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