VideoHelp Forum




+ Reply to Thread
Results 1 to 30 of 30
  1. Hi guys,
    This problem has driven me nuts for the past few days! I have googled and searched everywhere but just found similar queries but no solutions. I generated an Avisynth script using FitCD on my laptop. When i open the script in HCEnc i get this error: error loading Avisynth script,Evaluate:System Exception-Access Violation(C:\Movies\1.avi.avs, line 3)

    I have Avisynth 2.5.7 installed. I can convert other movies without this problem. Here is the AVisynth script:

    # -= AviSynth v2.5.7.0 script by FitCD v1.2.8 =-
    AVISource("C:\Movies\1.avi")
    LanczosResize(704,320,0,0,588,244)
    AddBorders(8,128,8,128)
    #Trim(0,216807).FadeOut(150)
    ConvertToYV12() # For VirtualDub or CCE


    Also...i have AVisynth 2.5.6 installed in my other computer. I created a script from FitCD for the same file and this script works fine on that pc. I tried changing the script on my Laptop to look exactly like the working one but still it doesnt work.
    Quote Quote  
  2. Hi-

    What happens when you open this in HCEnc:

    AVISource("C:\Movies\1.avi",False)
    LanczosResize(704,320)
    AddBorders(8,128,8,128)
    ConvertToYV12()

    And if that doesn't work, what happens when you open that same script in VDub(Mod)? Does it give you a more informative error message, or the exact same one?
    Quote Quote  
  3. I get the same message as before but instead of line 3 at the end i get line 2 when i use your script.

    When i open it in VDubMod (Both yours and mine) i get this- An out of bounds memory access(access violation) occurred in module 'VirtualDubMod"

    I think somethings wrong with the LanczosResize line.
    Quote Quote  
  4. Strange. I haven't ever seen error messages quite like that for a simple LanczosResize. About all I can suggest is to uninstall and then reinstall AviSynth. You can uninstall in Add/Remove Programs. Make sure your AviSynth comes from here:

    http://sourceforge.net/project/showfiles.php?group_id=57023

    Then open the script in VDubMod one line at a time, like so:

    AVISource("C:\Movies\1.avi",False)
    #LanczosResize(704,320)
    #AddBorders(8,128,8,128)
    #ConvertToYV12()

    First this, scroll around to make sure the AVI is OK. Then remove the "#" from the 2nd line and open it and scroll around, and so on. Maybe at some point, if it doesn't work, you'll get a more helpful error message.
    Quote Quote  
  5. Thanks...I will try that.
    Quote Quote  
  6. Nope not working. The exact above script works but if i remove any one '#' the error returns. I tried installing and reinstalling Avisynth. Other videos work. I think the problem lies with the file. But the peculiar part is that this file gets converted to VCD using TMPGEnc without any problems.

    I will try degrading the Avisynth to 2.5.6. Till then pls comment.
    Quote Quote  
  7. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Is this any avi file, or just specific ones ?
    What have you changed on your laptop ? Updated codecs etc.
    Read my blog here.
    Quote Quote  
  8. No, its a specific avi file that gives this problem.Other avi files are encoded successfully. I have changed nothing on my laptop. No updates, nothing.
    Quote Quote  
  9. Only this one doesn't work, eh? And it chokes on the resize, eh? How about this? Change the resizer:

    AVISource("C:\Movies\1.avi",False)
    BicubicRezise(704,320,0,0.6)
    AddBorders(8,128,8,128)
    ConvertToYV12()

    Any change? I'm sorry, but I admit to being stumped.
    Quote Quote  
  10. Another suggestion - open it in gspot to see the properties - it might be something weird.
    Quote Quote  
  11. Yes only a particular file doesnt work. It chokes on the resizer, but if i put '#' in front of the resizer then it chokes on AddBorders and if i put '#' in front of AddBorders then it chokes on ConvertToYV12!!
    Have to try Bicubic though. Will reply shortly.

    @Abond: I have already converted the same file on a friends pc who has CCE. This problem occurs only on my laptop with only one file and only when Avisynth is used! Its weird!
    Quote Quote  
  12. This can point to a codec problem. Then it is better to look at it in gspot.
    Can you open the avi (NOT the avs) in virtualdub?
    Quote Quote  
  13. Yes i can open it in VirtualDub.
    Quote Quote  
  14. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    Also...i have AVisynth 2.5.6 installed in my other computer. I created a script from FitCD for the same file and this script works fine on that pc. I tried changing the script on my Laptop to look exactly like the working one but still it doesn't work.
    did you load both the script and the source avi onto that machine ? or just the script without having the source available ?

    at the risk of some flame, i'm going to suggest an avisynth bug

    have you tried doing the full conversion on 'that' other PC or perhaps uninstalling ver 2.5.7 and installing ver 2.5.6 on the laptop

    I have similar problem with a file that was label avi but is really mkv I solved my problem by using super as the first step and converting to mpeg2 ,

    but I'm going to check which ver of avisynth I'm using and IF its 2.5.7 I'm going to try 2.5.6
    Quote Quote  
  15. Member
    Join Date
    Aug 2004
    Location
    United States
    Search Comp PM
    try directshowsource instead of avisource
    Quote Quote  
  16. @theewizard: Yes I have the source avi on both computers. That is but obvious.

    @Pinstripes23: It does not work. I get a different error this time. Something like Invalid Argument.
    Quote Quote  
  17. Member
    Join Date
    Mar 2006
    Location
    United States
    Search Comp PM
    try this

    # -= AviSynth v2.5.7.0 script by FitCD v1.2.8 =-
    AVISource("C:\Movies\1.avi",False)
    ConvertToYV12()
    LanczosResize(704,320,0,0,588,244)
    AddBorders(8,128,8,128)
    #Trim(0,216807).FadeOut(150)
    Quote Quote  
  18. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    DirectShowSource("pathtofile.avi", Audio='False')
    Read my blog here.
    Quote Quote  
  19. I would convert (or whatever) on the other pc and forget.
    Quote Quote  
  20. Changing to Bicubic doesnt work either.
    The above script gives the same error.
    Gspot looks normal AFAIK.

    I dont know what to do!
    Quote Quote  
  21. @Abond: I would do that long ago but that pc doesnt have a DVD Burner.

    ALso i forgot to mention i had installed K-Lite Mega Codec Pack to play AVIs long before. Could it cause the problem?
    Quote Quote  
  22. Definitely YES. As I said looks like a codec problem.
    BTW did you install it also on the other computer?
    Quote Quote  
  23. No. I dont have it installed in my other pc. Ok i will remove it now. So what to use for DivX and Xvid files?

    @guns1nger: Your script gives an unexpected character error.
    Quote Quote  
  24. XviD should be enough. Once you install it set the decoder to decode also DivX. But you can have both installed - no problem.
    Quote Quote  
  25. Installed XviD. Problem persists.
    Quote Quote  
  26. @guns1nger: Your script gives an unexpected character error.

    Oh, so maybe Pinstripes23 and guns1inger are onto something. The unexpected character is the ' on both sides of the "False". Try this:

    DirectShowSource("C:\Movies\1.avi",Audio=False)
    LanczosResize(704,320)
    AddBorders(8,128,8,128)
    ConvertToYV12()
    Quote Quote  
  27. Oh my God it worked finally!!!

    @manono: Your script worked!

    by just eliminating the " ' " from the word 'false' from gun1inger's script.

    I dont believe the solution was that simple!

    Thanks to all you guys for helping.
    Quote Quote  
  28. But why is it that AVISource works on one computer and not on other computer? What IS AVISource and DirectShowSource by the way? I have no idea!
    Quote Quote  
  29. But why is it that AVISource works on one computer and not on other computer?

    I have no idea. As I said earlier, I was stumped. Perhaps that AVI isn't an AVI, but something else renamed as an AVI.

    You can read about AVISource, DirectShowSource, and ImageSource here:

    http://avisynth.org/AviSource
    http://avisynth.org/DirectShowSource
    http://avisynth.org/ImageSource

    There's also an MPEG2Source when the source is an MPEG, a D2V project file has been created using DGIndex, and the DGDecode.dll has been loaded. Ordinarily, when the source is an AVI, you use AviSource. If it's an MPEG of one sort or another, you use MPEG2Source, and if a picture of any one of several types, you use ImageSource. You can also import scripts using the Import command. For me anyway, DirectShowSource is used for any leftover kinds of video not covered by the others, and is used as a last resort when nothing else works. In fact, I've never had to use it.

    Although I should have thought of it, Pinstripes23 gets the credit here. Good going.
    Quote Quote  
  30. okie thnx!!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!