Gepetto wrote:POSSIBILITY 1: You didn't type in the directory for your file. Even if the script is in the same folder as the video you're trying to import, ypo have to type in everything. So if both Miruku.avs and TheMelancholyofHaruhiSuzumiya.avi are in folder C:\AMV, you can't just put Directshowsource("TheMelancholyofHaruhiSuzumiya.avi") in your script. You have to put the entire path, like so:
- Code: Select all
DirectShowSource("C:\AMV\TheMelancholyofHaruhiSuzumiya.avi")
AviSynth is fully compatible with relative paths. You don't need to include the full path if the script and the video are in the same folder.
MovieMarc wrote:DirectShowSource(C:\DocumentsandSettings\Compaq_Owner\Desktop\TheMelancholyofHaruhiSuzumiya.avi)
The filepath needs to have quotation marks on either side, like so:
DirectShowSource(
"C:\DocumentsandSettings\Compaq_Owner\Desktop\TheMelancholyofHaruhiSuzumiya.avi
")
The 'expected a , or ) ' error happens when the script elements aren't typed correctly; the most obvious in the case here is that there aren't quotation marks around the filepath. It can also happen if you leave a period at the end of the script or if you're missing a parenthese somewhere.
Also, some of those probably could use spaces in them. Documents and Settings, for instance, isn't one word. If the AVI has spaces in it, make sure that you have spaces in the name when you put it in your script. An easy way to avoid that problem entirely is to act like you want to rename the AVI, but instead, right-click on the highlighted text, use Copy, and then Paste that into the script.
The reason that it's saying you can't open it in VDub is likely because you're using something like ffdshow (maybe even the version packaged with the CCCP*). ffdshow is a DirectShow filter, it handles opening the files in Windows Media Player and other players that use DirectShow. What VirtualDub needs is a Video for Windows (VFW) codec. Most codecs (even ffdshow) include a VFW version, so it's usually seamless, but in ffdshow's case the VFW interface isn't automatically configured to open XviD or whatnot. You have to manually configure that yourself in ffdshow's VFW interface configuration (which should be found in the menu for ffdshow that appears in Start->Programs). Just change the places it says 'disabled' to 'libavcodec' and it should work (obviously not all of them, just the ones which pertain to XviD, DivX, MPEG4, H.263, and H.264, just to be safe).
*The version of ffdshow packaged with the CCCP does not include the VFW interface, so if you want to use ffdshow for that, you'll need to uninstall the one you've got and install one of the builds from
http://x264.nl/