VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    i must be loosing my mind. i thought i used to be able to open .png files using rawsource in avisynth. but none of my .avs templates have any png syntax. so i searched google but have not found anything.

    i have a bunch of .png files, i.e., 0001.png ... 1000.png to open in an avisynth script but i'm drawing a blank. this time, i don't want to feed inside virtualdub -> avisynth script.

    thinking it might be this simple (below) but not working, getting "avisynth open failure: file to small for even one frame" error message.

    Code:
    image = "h:\0001.png"
    LoadPlugin("c:\plugins\rawsource.dll")
    RawSource(image, width=720, height=480, pixel_type="RGBA") 
    RawSource(image, width=720, height=480, pixel_type="RGB") 
    RawSource(image, width=720, height=480, pixel_type="BGA")
    did i miss something ?
    Quote Quote  
  2. ImageSource()
    Quote Quote  
  3. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    ahh. i feel so stupid, going nuts. thank you!!
    Quote Quote  
  4. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    unable to get imagesource() to work. not even worth bothering to go into details. just failed in every combination of attempts.

    however, i had imagesequence.dll in my plugins folder, and the following worked for my needs.

    Code:
    LoadPlugin("c:\plugins\ImageSequence.dll")
    CoronaSequence("h:\0*.png")
    edit: ok, i finally figured out what i did wrong in imagesource() and now it works, thanks.

    Code:
    imagesource("h:\%05d.png", 1,150, 23.976)
    Quote Quote  
  5. Originally Posted by vhelp View Post

    i have a bunch of .png files, i.e., 0001.png ... 1000.png to open in an avisynth script but i'm drawing a blank. this time, i don't want to feed inside virtualdub -> avisynth script.

    ImageSource("%04d.png", 0001, 1000, fps=x)
    Quote Quote  
  6. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    yeah, i had 5 digits. plus, i was using wrong syntax: "0%4d.png" was suppose to be "%05d.png"
    Quote Quote  



Similar Threads

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