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.
+ Reply to Thread
Results 1 to 22 of 22
-
-
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. -
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 )
what's wrong -
-
Last edited by El Heggunte; 4th Sep 2013 at 14:25. Reason: add P.S.
-
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... -
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.
-
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.
(menu "Video", item "Compression") -
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.
-
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.
-
I can't run .avs script individual ,for that reason I need VirtualDub or VDubMod.
There is another possibility? -
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...
That makes no sense, not to me anyway. Do the resizing in the script and then encode using VDub(Mod). -
In sourceforge.net says: Looking for the latest version? Download Avisynth 2.58.exe
2.6 is only alpha release....
it's same video>> 1280*544 I want reduce to >> 720*306
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. -
@ 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 IanBLast edited by El Heggunte; 5th Sep 2013 at 16:36. Reason: fix quote
-
Do you know any avi/avs parser that simply "executes" the Avisinth script >> in this case should not use VirtualDub or VDubMod
-
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
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.Last edited by sanlyn; 21st Mar 2014 at 14:25.
-
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.
Similar Threads
-
Virtualdubmod Cannot Open My Video Files Anymore.
By yitki in forum Video ConversionReplies: 0Last Post: 28th Mar 2013, 14:51 -
How to open a x264 encoded mp4 in VirtualDubMod?
By Sedoc94 in forum Newbie / General discussionsReplies: 27Last Post: 1st Jun 2010, 17:36 -
avisynth and virtualDubMod
By pranab31 in forum Newbie / General discussionsReplies: 4Last Post: 23rd Mar 2009, 09:45 -
AutoGK prob - VirtualDubMod crashes on open
By Djinn252 in forum Video ConversionReplies: 8Last Post: 7th Jan 2009, 10:23 -
BD to AviSynth (Or VirtualDub/VirtualDubMod) ???
By RogerTango in forum Blu-ray RippingReplies: 4Last Post: 3rd Jan 2009, 08:31