VideoHelp.com Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date: May 2006
    Location: United States
    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
    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
    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
    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
    Thank you...
    Quote Quote  




Similar Threads

  1. VirtualDub+AviSynth - Error Code
    By Dr.Who in forum Newbie / General discussions
    Replies: 23
    Last Post: 10th Oct 2010, 04:42
  2. Replies: 1
    Last Post: 10th Jun 2009, 01:15
  3. Replies: 0
    Last Post: 19th Sep 2008, 03:37
  4. creating flv’s using avisynth code
    By lindylex in forum Editing
    Replies: 0
    Last Post: 5th Jul 2008, 13:09
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools