VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Hy !

    I want to resize an AVI from 1080 to 720 with VirtualDubMod with fast recompress using AviSynth.
    VirtualDubMod open my AVI without problem but if open script.avs with this content:

    avisource("path\sample.avi")

    I get error code 2.

    what's wrong , please help.
    Quote Quote  
  2. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    You get an error 2 if the file name is wrong.
    The error information should list the exact path and file name - is the file name correct.
    Quote Quote  
  3. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    thank's for help, but the file name is good, VDB says
    Error decompressing video frame 0: The source image format is not acceptable.(error code -2 )
    if I open without Avisynth script I don't have any error message ,I can resize in 2pass but I don't want Full processing mode only Fast recompress.

    what's wrong
    Quote Quote  
  4. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    SFAIK, Avisynth doesn't like non-ASCII characters in filenames and folder names,
    perhaps that's the problem
    Quote Quote  
  5. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by El Heggunte View Post
    SFAIK, Avisynth doesn't like non-ASCII characters in filenames and folder names,
    perhaps that's the problem
    You're right but filename has no connection with decompressing video frame 0

    Error decompressing video frame 0: The source image format is not acceptable.(error code -2 )
    Quote Quote  
  6. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by atamo View Post
    Originally Posted by El Heggunte View Post
    SFAIK, Avisynth doesn't like non-ASCII characters in filenames and folder names,
    perhaps that's the problem
    You're right but filename has no connection with decompressing video frame 0

    Error decompressing video frame 0: The source image format is not acceptable.(error code -2 )
    Okay, then please post a Mediainfo report about the problematic AVI file,
    and also, what version of Avisynth you're using.

    P.S.:a list of the VfW codecs installed on your machine might be helpful too.
    Last edited by El Heggunte; 4th Sep 2013 at 14:25. Reason: add P.S.
    Quote Quote  
  7. What kind of an AVI is it? And do you have the codec for it installed already, for both video and audio?

    I want to resize an AVI from 1080 to 720 with VirtualDubMod...
    You should resize in the script rather than in VDubMod.
    Quote Quote  
  8. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    El Heggunte, the codec list isn't needed. The O.P. probably doesn't know that info anyway.

    @atamo, download the free MediaInfo utility and use it to open your video. You'll see a report about the file. You can save that report as a text file and post it here, or copy the info directly off the report window and post it here. We can't advise without info about your "AVI". AVI is a container, not a format or codec. AVI can contain many video codecs and formats.

    Don't resize your video with VirtualDub's resizer. Avisynth can do a better job. And if your video is interlaced or telecined, don't resize. Period.

    VirtualDubMod ? ? ?
    Last edited by sanlyn; 21st Mar 2014 at 14:25.
    Quote Quote  
  9. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by sanlyn View Post
    El Heggunte, the codec list isn't needed.
    It depends. There are ancient/outdated VfW codecs which promise more than what they can deliver, and thus may create problems for AVISource()

    The O.P. probably doesn't know that info anyway.
    Even though VirtualDub(Mod) has everything ready for the user

    (menu "Video", item "Compression")
    Quote Quote  
  10. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by El Heggunte View Post

    Okay, then please post a Mediainfo report about the problematic AVI file,
    and also, what version of Avisynth you're using.
    Hy !

    I use AviSynth 2.58 build dec 22 2008

    Quote Quote  
  11. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by sanlyn View Post
    Don't resize your video with VirtualDub's resizer. Avisynth can do a better job. And if your video is interlaced or telecined, don't resize. Period.

    VirtualDubMod ? ? ?
    Yes ,I want to use Avisynth in VirtualDubMod, if I Use only VirtualDub resizer in 2pass all work fine but I don't want full processing mode I want fast recompress with Avisynth

    Can I do that without VirtualDub ,using only Avisynth?
    Last edited by atamo; 5th Sep 2013 at 11:42.
    Quote Quote  
  12. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    If you want fast recompress in VirtualDubMod, you can't use VirtualDubMod to resize. All VirtualDubMod will do is recompress.

    You should be resizing in Avisynth anyway, not in VirtualDub or VDubMod.
    Last edited by sanlyn; 21st Mar 2014 at 14:25.
    Quote Quote  
  13. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by sanlyn View Post
    You should be resizing in Avisynth anyway, not in VirtualDub or VDubMod.
    I can't run .avs script individual ,for that reason I need VirtualDub or VDubMod.

    There is another possibility?
    Quote Quote  
  14. Originally Posted by atamo View Post
    Can I do that without VirtualDub ,using only Avisynth?
    Yes. As an example, here's a sample resize line:

    LanczosResize(640,480)

    http://avisynth.nl/index.php/Resize

    And you should probably upgrade your AviSynth to a 2.6.x version.

    I want to resize an AVI from 1080 to 720 with VirtualDubMod with fast recompress using AviSynth...
    Based on that MediaInfo pic, it's already 720p, but with the black bars removed. But maybe it's not the same video as mentioned in your first post? Or maybe that's not what you meant?
    Originally Posted by atamo View Post
    Originally Posted by sanlyn View Post
    You should be resizing in Avisynth anyway, not in VirtualDub or VDubMod.
    I can't run .avs script individual ,for that reason I need VirtualDub or VDubMod.
    That makes no sense, not to me anyway. Do the resizing in the script and then encode using VDub(Mod).
    Quote Quote  
  15. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by manono View Post
    you should probably upgrade your AviSynth to a 2.6.x version.
    In sourceforge.net says: Looking for the latest version? Download Avisynth 2.58.exe
    2.6 is only alpha release....



    Originally Posted by manono View Post
    Based on that MediaInfo pic, it's already 720p, but with the black bars removed. But maybe it's not the same video as mentioned in your first post? Or maybe that's not what you meant?
    it's same video>> 1280*544 I want reduce to >> 720*306


    Originally Posted by manono View Post
    That makes no sense, not to me anyway. Do the resizing in the script and then encode using VDub(Mod).
    I make a Avisynth script with avisource ("....") and LanczosResize(720,308) but for run thist script I need an exe file, for that reason I use VirtualDub or VDubMod.
    Quote Quote  
  16. Originally Posted by atamo View Post
    2.6 is only alpha release....
    It's safe to use without problems.
    Quote Quote  
  17. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    @ atamo:

    first, yes it's safe to upgrade your Avisynth setup, and too often, some Web pages and FAQs must be read with a truckload of salt

    secondly, I suppose your problem can be fixed by adjusting the "pixel_type" argument in the AVISource() call
    Of course, you'll have to try it and see whether it works or doesn't work...

    Originally Posted by IanB
    AviSource in 2.6 tries in order YV24, YV16, YV12, Y41B, YUY2, RGB32, RGB24, Y800, 'Y8 ' and GREY for the codec decompression output format.

    AviSource in 2.5.8 only tries in order YV12, YUY2, RGB32 and RGB24
    Last edited by El Heggunte; 5th Sep 2013 at 16:36. Reason: fix quote
    Quote Quote  
  18. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by sanlyn View Post

    You should be resizing in Avisynth anyway, not in VirtualDub or VDubMod.
    Do you know any avi/avs parser that simply "executes" the Avisinth script >> in this case should not use VirtualDub or VDubMod
    Quote Quote  
  19. Originally Posted by atamo View Post
    Do you know any avi/avs parser that simply "executes" the Avisinth script >> in this case should not use VirtualDub or VDubMod
    AviSynth is a frameserver. It serves up decompressed frames into whatever encoder you choose to use that accepts AviSynth scripts as input. VDub is just one of many. But no, it won't encode 'on its own'.
    Quote Quote  
  20. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    The MediaInfo data you posted in #6 earlier (and you can copy that text from the from the mediaInfo window, or you could have saved the report as a text file) says that the video you're discussing was originally opened in VirtualDubMod and its output was encoded (recompressed via "fast recompress") with XVid as MPEG4 video,and the file was saved with an ".avi" filename extension. The proper file extension for that type of file is "mp4", not "avi". According to Avisynth documentation, three ways are listed for opening the "AVI" in Avisynth:

    (a) Using AviSource, you have to include the CC codec designation, such as:
    AviSource("d:\filename.avi", fourCC="XVID")

    (b)You can try DirectShowSource(list the path and file name), but reportedly it isn't as reliable as nameing the specific codec.

    (c)Using your original source file, the ffmpegSource function (also called ffmpegSource2) is more specific to formats such as MPEG4. The function is in the ffms2 plugin:
    http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms-2.17-cplugin.7z . The reference page for ffms2 is at: http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html .

    Download the ffms2 "7z" compressed file into its own folder on your hard file. Do not download it into our Avisynth plugins folder. You will need the 7zip decompressor installed on your system to open the file. If you don't have 7zip, I've attached a .zip version of the download, below.

    The ffms2 plugin contains html help (which is not that precise in its documentation, IMO). There are 4 other files in the plugin: ffavisynth.avsi, ffavisynth.dll, FFMS2.avsi, ffms2.dll, and ffmsindex.exe. Copy all 4 of those files into your Avisynth plugins folder.

    Here is an example of using ffms2 to open an MP4 file for video and audio:

    Code:
    LoadCplugin("drive:\path\to\Avisynth plugins\ffms2.dll")
    vid = ffvideosource("path\to\video\filename.mp4")
    aud = ffaudiosource("path\to\video\filename.mp4")
    # --- combine audio and video into a new clip called "av" ------
    av=audiodub(vid,aud)
    
    # ---- work with the new "av" video+audio clip ----
    av
    Spline36Resize(1280,720)  #<- specify the height and width that you want)
    return last
    If your source video is interlaced or telecined it will look like crap. But the MediaInfo data you posted says the file is progressive, so it's not a problem in this case. Be sure to change the "path" text in the avs script to specify the correct location of the video and plugins in your system.

    You can do the same thing by opening the source file in VirtualDub (don't use VirtualDubMod. It's obsolete). You can resize with VirtualDub, but Avisynth is superior. The resulting file will have to be re-encoded with whatever encoder you choose.
    Image Attached Files
    Last edited by sanlyn; 21st Mar 2014 at 14:25.
    Quote Quote  
  21. Member
    Join Date
    Mar 2009
    Location
    europe
    Search Comp PM
    Originally Posted by sanlyn View Post
    (a) Using AviSource, you have to include the CC codec designation, such as:

    AviSource("d:\filename.avi", fourCC="XVID")
    Oh Yeah, I included the CC codec designation and all work nice ,
    Thank you very much !



    Originally Posted by sanlyn View Post
    The MediaInfo data you posted in #6 earlier says that the video you're discussing was originally opened in VirtualDubMod and its output was encoded (recompressed via "fast recompress") with XVid as MPEG4 video,and the file was saved with an ".avi" filename extension.
    Please tell me what line of MediaInfo show : recompressed via "fast recompress"

    Quote Quote  
  22. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    MediaInfo doesn't show "fast recompressed". That's my guess as to how you or someone else managed to get the source into "avi" instead of mp4. VirtualDub automatically saves a file with ".avi" on the end of the file name. But as I say, that's an assumption I made because you've been using it in your questions.
    Last edited by sanlyn; 21st Mar 2014 at 14:26.
    Quote Quote  



Similar Threads

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