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 > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th February 2010, 17:18   #1  |  Link
hkarsaon
Registered User
 
Join Date: Jan 2010
Posts: 4
virtualdub sylia vcf script doesnt accept wildcards

I want to open a video file using a .vcf script file. This can be done by:

VirtualDub.Open(U"E:\encoding\myfile.avi");

However, for automating purposes I would like to be able to open any avi file in a directory.

The logical step to take would to add a wildcard:

VirtualDub.Open(U"E:\encoding\*.avi");

This is however not possible:

Cannot open file "*.avi":
The filename, directory name, or volume label syntax is incorrect.

Does anyone know a workaround to fix this issue?
hkarsaon is offline   Reply With Quote
Old 18th February 2010, 17:24   #2  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,739
Wildcards don't work everywhere, invoke using a script or batch file passing the filename as argument might work.

Quote:
/i invokes a script with arguments. All arguments following the script filename until the next switch are passed to the script in the VirtualDub.params[] array.

virtualdub /i process.script from.avi to.avi /x
__________________
mpv.net - StaxRip - MediaInfo.NET - Get-MediaInfo - More

Last edited by stax76; 18th February 2010 at 17:26.
stax76 is offline   Reply With Quote
Old 18th February 2010, 17:58   #3  |  Link
hkarsaon
Registered User
 
Join Date: Jan 2010
Posts: 4
I tried this and other options without success:

Without quotes Virtualdub.exe just opens and does nothing so I tried to add them:

Virtualdub.exe /i "E:\encoding\myscript.vcf E:\encoding\*.avi E:\encoding\test.avi"

output:

VirtualDub Error

Cannot open file "test.avi":

The filename, directory name, or volume label syntax is incorrect.

Another option I tried was opening vdub.exe instead of virtualdub.exe but this is giving me likewise errors or will just do nothing (no errors, no creating of a test.avi)
hkarsaon is offline   Reply With Quote
Old 18th February 2010, 18:07   #4  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,739
Seems you don't know how to script/code, it works like this:

cmdl:

Virtualdub.exe /i "E:\encoding\myscript.vcf" "E:\encoding\input.avi"

code:

VirtualDub.Open(VirtualDub.params[0]);
__________________
mpv.net - StaxRip - MediaInfo.NET - Get-MediaInfo - More
stax76 is offline   Reply With Quote
Old 18th February 2010, 18:44   #5  |  Link
hkarsaon
Registered User
 
Join Date: Jan 2010
Posts: 4
Point taken. Although I never tried to state otherwise

Thanks to your help I added

VirtualDub.Open(VirtualDub.params[0]);

to open and

VirtualDub.SaveAVI(VirtualDub.params[1]);

to save the avi to my myscript.vcf file

Now a cmdl like:

Virtualdub.exe /i "E:\encoding\myscript.vcf" "E:\encoding\input.avi" "E:\encoding\output.avi"

is working like it is supposed to.

However when providing a wildcard as the input
(Virtualdub.exe /i "E:\encoding\myscript.vcf" "E:\encoding\*.avi" "E:\encoding\output.avi") it still won't open the avi file
hkarsaon is offline   Reply With Quote
Old 18th February 2010, 18:58   #6  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,739
Like I said wildcards don't work everywhere, it's mostly a command shell thing that work also in certain other applications but not generally in all file IO related locations.
__________________
mpv.net - StaxRip - MediaInfo.NET - Get-MediaInfo - More
stax76 is offline   Reply With Quote
Reply

Tags
virtualdub wildcard vcf

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:21.


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