View Full Version :
Is there modified version of Virtual Dub.. which..
ookzDVD
6th December 2001, 09:01
which could shutdown after finish encoding ?
just like Nandub.
Thank you.
cofferscuffs
12th December 2001, 22:00
I could do that as im working at the moment on re-implementing ASF format support lost in Vdub 1.3c into Vdub 1.4.7. Also got plans to put dual audio just like Nandub.
cofferscuffs
13th December 2001, 19:45
Like I said I was working on it, here is the link to ChimpDub v0.1alpha:
http://willywonker2002.tripod.ca
The source code is there as well. This is essentially VirtualDub 1.4.7 but with ASF support which was lost after 1.3c. I know that you can't actually encode files in ChimpDub yet, but this is just a quick build. Also it can only open ASF files, not WMV8 ok? I'm working on getting rid of the encoding bug (crashes after Save AVI is clicked), then I'll do the shutdown Windows option in the Dub Status dialoge like in Nandub. You have to have MS-MPEG4 codecs installed for it to work properly.
Check the ChimpDub change log to find out what I've done (wrong?).
I'm welcome to any suggestions or criticisms.
ookzDVD
14th December 2001, 03:15
Hi cofferscuffs,
Thank you for your program,
let me be your beta tester ;)
I'll tell you if I found error.
PS.
I just download the chimpdub_v0.1alpha.rar
but when I try to open it, file is corrupt.
cofferscuffs
14th December 2001, 11:19
I'm reuploading the file now, then i'll test it for download myself. Thanx for the offer, I'll always upload to the URL in my last post so check there and I'll PM a password to you when one is there. Thanx.
EDIT: Try now, the files a bit bigger but it works.
TKSoft2000
16th December 2001, 13:48
Try VDstartPro!
The joblist let you choice how to shut down your system after capturing, has much more features, and works with every version of virtualdub and clones of VirtualDub like NanDub!
www.geocities.com/sssoftfil01/eigene/VDstartPro1B/vdstartpro1beta.html
mfg
TKS
ookzDVD
19th December 2001, 04:42
hi TKSoft2000,
nice utility,
btw, the url is not valid,
please give me another one.
Thank you.
TKSoft2000
19th December 2001, 18:05
Hmm, I don't know other Fileservers to this Program (is only 4 days old).
I have writtten a mail to the author to fix this problem.
So long I'll send you the file over Mail.
So if you are interested in VDstartPro, please write me a mail, I'll send you the file.
Mailto: hallodu2000@yahoo.de
mfg
TKS
TheWEF
19th December 2001, 19:25
hey cofferscuffs!
can you tell me where in nandub source the shutdown-code is hidden?
wef.
TKSoft2000
19th December 2001, 19:25
Hi,
I just got a new link:
http://www.geocities.com/GeoFileSer0002/eigene/VDstartPro1B/vdstartpro1beta.html
mfg
TKS
cofferscuffs
19th December 2001, 20:01
@ TheWEF
Well it's hard, as it's spread out all over the place but I'll try, haven't been able to implement it myself as I've think I've missed some code that nando has written...
I'll edit this post to telll you where it is soon as I re-read the code again as I haven't looked at it in ages. But, off the top of my head there's some near the top of Main.cpp and some in Dub.cpp. I'll start looking at it in now in depth...
cofferscuffs
19th December 2001, 22:30
theWEF here is what I found so far, but I *know* it isn't complete, if you find anymore please tell me.
This bit is about 3 PgDn from the top of Main.cpp:
void SetAudioSource();
void OpenAVI(int index, bool extended_opt);
void AppendAVI();
void PreviewAVI(HWND, DubOptions *, int iPriority=0, bool fProp=false);
void SaveAVI(HWND, bool);
void AnalyzeAndSave(HWND, bool);
void SaveSegmentedAVI(HWND);
void HandleDragDrop(HDROP hdrop);
void SaveStripedAVI(HWND);
void SaveStripeMaster(HWND);
void CPUTest();
void InitDubAVI(char *szFile, char *szInfo, BOOL fAudioOnly, DubOptions *quick_options, int iPriority=0, bool fPropagateErrors = false, long lSpillThreshold=0, long lSpillFrameThreshold=0);
void SaveImageSeq(HWND);
void SaveWAV(HWND);
void OpenWAV(bool secondary=false);
void OpenMP3(bool secondary=false);
void OpenAC3(bool secondary=false);
void OpenOGG(bool secondary=false);
void DoDelete();
void SaveConfiguration(HWND);
void GetShutDownRights( void );
And this is 3/4 down the code (might not display right), the bottom part is the bit you need:
if (GetSaveFileName(&ofn)) {
if (!CoachCheckSaveOp(hWnd, &g_dubOpts, &g_Vcompression, g_ACompressionFormat, &g_listFA))
return;
if (save_data.bAddAsJob) {
try {
char *szInfo = PrepareAVIInfo( &save_data );
JobAddConfiguration(&g_dubOpts, g_szInputAVIFile, FILETYPE_AUTODETECT, g_szFile, szInfo, fUseCompatibility, &inputAVI->listFiles, 0, 0);
if( szInfo ) free( szInfo );
} catch(MyError e) {
e.post(g_hWnd, g_szError);
}
} else {
if (!(outputAVI = new AVIOutputFile()))
MessageBox(NULL,g_szOutOfMemory,g_szError,MB_OK);
else {
((AVIOutputFile *)outputAVI)->disable_os_caching();
if (g_prefs.fAVIRestrict1Gb)
((AVIOutputFile *)outputAVI)->set_1Gb_limit();
if (fUseCompatibility)
((AVIOutputFile *)outputAVI)->disable_extended_avi();
char *szInfo = PrepareAVIInfo( &save_data );
InitDubAVI(g_szFile, szInfo, FALSE, NULL, g_prefs.main.iDubPriority, false, 0, 0);
if( szInfo ) free( szInfo );
if (g_dubOpts.fShutdown) {
GetShutDownRights();
if( ExitWindowsEx(EWX_POWEROFF|EWX_SHUTDOWN|EWX_FORCE, 0xFFFFFFFF)==FALSE ) {
if( ExitWindowsEx(EWX_SHUTDOWN|EWX_FORCE, 0xFFFFFFFF)==FALSE ) {
char msg[256];
DWORD dwError = GetLastError();
sprintf( msg, "Duh! Can't shut down the box (Error: %d)", dwError );
MessageBox(
NULL,
msg,
"Error",
MB_OK|MB_ICONERROR
);
}
}
ExitProcess(0);
}
}
}
}
}
That bit repeats about 4 PgDn after that.
I'll post again soon...
TheWEF
19th December 2001, 23:32
thank you!
well, here is what i am using, looks like almost the same to me. don' t understand why so many people have problems? nando just sets the shutdown flag as well. so i might try the same thing in the next version.
unit ShutDown;
interface
uses
SysUtils, Windows;
procedure ShutDownWindows;
implementation
procedure ShutDownWindows;
var
rl,flgs: Cardinal;
hToken: Cardinal;
tkp: TOKEN_PRIVILEGES;
begin
flgs := 0;
flgs := flgs or EWX_FORCE;
flgs := flgs or EWX_POWEROFF;
if Win32Platform = VER_PLATFORM_WIN32_NT then
begin
OpenProcessToken(GetCurrentProcess, TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY, hToken);
LookupPrivilegeValue(nil, 'SeShutdownPrivilege', tkp.Privileges[0].Luid);
tkp.Privileges[0].Attributes := SE_PRIVILEGE_ENABLED;
tkp.PrivilegeCount := 1;
AdjustTokenPrivileges(hToken, False, tkp, 0, nil, rl);
end;
ExitWindowsEx(flgs, 0);
Halt;
end;
end.
cofferscuffs
19th December 2001, 23:37
What platform are the problems happening on Win9x or Win2k/xp, or is it both...? Opps just seen the thread, I'll look into it for you, but I'm sure that the code I gave you wasn't ALL of it..
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.