View Full Version : AviScript_MPEG2Source: couldn't open file
Trockie
18th November 2005, 14:54
Hi,
I'm getting this error when trying to preview a d2v file from Gordian Knot in AviScript:
Warning-error in Avisynth file!
and this other on the preview screen in red letters:
MPEG2Source: couldn't open file (C:\Program Files\AviScript 2.9 (Fullversion)~TMPfull.avs, line 27)
I've tried everything I've found on the web and nothing seems to work. This is the log file from ~TMPfull file:
#==============================================================
# AVISynth-Script to generate Stream: [- No Resize -]
# created from [AviScript] at: 18.11.2005, 00:58
#==============================================================
# 01___________________________________________________________
# Variables generated by AviScript
video = "X:\Finding Neverland\VIDEO_TS_\FindingNeverland.d2v"
audio = "X:\Finding Neverland\VIDEO_TS_\FindingNeverland AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3"
masktop = 0
maskbuttom = 0
maskleft = 0
maskright = 0
#End01
# 02___________________________________________________________
# Load AviSynth PlugIns
# DLL - for mpeg2source, SmartDeInterlace and TemporalSmoother
LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
# DLL - for Audio AC Import
LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\ac3source.dll")
#End02
# 03___________________________________________________________
# Load Video & Audio
# read MPEG videostream
videostream=mpeg2source(video)
# serve videostream and AC3 audiostream
videostream
AC3source(audio)
#End03
# 04___________________________________________________________
# Change Audiodelay
# set audiostream-delay in sec
DelayAudio(0)
#End04
#EndAll
Could you tell me if you see some errors causing this problem in this log, please?
If not, could you tell me the steps to follow to fix the problem?
Thanks for your help.
Wilbert
18th November 2005, 15:42
video = "X:\Finding Neverland\VIDEO_TS_\FindingNeverland.d2v"
audio = "X:\Finding Neverland\VIDEO_TS_\FindingNeverland AC3 T01 3_2ch 448Kbps DELAY 0ms.ac3"
LoadPlugin("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
# DLL - for Audio AC Import
LoadPlugin("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\ac3source.dll")
mpeg2source(video)
I think the error points to the last line. Some remarks/questions:
0) Open the script in VirtualDub. Post the exact error message.
1) AC3Source downmixes incorrectly. Use NicAudio.
2) What GKnot version are you using?
3) What AviSynth version are you using?
Trockie
18th November 2005, 16:02
Thanks for the reply:
0) Message from VirtualDub:
AviSynth open failure:
MPEG2Source: couldn't open file
(C:\Programs Files\AviScript 2.9 (Fullversion)\~TMPfull.avs, line 27)
1)I don't understand this point...do you mean to use NicAudio.dll instead Ac3Source.dll in AviScript 2.9 (Fullversion)\PlugIns folder? If yes I guess have to add it as I can't see any similar to nicaudio.
2)Gordian Knot 0.33.1
3)AvySynth 2.56, build:Oct 7 2005 [19:14:48]-->this info is from AvyScript 2.9
thanks for your help.
foxyshadis
18th November 2005, 16:32
It sounds like your d2v is pointing to the wrong place. Did you move or rename anything after you created the d2v? At that moment it still uses full paths, so the easiest way to fix it is to just reindex the video with dgindex. Try that, save it over your old d2v, and see if it works. (The other possibility is that the d2v itself is missing, make sure you check that the names and paths are correct.)
And yeah, nicaudio is at avisynth.org/warpenterprises
Trockie
18th November 2005, 17:49
Did you move or rename anything after you created the d2v?-->No, I haven't moved or renamed anything.
just reindex the video with dgindex. Try that, save it over your old d2v, and see if it works-->No, that doesn't work.
The other possibility is that the d2v itself is missing-->Nothing is missing, names and paths are corrects.
nicaudio is at avisynth.org/warpenterprises-->I have copied nicaudio.dll in plugins folder and deleted ac3source.dll but Aviscript still load this-->LoadPlugin("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\ac3source.dll")...I don't know what to do to make nicaudio to load instead ac3source...could you help me about this?
Thanks.
Wilbert
18th November 2005, 22:10
1) Can't you change the script generated by AviScript manually?
2) Don't use AviScript. It's not free anyway :)
3) Use the latest DGIndex/DGDecode to create and open d2v projects in AviSynth. You are using a very old one (mpeg2dec.dll).
Trockie
18th November 2005, 22:25
1)the file generated by aviscript, ~TMPfull, disappears when I close the preview window in aviscript, so if I change it and save it and then click on preview again it creates a new one.
2)as you can see in the post I'm using AviScript 2.9 fullversion...that means I've paid for it, so I guess being not free is not a problem anymore.
3)If I'm using the latest Gordian Knot, why doesn't include the latest DGIndex?...anyway I've been using DGIndex 1.76 from Dvd2Svcd and the result was exactly the same...because having both could be a problem I've uninstalled dvd2svcd before doing the last project and post it here, but as you can see the results are exactly the same.
Please, could you tell me what do you do in my case and give me some advice?
Thanks for your help.
foxyshadis
18th November 2005, 22:41
DVD2SVCD also includes a very old version of dgindex. Hop over to the dgindex forum and pick up a newer version, of which the latest is 1.45b1 I believe, the "1.76" is dvd2avi numbering and positively ancient.
raquete
18th November 2005, 22:58
anyway I've been using DGIndex 1.76 from Dvd2Svcd and the result was exactly the same.you need to use something like this in your script:
LoadPlugin("C:\??\???\DGDecode.dll")
MPEG2Source("C:\???\???.D2V")
because having both could be a problem I've uninstalled dvd2svcd before doing the last project and post it hereas D2S was uninstalled,you need to download the right DGDecode.dll version and adjust the path in the script.
DVD2SVCD also includes a very old version of dgindexit's from 01/oct/2005 but you can download a new one(if any) from neuron2 home page.
foxyshadis
19th November 2005, 02:33
Excuse me, I was confusing dvd2svcd with dvd-rebuilder, sorry. >.>
Trockie
19th November 2005, 05:45
I have Gordian knot 0.35.0, DGIndex 1.46b1, all paths set correctly. I loaded the video file only in AvyScript, d2v file and avs file created from GKnot, and get the same error:
MPEG2Source: couldn't open file (C:\Program Files\AviScript 2.9 (Fullversion)~TMPfull.avs, line 25)
This is the script avs file from GKnot:
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("C:\Documents and Settings\Jose\Desktop\dgmpgdec146b1\DGDecode.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
# SOURCE
mpeg2source("X:\Gordian Knot\neverland.d2v")
# TRIM
#trim(startframe,endframe)
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
# CROPPING
crop(8,60,704,364)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(640,272)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(10,15)
# BORDERS
#AddBorders(left,top,right,bottom)
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)
The ~TMPfull avs file created from AviScript when load avs file from GKnot into AviScript is the followed:
#==============================================================
# AVISynth-Script to generate Stream: [DVD (PAL 720x576)]
# created from [AviScript] at: 19.11.2005, 04:15
#==============================================================
# 01___________________________________________________________
# Variables generated by AviScript
video = "X:\Gordian Knot\neverland.avs"
audio = ""
masktop = 0
maskbuttom = 0
maskleft = 0
maskright = 0
#End01
# 02___________________________________________________________
# Load AviSynth PlugIns
# DLL - for mpeg2source, SmartDeInterlace and TemporalSmoother
LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
#End02
# 03___________________________________________________________
# Load Video & Audio
# read MPEG videostream
mpeg2source(video)
#End03
# 04___________________________________________________________
# Change Audiodelay
# set audiostream-delay in sec
DelayAudio(0)
#End04
# 07___________________________________________________________
# Resize [DVD (PAL 720x576)]
bicubicresize(720,576)
#End07
#EndAll
So, if the error is the one you guys said before-->LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
how can I make AvyScript to load DGDecode.dll instead mpeg2dec.dll?
Please, some help will be appreciated before kill myself. Could someone point me to the right direction, please?
Thanks.
Guest
19th November 2005, 06:13
I suggest that you contact the authors of AviScript for technical support.
Trockie
19th November 2005, 06:55
I did contact the authors of AviScript for technical support but they didn't reply. That's why I've posted my problem in this forum.
So saying that you mean you can't help me out to find a solution for this problem? not a bit? what about to make AvyScript to load DGDecode.dll instead mpeg2dec.dll if that is the main problem?
Thanks.
Guest
19th November 2005, 16:01
You're working with a tool that none of us use and so cannot help with. And you appear insufficiently informed to work at the raw level of Avisynth, where we can help you. So it appears that we are at an impasse.
Trockie
19th November 2005, 16:45
you appear insufficiently informed to work at the raw level of Avisynth --> Of course I'm insufficiently informed to work at the raw level of Avisynth because I'm starting to use the program. That's why I'm asking for your help. If you say what you said in your post that mean that there is a possibility to do something about it if I was a genius as you all, right?, Well that will be my aim.
I've posted my problem here because Aviscript is telling me that the problem is in the Avisynth script. Let me refresh your memory, please:
when clicking on preview: Warning-error in Avisynth file!
when clicking on generate video: Warning-ERROR in Avisynth file! 240 frames and 24 fps is tipical for an Error message of AviSYNTH! Bitcalculator, Splitting and ECL-Files will be disabled.
Now, I wouldn't like to seem an a**h*** by writing this new post, but I need to know if with all this information you guys can't help. If not I will forget this thread and try to look for help somewhere else, cause I won't give up.
The version of AviScript I'm using is from 1-08-2004 so might be that the project has been abandoned and that's why the author won't reply to my e-mails, so if you know him or how to contact him, please provide that info.
Once more thanks a lot for your help guys.
communist
19th November 2005, 17:43
Download DGIndex 1.44. Put the DGDecode.dll in your AviSynth plugin folder and delete any older DGDecode.dll / mpeg2dec.dll you have on your hard disk. Then create the d2v file with DGIndex 1.44 (if you're not sure how to do this - check the documentation). Write a simple AviSynth script like this:
LoadPlugin("Drive:\Path\DGDecode.dll") #might not be needed but better to be sure
MPEG2Source("Drive:\Path\YourProject.d2v")
If that works then AviScript is screwing up somewhere in the process of creating the avs file.
Oh you said all paths are correct etc. did you really assign X:\ for the drive you're trying to read from?
mg262
19th November 2005, 17:52
Of course I'm insufficiently informed to work at the raw level of Avisynth because I'm starting to use the program.This doesn't follow. The way to start using AVISynth is to read any AVISynth introduction (e.g. such as exist on AVISynth.org), not to use some obscure third-party program that isn't even supported by its author any more. (And AVISynth is not meant as a layer to be used by other programs.) There is already a good AVISynth editor if that will make life easier for you -- AVSEdit.
Using AVISynth isn't that hard... it just involves creating small text files -- often four or five lines is enough to do quite a lot of work. (The ones you posted are disproportionately long because they have been automatically created by a program; don't let them intimidate you.) If you start and get confused, people here are generally very willing to help you.
raquete
19th November 2005, 18:09
Oh you said all paths are correct etc. did you really assign X:\ for the drive you're trying to read from?
good question.i was re reading his first post and will ask the same. :goodpost:
Guest
20th November 2005, 05:00
The script generated by your 3rd-party tool is malformed. The parameter "video" is assigned a string specifying an AVS file. Then "video" is passed to mpeg2source(). But mpeg2source() wants a D2V file; hence the error message you receive.
We're happy to help you with Avisynth but we can't help with a tool that we've never seen or used and which generates garbage.
Note: The following is from your second posted AviScript script, which differs from the first.
# 01___________________________________________________________
# Variables generated by AviScript
video = "X:\Gordian Knot\neverland.avs"
audio = ""
masktop = 0
maskbuttom = 0
maskleft = 0
maskright = 0
#End01
# 02___________________________________________________________
# Load AviSynth PlugIns
# DLL - for mpeg2source, SmartDeInterlace and TemporalSmoother
LoadPlugIn("C:\Program Files\AviScript 2.9 (Fullversion)\PlugIns\mpeg2dec.dll")
#End02
# 03___________________________________________________________
# Load Video & Audio
# read MPEG videostream
mpeg2source(video)
#End03
Trockie
20th November 2005, 16:12
Thanks guys for your comments and help, really appreciate it. Sorry for the delay.
did you really assign X:\ for the drive you're trying to read from? --> Yes I did, drive master is C:\ and slave is X:\, I thought most people do that to be a bit original, well I do.:)
@ mg262 -->Of course I did read an AVISynth introduction on AVISynth.org, made my first script, add some lines and all that stuff but it wasn't enough for what I'm looking for, which is to convert NTSC DVD files in my hd to PAL DVD files. I was adviced by Sanae Kojima <support@cinemacraft.com> to use AviSynth script for the conversion, as I want to use my CCE Basic to do that. bobwillis said to me in another thread that CCE Basic does not support MPEG imput files, so I contacted Sanae Kojima <support@cinemacraft.com> and he gave me that advice for that conversion.
I couldn't find a proper script for that as most people use PAL to NTCS and very hardly NTCS to PAL, as most dvd players in Europe support that conversion...my dvd player is my PS2 and I need that conversion:). It was then when I came face to face with AvyScript which was making my life easier by description. I never thought it was some obscure third-party program because I saw its tutorial with CCE and some more and everything was clear for me, why should I think it was obscure? Anyway, It isn't as you can read below. Thanks for your comments.:)
@ communist --> Thanks a lot for your help, it really did. It didn't work at the beginning. I opened the d2v file in Aviscript and click on preview but another error poped up saying Aviscript was unable to find mpeg2dec.dll, so I renamed the DGDecode.dll, you said to install, to mpeg2dec.dll and it worked. So thanks once again:)
Now, if it's possible, I'd like to know what kind of script I must create for my conversion, where should the lines be insert or just create a new one and how?
Sorry for so many questions, and thanks a lot once again to everybody.:)
mg262
20th November 2005, 16:18
Right... we need to know more about the source you're trying to convert -- particularly whether it is interlaced, telecined, progressive or some mix of these, animation or live action -- and whether you are aiming for a quick, easy conversion or a slower, more complex but higher quality conversion.
Trockie
20th November 2005, 18:51
The source I think is progressive and interlaced mixed because in DGIndex I can see both words flicking so fast That I can almost see both at the same time, I have treated it as a progressive to create d2v file though.
I'm aiming for a slower, more complex but higher quality conversion. The higher the quality the better for me.
Thanks.
mg262
20th November 2005, 19:00
I hardly ever touch NTSC, but I believe DGIndex reports how the video is encoded rather than what it's actual nature is. You need to single step through the video to tell whether it is progressive or interlaced or telecined. (By the way, what is the source?) There are guides on the main site that will explain telecine if you need them.
Trockie
20th November 2005, 19:09
The source are files in the hd, ifo, bup and vob NTSC files.
DGIndex's frame type is saying both as I said, but the video is interlaced when played.
I believe I don't do telecined because I don't even know what that is.:)
Thanks.
mg262
20th November 2005, 19:32
The source are files in the hd, ifo, bup and vob files.No, I mean e.g. "The Lord of the Rings"! You don't need to give the exact title, but it's useful to know whether it's a TV show or a movie or something animated.
http://en.wikipedia.org/wiki/Telecine
also go to the main site, click on "the basics" and then on "telecine explained". (You do need to know what this is if you're going to work with NTSC material.)
Trockie
20th November 2005, 19:36
It's a dvd backup movie. At the moment I just do movies. Animated movies isn't the case this time.
Cheers.
mg262
20th November 2005, 19:55
I was recently told that movies are very rarely interlaced (I own exactly 1 non-animated movie DVD, so this isn't my territory!) -- so you probably have telecined progressive content. You need to verify this first...
Trockie
20th November 2005, 22:14
You just made me confused. I thought the movie was NTSC 29.970 fps FILM interlaced as I see artifacts when played in DGIndex. Now you said it must be telecined progressive and the link you gave me I can't find out how to verify wether my movie is or not is telecined...I'm going to try to find it out...'ll come back on thursday that I'm off.
Cheers.
mg262
20th November 2005, 22:21
As I said, I hardly ever touch NTSC -- perhaps someone can give you a better answer than this. But for what it's worth:
telecine is a process that (as I understand it) is applied to a progressive or interlaced 23.976 FPS clip to turn it into a 29.97 FPS clip so that it can be played back on NTSC TVs. If it has been applied to a progressive clip, the output will look appear to be a mixture of progressive and interlaced frames, with the pattern repeating every five frames. The guides on the main site should contain pictures that will make this clearer.
You need to examine your clip and see if it does indeed fit the description I gave. If it does, then (IMO) the first thing you will need to do is to apply an inverse telecine filter such as TIVTC to restore it to 23.976 FPS; after that you can speed it up to 25 FPS and also increase the tempo of the audio to match this, or you can apply some other process to preserve the tempo. But I'm jumping ahead...
foxyshadis
21st November 2005, 01:12
If it reports FILM (aka Telecine) and frame type flips between interlaced and progressive, that's pretty much textbook case of telecined video. Just use TIVTC or Decomb on it, and if you're lucky you won't even have to play with the parameters.
Trockie
21st November 2005, 01:27
Thanks. Could you be more explicit and tell how should be the avs file?
And what to do with it once is created?
Thanks.
foxyshadis
21st November 2005, 04:59
I could, but frankly, both of the packages I pointed to (use search or check www.avisynth.org/warpenterprises ) come with very detailed documentation, including quick start tutorials to make simple conversions.
trolltuning
21st November 2005, 17:01
OK I do use AviScript. It is great for precise cutting of avis and d2v files and the price is low.
Are you unable to edit manually? There are two ways to edit 1) by changing the global settings- this works well for when you need to change the dll to open your d2v files (so that the versions match). You can also edit manually and save. I think by clicking on 'generate script', but I can't tell you for sure until I'm back on my home computer Tues eve EDT.
[edit]Oops I see you already got the d2v file to open.(I missed the 2nd page of this thread.)
@neuron2 I have never got garbage output from AviScript
Guest
21st November 2005, 17:49
@neuron2 I have never got garbage output from AviScript Garbage in, garbage out, I suppose. His second posted AviScript-generated script is clearly garbage, for the reason I pointed out.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.