VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    May 2006
    Location
    United States
    Search Comp PM
    When I try and open my .avs file it tells me, "Video must be YUV". Is there any code that will convert this for me? I'm assuming that it is in RGB right now.
    Quote Quote  
  2. Hi,

    use the function ConverttoYv12 or ConvertToYUY2 in your avisynth script
    Quote Quote  
  3. Member
    Join Date
    May 2006
    Location
    United States
    Search Comp PM
    How would that code be written, and where would it fall if this is the code that I"m using?


    Posted: Jul 15, 2009 16:07

    --------------------------------------------------------------------------------

    I'm wondering if there is a way that I can run a bunch of files thru Virtual Dub using avisynth?

    Here is the code that I use:

    Load_Stdcall_Plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
    AVISource("C:\Documents and Settings\bsuska\Desktop\global relief for homepage.avi")
    Yadif(mode=0,order=0) #bottom field first
    Crop(8,12,-8,-12)
    LanczosResize(224,168)

    Also, I can't seem to find one stop shop for writing avisynth code? Any ideas?
    Quote Quote  
  4. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by bsuska
    How would that code be written, and where would it fall if this is the code that I"m using?
    Anywhere after the AviSource line.
    eg:

    Code:
    AviSource("whatever")
    ConvertToYV12()

    See http://avisynth.org/mediawiki/Convert

    Originally Posted by bsuska
    I'm wondering if there is a way that I can run a bunch of files thru Virtual Dub using avisynth?
    I don't understand what you mean by "run through".
    What do you want to do with them?


    Originally Posted by bsuska
    Also, I can't seem to find one stop shop for writing avisynth code? Any ideas?
    http://avisynth.org/mediawiki/Main_Page

    Get AvsP as an editor.

    Doom 9 has a lot of the people who create Avisynth and plugins.
    Be very careful what you post there though, some are very impatient with newbies who haven't done any research.
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Since it is Yadif that requires YUV input, you need to put
    ConvertToYV12(interlaced=true)
    between the AviSource line and the Yadif.

    Not sure what you mean by a one-stop shop, but I find the AvsP editor indispensible for writing Avisynth scripts and instantly viewing the results.
    Quote Quote  
  6. Member
    Join Date
    May 2006
    Location
    United States
    Search Comp PM
    Thank you...
    Quote Quote  



Similar Threads

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