VideoHelp Forum
+ Reply to Thread
Results 1 to 18 of 18
Thread
  1. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    MPEGSource("f:\duck.mpg")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    VFan(yuy,0,1,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2()
    Trying to use this filter here:
    http://www.avisynth.org/warpenterprises#fanfilter

    Trying to do what it shows at the top of page 3 in the Word DOC that comes in the zip file with the filters. It's just super-barebones and doesn't tell you much AT ALL, in terms of usage for writing the scripts.

    Just really at a loss for what to fix where. Help!?

    I get this:
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  2. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    There is a thread on DOOM9.ORG forum covering this filter (in either AVISYNTH USAGE of AVISYNTH DEVELOPMENT). There is some additional info on usage and parameters. I haven't used the filter though, so I can't add to their knowledge - I've just been passively observing.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  3. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    The thread says nothing about the scripting.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  4. Member DVWannaB's Avatar
    Join Date
    Dec 2001
    Location
    United States
    Search PM
    I dont know smurf., as I'm unfamiliar with the fan filter. I think it better to try your luck at doom9.org/forum then go to the Avisynth usage board.
    Quote Quote  
  5. Sorry to butt in, because I'm no Avisynth guru. Usually the script should go this way:

    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    MPEGSource("f:\duck.mpg")
    ConvertToYUY2()
    VFan(yuy,0,1,"pass",32,gyplus=8,gyminus=8)

    I have no idea what VFAN does, but ConvertToYUY2 should precede it.

    Just tryin' to help..
    Quote Quote  
  6. Member
    Join Date
    Oct 2004
    Location
    Waterloo, ON, Canada
    Search Comp PM
    The first argument to almost any AVISynth call usually refers to a clip reference, which you are not using in this case. I have not tried this myself, but either of these might work...
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    MPEGSource("f:\duck.mpg")
    VFan(0,1,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2()
    Or,

    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    clip = MPEGSource("f:\duck.mpg")
    VFan(clip,0,1,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2(clip)
    Give is a shot. Sorry I can't test now 'cause I'm not at home.

    Dan
    Quote Quote  
  7. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    You need a heading for your YUY parameter. Something like:
    (COLORSPACE="YUY",...) It is a string, so it has to be in quotes. If you can't find out what to call it, look at the source file (if it is available).
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  8. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Change your YUY argument to YUY2. Don't use quotes. I believe this argument is passed from another process.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  9. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Well, "yuy" is not something I wrote. Did you glance at the DOC file in the ZIP file for the filter? That's the only line he wrote, for an example. None of the preceeding code was written.

    VFan(yuy,0,1,"pass",32,gyplus=8,gyminus=8 )

    That's the only thing that was pre-written.
    The rest is what I had to write, guessing mostly.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  10. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Originally Posted by tdan
    The first argument to almost any AVISynth call usually refers to a clip reference, which you are not using in this case. I have not tried this myself, but either of these might work...
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    MPEGSource("f:\duck.mpg")
    VFan(0,1,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2()
    Or,

    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    clip = MPEGSource("f:\duck.mpg")
    VFan(clip,0,1,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2(clip)
    Give is a shot. Sorry I can't test now 'cause I'm not at home.

    Dan
    While this loads the file, the filter is not doing anything.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  11. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Yes, I saw that. I also looked at the source code and found that "yuy" should have been "yuy2" (no mentions of yuy but plenty of yuy2). Maybe the script shown has a typo.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  12. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Alright SLK001, I tried it:

    YUY2
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll") 
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll") 
    MPEGSource("f:\duck.mpg") 
    VFan(yuy2,0,1,"pass",32,gyplus=8,gyminus=8) 
    ConvertToYUY2()


    "YUY2"
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll") 
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll") 
    MPEGSource("f:\duck.mpg") 
    VFan("yuy2",0,1,"pass",32,gyplus=8,gyminus=8) 
    ConvertToYUY2()
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  13. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Apparently, you don't have to specify the colorspace value - I guess that it is passed from AVISynth. Also, this newer version seems to require a clip name. This script works (doesn't crash):


    v1=mpeg2source("d:\Experiment\CHHTEST.D2V")
    VFan(0,1000,"pass",32,gyplus=8,gyminus=8)
    ConvertToYUY2()
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  14. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    I'm not sure what version of AVIsynth you have, but the filter might
    have been designed for a previous version of AVIsynth, and you have
    an older (or newer) version.. could be one reason for the error message, or..

    ..It might be that your source is not YUY2 color space formatted.
    If memory serves me, dvd sources are YV12 color space formatted, and
    the filter is only disigned for YUY2.
    .
    I would think that if the filter is YUY2 based, or expecting to
    work inside YUY2 space, then the ConvertToYUY2() should be
    on the earlier line:

    v1=mpeg2source("d:\Experiment\CHHTEST.D2V")
    ConvertToYUY2()
    VFan( 0,1000,"pass",32,gyplus=8,gyminus=8 )

    .. my syntax may be off, could be..

    v1=mpeg2source("d:\Experiment\CHHTEST.D2V")
    v1.ConvertToYUY2()
    v1.VFan( 0,1000,"pass",32,gyplus=8,gyminus=8 )

    @ LS

    Did you resolve the error issue ??

    -vhelp 3364
    Quote Quote  
  15. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    From the Fanfilter documentation:

    "RGB32, RGB24, YUY2 and YV12 formats are supported. However, RGB formats may need slightly different tolerance values to those of YUY2 and YV12. Incase of RGB all 3 thresholds may be required while for YUY2 and YV12 formats just Y may be enough in many cases( there are cases where V tolerances were required). "

    In that case, don't add the ConverttoYUY2 line.

    Also, place the fanfilter dll in another directory - OTHER than the AviSynth plugin dir. You're running AviSynth 2.55, correct ?

    Why aren't you using DGMpgdec for the .MPG file ?
    Quote Quote  
  16. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    I'm using AVISYNTH 2.55 and I just randomly picked a MPEG reader. I've not resolved it yet, will have to wait until Sunday at this point.
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  17. I looked at the source code and the following should work (the filter requires YV12, YUY2 or RGB):
    Code:
    LoadPlugin("c:\program files\avisynth2\plugins\MPEGDecoder.dll")
    LoadPlugin("c:\program files\avisynth2\plugins\fanfilter.dll")
    MPEGSource("f:\duck.mpg")
    VFan(0,1,"pass",32,gyplus=8,gyminus=8)
    Did you glance at the DOC file in the ZIP file for the filter? That's the only line he wrote, for an example. None of the preceeding code was written.

    VFan(yuy,0,1,"pass",32,gyplus=8,gyminus=8 )
    An error in his doc. I will tell him
    Quote Quote  
  18. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    My bad. I got it to work last night, but I posted the wrong code. Here is something that is working:

    Code:
    v1=mpeg2source("d:\Experiment\CHHTEST.D2V") 
    
    VFan(v1,0,1000,opt="pass",gyplus=8,gyminus=8)
    
    ConvertToYUY2()
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  



Similar Threads

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