VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    I'm trying to inverse telecine an anime video clip using virtual dub mod/Avi synth. My Avs script says:

    loadplugin("C:\Users\user1\Desktop\stuff\AviSynth 2.5\plugins\TIVTC.dll")
    AVISource("Berserk trailer 2.avi")
    TFM(order=0) #0=BFF, 1=TFF
    TDecimate()

    But whenever I open the .Avs file in Virtual Dub Mod, an error occurs that says "Avisynth open failure, Avisource autodetect: Berserk Trailer 2 could not be read." "Error code: 2." Can anyone give any advice?
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    As a general principle, simplify the script to find errors.
    Comment out everything except the Avisource and see if that works.

    Could be Avisynth can't find the file.
    Usually due to a typo in the filename.

    Just try opening the AVI directly in VirtualDub and see if it plays, scan for errors.
    If any, try DivFixPP.

    Minor thing: you don't need the Loadplugin if the dll is in the plugins folder.
    Quote Quote  
  3. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Originally Posted by AlanHK
    As a general principle, simplify the script to find errors.
    Comment out everything except the Avisource and see if that works.

    Could be Avisynth can't find the file.
    Usually due to a typo in the filename.
    Tried that. It gives the same error. I know it isn't a typo either.

    Originally Posted by AlanHK
    Just try opening the AVI directly in VirtualDub and see if it plays, scan for errors.
    If any, try DivFixPP.

    Minor thing: you don't need the Loadplugin if the dll is in the plugins folder.
    I opened the AVI file, scanned it for errors and then when i clicked the play button, VirtualDubMod crashed, every single time I tried this.
    Quote Quote  
  4. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Open the AVI file in VirtualDub and save it as a new file using a lossless codec such as Lagarith or Huffyuv. If you have the disk space, that is.
    "Quality is cool, but don't forget... Content is King!"
    Quote Quote  
  5. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    Open the AVI file in VirtualDub and save it as a new file using a lossless codec such as Lagarith or Huffyuv. If you have the disk space, that is.
    I already have one copy compressed with huffyuv.

    I first tried to ivtc the trailer using the "reconstruct from fields- adaptive" setting in VDM. I looked in the frame rate info of the finished AVI file and it said the current fps was 23.97, which would lead one to believe that the footage had been successfully IVTC'd to progressive. Yet the end result still has artifacts like this:

    Quote Quote  
  6. Originally Posted by Eva-Unit01
    I first tried to ivtc the trailer using the "reconstruct from fields- adaptive" setting in VDM.
    Why would you do that if you're already working in AviSynth?

    Do you have a small sample you can show us?

    As for not being able to open it using your script, sometimes similar things happen to me if the AVI is being used by something else. Do a CTRL-Alt-Delete and check if it might be tied up by something, a player maybe.
    Quote Quote  
  7. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    Instead of AVISource, try DirectShowSource.

    AVISource may not be detecting the codec of the video file.
    Quote Quote  
  8. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Eva-Unit01
    I opened the AVI file, scanned it for errors and then when i clicked the play button, VirtualDubMod crashed, every single time I tried this.
    Open in AviDemux, save to a new file with audio and video set to "copy".

    That will create a new file without reencoding, but should clear up any errors

    There may be sync problems though.
    Quote Quote  
  9. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    I re saved the footage to a huffyuv AVI in 29.97 fps. I opened the following script in virtualdubmod:

    loadplugin("C:\Users\User1\Desktop\stuff\decomb523 \Decomb.dll")
    AVISource("C:\Users\User1\Desktop\stuff\Anime vob\Berserk Trailer")
    Telecide()
    Decimate(5)

    and it gave the same "Error code 2" saying the problem was in line 2, the Avisource line.
    Quote Quote  
  10. If that's the exact script, then it should be Beserk Trailer.avi
    Quote Quote  
  11. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Got it to IVTC finally, but there are still combing artifacts, and blurring for rounded edges. Which settings should I use for the tfm() of these?

    mode:
    * 0 = 2-way match
    * 1 = 2-way match + 3rd match on combed
    * 2 = 2-way match + 3rd match (same order) on combed
    * 3 = 2-way match + 3rd match on combed + 4th/5th matches if still combed
    * 4 = 3-way match
    * 5 = 3-way match + 4th/5th matches on combed

    PP

    * 0 = nothing (don't even look for combed frames)
    * 1 = find/hint combed frames but don't deinterlace
    * 2 = dumb blend deinterlacing
    * 3 = dumb cubic interpolation deinterlacing
    * 4 = dumb modified-ela deinterlacing
    * 5 = motion-adaptive blend deinterlacing
    * 6 = motion-adaptive cubic interpolation deinterlacing
    * 7 = motion-adaptive modified-ela deinterlacing

    I have IVTC the video many times but combing artiacts such as this are still present in the ivtc file. This is the script

    loadplugin("C:\Users\!\Desktop\!\TIVTC\TIVTC.dll")
    AVISource("C:\Users\!\Desktop\!\Anime vob\Berserk_Trailer_v2.avi")
    TFM(mode=5,PP=5)
    TDecimate(mode=1,rate=24)


    Quote Quote  
  12. Post a 10 second sample of the source, one that shows the problems when IVTC'd (but not already reencoded). You can't really tell from pics, but if this thing is field blended no IVTC can do it properly.
    Quote Quote  
  13. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    What do you mean not reencoded? The file was already an Xvid AVI when I IVTC'd it.
    Quote Quote  
  14. Those aren't regular combing artifacts. They are improper handling of interlaced chroma channels. It probably happened when you converted the original file to Huffyuv. VirtualDub does not handle interlaced YV12 properly.
    Quote Quote  
  15. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Those aren't regular combing artifacts. They are improper handling of interlaced chroma channels.
    What can I do to fix that? I know that tfm() has a chroma setting. Also, the file i posted that picture from, was converted to to Xvid straight from .vob.
    Quote Quote  
  16. Note, I added more to my last post.

    You need to open your original file in AviSynth and ConvertToYUY2(interlaced=true) before giving the video to VirtualDub. Then hope the problem isn't in your original file.
    Quote Quote  
  17. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Note, I added more to my last post.

    You need to open your original file in AviSynth and ConvertToYUY2(interlaced=true) before giving the video to VirtualDub. Then hope the problem isn't in your original file.
    Where would the (interlaced=true) go, is it a script command? Then would i just ivtc the yuy2?
    Quote Quote  
  18. Originally Posted by Eva-Unit01
    What do you mean not reencoded? The file was already an Xvid AVI when I IVTC'd it.
    Yes, I mean the AVI before IVTC. And as jagabo says, just hope it's not already screwed up beyond fixing.
    Quote Quote  
  19. Originally Posted by Eva-Unit01
    Originally Posted by jagabo
    You need to open your original file in AviSynth and ConvertToYUY2(interlaced=true)
    Where would the (interlaced=true) go, is it a script command? Then would i just ivtc the yuy2?
    It goes exactly where I put it.

    Code:
    WhateverSource("Filename.ext")
    ConvertToYUY2(interlaced=true)
    Although, if you're going to do this you might as well skip the Huffyuv intermediate and just do your IVTC there in AviSynth. In which case you probably won't need the ConvertToYUY2.
    Quote Quote  
  20. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Although, if you're going to do this you might as well skip the Huffyuv intermediate and just do your IVTC there in AviSynth. In which case you probably won't need the ConvertToYUY2.
    So, add the IVTC commands to the convertoyuy2 script?

    Edit: I IVTC'd the YUY2 footage and all the combing is gone. The only thing is, the video and audio skip at random times during playback in virtual dub. Hm, i did use rate=24 in the TDecimate().
    Quote Quote  
  21. VirtualDub is not optimized as a video player. In addition, filtering with AviSynth CPU usage may be too high to get smooth realtime playback. Just convert your video and test the resulting file.
    Quote Quote  
  22. Member
    Join Date
    Dec 2009
    Location
    United States
    Search Comp PM
    The IVTC worked but there is still blurring like:



    Quote Quote  



Similar Threads

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