|
|
| Coding_Eric |
| Posted: Jun 10 2014, 01:42 PM |
 |
|
Newbie

Group: Members
Posts: 2
Member No.: 38065
Joined: 10-June 14

|
Hello everyone !
Here's the big picture : I'm using VDub to transform a set of images into a video, there's no problem on that side. To automate the process, I wrote a small application in VB.NET executing VD with a shell command. I'm calling the Command Line version of VD with proper switches to use a previously set up config and encode my video. No problem here either, I managed to do it with the VD help, this forum and the VD website.
My questions related to VD sounds really newbish in my head, but here I go : - When calling (with my application or with a target edited shortcut)
it closes right after popping, is it normal, how can I read the detailed help I have a glance at ?
- Same question goes with
| CODE | | vdub.exe /queryVersion |
- Even when calling the command line program, the encoding process pops the VD GUI wich I managed to minimize, is it possible to totally hide it ?
- If it is possible to hide it, can I get back the process status, for example the percentage display in the task bar ?[CODE][/CODE] |
 |
| dloneranger |
| Posted: Jun 10 2014, 02:02 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
| QUOTE | vdub.exe /? vdub.exe /queryVersion |
You're just running a standard cmd exe, so redirect stdout to a file or pipe? In a .bat file that would be like vdub.exe /queryVersion >c:\somefile.txt In vb.net I have no idea, but it's a standard thing (not specific to virtualdub) so best to check at vb.net programming forums etc for help with CreateProcess redirection
| QUOTE | | Even when calling the command line program, the encoding process pops the VD GUI wich I managed to minimize, is it possible to totally hide it ? |
The gui and window should be minimized by vdub.exe automatically If you don't want the gui visible at all you'll have to do it youself With your own app, you don't need vdub.exe at all - that's just to provide easy .bat scripting CreateProcess the main virtualdub exe yourself and control the windows, exit code etc from your own app Again, that's just normal coding -> back to your fave vb.net forums
| QUOTE | | If it is possible to hide it, can I get back the process status, for example the percentage display in the task bar |
Good question, and I'm not sure about the answer You can enum the windows to find virtualdub processes status window, then read it's title bar You can hide the window Not sure if you can do both at the same time - does the window exist and have a handle when hidden??? I can't see why it wouldn't, but it might be a problem
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| Coding_Eric |
| Posted: Jun 11 2014, 09:49 AM |
 |
|
Newbie

Group: Members
Posts: 2
Member No.: 38065
Joined: 10-June 14

|
Thank you for your advices !
I successfully managed to read the output of the command line application !
I successfully managed to read the percentage displayed in the title bar while it is encoding !
I tried several ways to hide the window that pops, but it doesn't work, it seems that the GUI bypasses/ignore the hide command. I might tweak it in VD's code as it is open source to force hide-it.
Thank you again for your enlightenments ! |
 |
| dloneranger |
| Posted: Jun 11 2014, 02:41 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
If you've got the window's handle, you should be able to ShowWindow it with SW_HIDE
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
|