View Full Version : File will not open
RedDwarf1
28th June 2007, 23:55
I am new to AviSynth and I have started to run into some problems. I have a small script that was working but it will no longer run. I have checked the files and they exist, I have changed the d2v files and they will not open. I did have this problem last night when I began but after messing around changing files such as the d2v file and remaking those, it did eventually run with the original d2v file. I am using AvsP to edit the script and it shows MPEG2Source: Could not open one of the input files ([path]/Encode.avs, line 3).
I have attempted to Open the script in VirtualDubMod and get a very similar error: AviSynth Open failure Encode.avs line 3
I have tried re-installing AviSynth and that did not help.
Can anyone help me get it to work?
LoadPlugin( "D:\Program Files XP 2\Graphics & Video\Video Editing\AviSynth 2.5\Plugins\DGDecode.dll" )
MPEG2Source("F:\VirtualDub\Files\New.d2v", cpu=0)
LoadPlugin("D:\Program Files XP 2\Graphics & Video\Video Editing\AviSynth 2.5\Plugins\ColorMatrix.dll")
ColorMatrix( mode="Rec.709->Rec.601", interlaced=true)
#Info()
LoadPlugin( "D:\Program Files XP 2\Graphics & Video\Video Editing\AviSynth 2.5\Plugins\LeakKernelDeint.dll" )
LeakKernelDeint(1)
Crop( 8, 2, -8, -2).Spline36Resize(672, 384)
Guest
29th June 2007, 00:41
Try getting rid of the & in your file path.
RedDwarf1
29th June 2007, 00:47
Thanks, but that is going to be a problem. That is where ALL my graphics software is installed. So unless I uninstall AviSynth and re-install to another place, it is very impractical.
I have just ran DGIndex again and produced another d2v file but I have not updated the script, it is still referencing the same d2v file that it was previously. Now my script runs! Using the same paths.
So running DGIndex seems to reset something in AviSynth.
Any idea why that should be?
Boulder
29th June 2007, 03:20
If you have installed Avisynth in that folder, you don't need the LoadPlugin lines. The plugins will be autoloaded when they are in the plugins folder.
RedDwarf1
29th June 2007, 04:25
I will try that, I did leave the path out as I read that it was not necessary if the plugins were in the AviSynth plugin folder. But that would not work, it could not find them :(
~bT~
29th June 2007, 09:04
y dont u move your plugins elsewhere and load them from there?
also u can edit this key in the registry if plugins are not autoloading:
HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth\plugindir2_5
and change the location of your plugins folder if its not the right location already.
RedDwarf1
27th July 2007, 01:18
I am getting the same problem yet again and the file path does not have the & in now. What is wrong with it this time?
It's totally crazy, sometimes it works and other times (when it is really needed) it doesn't. For DGdecode it has to have loadplugin, but if I add further plugins they do not require to be loaded. This is after a change.
MPEG2Source: Could not open one of the input files
LoadPlugin("C:\Program Files\Graphics_and_Video\Editing\AviSynth 2.5\plugins\DGDecode.dll")
MPEG2Source("F:\Encode\Decode\DVD_Redo.d2v", idct=5, cpu=0)
mitsubishi
27th July 2007, 01:25
Have you moved or renamed the source files?
The d2v file contains full paths the mpeg files, if you move them then you need to recreate the d2v file (or manually alter it in a text editor)
RedDwarf1
27th July 2007, 02:08
I have redone the full demux, recreating the d2v (excluding audio) with no full paths in dgindex and still get the error.
RedDwarf1
27th July 2007, 03:56
I have recreated them again into a different folder but set DGIndex to include full paths and this time it is working.
So why will it not work unless it has the full path?
Not having the full path means they can be moved can't it? That should be more flexible, so why am I stuck with it only working like this?
Guest
27th July 2007, 04:33
I'm willing to help you, if you settle down and give me all the details I need.
First get into a non-working scenario. Then give me:
1. The full path locations and names of the source files, the D2V file, and the AVS script.
2. The top of the D2V file.
3. The exact AVS script.
4. Identify the application opening the AVS script and its exact location.
5. The exact text of the error message that you get.
RedDwarf1
27th July 2007, 20:15
Source File Locations>
I:\test\test3\Video_No_Full_Paths.d2v
I:\test\test3\Video_No_Full_Paths.demuxed.m2v
I:\test\test3\Use_this.avs
Top of D2V File
DGIndexProjectFile16
4
VTS_01_1.VOB
VTS_01_2.VOB
VTS_01_3.VOB
VTS_01_4.VOB
Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=5
YUVRGB_Scale=1
Luminance_Filter=10,0
Clipping=0,0,72,72
Aspect_Ratio=16:9
Picture_Size=720x576
Field_Operation=0
Frame_Rate=25000 (25/1)
Location=0,0,3,4fed2
AVS Script>
#msharpen
LoadPlugin("C:\Program Files\Graphics_and_Video\Editing\AviSynth 2.5\plugins\DGDecode.dll")
MPEG2Source("I:\test\test3\Video_No_Full_Paths.d2v", idct=5, cpu=0)
#LoadPlugin("D:\Program Files XP 2\Graphics & Video\Video Editing\AviSynth 2.5\Plugins\ColorMatrix.dll") [These later loadplugin lines are not needed, yet the first one will not work if omitted, is this because I have DGDecode.dll, MPEG2Dec3.dll & MPEG2DEC.dll in my plugin folder? Which of the other two plugins are needed as well as DGDecode.dll?]
ColorMatrix( mode="Rec.709->Rec.601", opt=0)
Crop( 0, 2, -2, -2)
Lanczos4Resize(704, 300)
#LoadPlugin("D:\Program Files XP 2\Graphics & Video\Video Editing\AviSynth 2.5\Plugins\MSharpen.dll")
msharpen(8,160, mask=false, highq=false , debug=false )
The Programs used to open the script>
C:\Program Files\Graphics_and_Video\Editing\AviSynth 2.5\Editors\AvsP\AvsP\AvsP.exe
or
this will not open it either>
C:\Program Files\Graphics_and_Video\Editing\VirtualDubMod\VirtualDubMod.exe
==============================================================================================
It works when I set DGIndex to Use Full Paths, but if I change that to unticked, that is when it stops working and shows the error>
MPEG2Source: Could not Open one of the input files
Use_this.avs, Line 3
I have modified the script now as I am not happy with this one. The cropping and Luminance adjustments are now being done in the script rather than done by DGIndex. In fact it has been largely revised. But this is the one which gave the error.
It is the DGIndex Full Paths that seems to be causing the problem. What use is Full Paths in the d2v file if it only references the original VOB files where the actual used files are extracted from?
Guest
27th July 2007, 20:56
There are obvious inconsistencies in what you posted.
E.g., you say your source file location is:
F:\Encode2\Redo.demuxed.m2v
Then you say the D2V contains these references to the source files:
Q:\VIDEO_TS\VTS_01_1.VOB
Q:\VIDEO_TS\VTS_01_2.VOB
Q:\VIDEO_TS\VTS_01_3.VOB
Q:\VIDEO_TS\VTS_01_4.VOB
That is the first inconsistency.
But it gets worse. You say your D2V file location is:
F:\Encode2\Redo.d2v
But then your script loads this:
MPEG2Source("I:\test\Redo.d2v", idct=5, cpu=0)
That is the second inconsistency.
Finally, I asked you to set up the scenario that is not working and then give me the data. You say that if you do not use full paths, that is when it doesn't work. But the D2V you gave has full paths. You are not following my instructions.
If you don't follow my instructions and provide coherent data, I don't see how I can help you.
Do you understand that the Full Paths option affects how the D2V is made, and that you cannot just change it in DGIndex after you've saved your project, as that will have no effect?
Do you also understand that the D2V file cannot reference the demuxed video unless you load that demuxed video into DGIndex and make a project from it?
RedDwarf1
28th July 2007, 05:29
I collected the locations of the first few files that you wanted and saved it as a text file so I could use it when I posted as it was getting late and there was not enough time to complete a post.
I was also running out of space on my partition last night and I wanted some space so I deleted the stuff that did not work. I had to re-create the files, using the same settings as I used last night. That is why the files did not match, I forgot to check them.
I have edited the post with the corrections.
I realise that altering the settings in DGIndex will not affect the saved d2v file, if the project has already been saved. That is not how I was doing it. I must of made a mistake when I was re-creating the files.
Your last line is where I was going wrong. But.......
It will work when the d2v file references the original VOB files if the Use Full Path is checked for some reason.
So how is it working when the d2v file references the VOB files but only when full paths is checked?
mitsubishi
28th July 2007, 12:58
So how is it working when the d2v file references the VOB files but only when full paths is checked?Because you have the d2v file on a different drive to the vobs, without full paths they have to be in the same folder. Move the d2v into the same folder as the vobs and alter the avs to reflect that.
You can see in the non-full path version there is no-one way for it to know where those files are.
I think the confusion arises because DGindex demuxes out the video, but doesn't use it, still referencing the original files, for whatever reason. I demux first, then create the d2v off the demuxed video.
Guest
28th July 2007, 13:26
mitsubishi is correct. The source files and the D2V file must be together for no-full-paths operation. If they are not then the D2V file must be capable of extrasensory perception to know where the source files are!
That is the problem here. It's nothing to do with the fact that the demuxed video is not indexed.
Think of the demuxing process as just throwing off the parsed video ES as an epiphenomenon; the indexing is always done on the originally loaded source files. I can add that caveat to the user manual.
Out of curiosity, why would you want to demux and then index the demuxed video, versus just indexing the source VOBs?
mitsubishi
28th July 2007, 13:44
I thought the confusion was because the demuxed video was in the same folder as the d2v.
Out of curiosity, why would you want to demux and then index the demuxed video, versus just indexing the source VOBs?
Mostly I do DVB encodes, so I partly cut ads, trim and remove unwanted audio etc for size, so I do the same with DVD's out of habit. But it's also cleaner if you are setting up a few encodes so you just have 1 video and one audio file together with the same name. Also with DVB there might be errors, which DGindex doesn't handle so you lose sync.
Guest
28th July 2007, 13:57
I thought the confusion was because the demuxed video was in the same folder as the d2v. Possibly, but isn't it obvious that the demuxed file is not referenced in the D2V file?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.