I'm having an AVISynth problem. I tried reducing my script file to just one line:
AVISource("f:\capture.avi")
(Of course, I originally had a larger script--this was just to test.)
When I open my avs file in VirtualDub just to see what it looks like, I get this error message: "Avisynth read error: caught an access violation at <hex address>, attempting to write to <another hex address>. This error happend if I attempt to preview the video or scroll through the frames. Interestingly, if I just do "File | File Information" it does show the correct video and audio information for the file being frameserved.
Anyone have any ideas? Thanks!
(P.S. I've done this before on this machine with similar avi files without a problem.)
(P.P.S. Until I solve my problem, I may be able to make do by using vdub as my frameserver, but there is one thing I can't figure out how to do. Vdub has a crop feature with it's filters to get rid of junk at the edges of the frames. This reduces the frame size, and I don't know how to add black borders to restore the 720x480 frame size. Avisynth has AddBorders that does this. I don't want to stretch the cropped video, I just want to add black borders. Is there a way to do this in vdub?)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 9 of 9
Thread
-
-
To add the black border in virtualdub, use the resize filter.
First crop your video, lets say as an example you captured 352x240, and cropped 2 lines of noise. Now the video is 352x238.
Next add the resize filter and set it up as follows:
Set the "New Width" and "New Height" to the cropped size of the video, in this example 352x238.
Enable "Expand Frame and letterbox image"
Set "Frame Width" and "Frame Height" to add back the lines you cropped out earlier, in this example 352x240. -
Try opening the .avs file in WMP. this will tell you where your error is--although with a script like that, it should open without a problem.
AVIsynth has a letterbox command that should accomplish what you're trying to do. if you don't need to resize, you should be able to just use that in the script:
avisource("c:\blah\blah.avi")
Letterbox(top,bottom,clip)
try opening your .avs in WMP, and if you get an error, maybe try adding one line at a time to your script until you get it to work.
I would try a few different tests, and, if possible, burn on CDRW to test.
look at the AVIsynth reference if you have any more questions on syntax:
http://math.berkeley.edu/~benrg/avisynth-reference.htmlwhat are you askin' me for...
I'm an idiot! -
Try it with a different AVI file.
I do 2-4 capture & converts a day using avisynth to frameserve to tmpgenc, and get that message about once a week. The only workaround I've found it to use virtualdub to frameserve the video file that I get that message on. -
Try bringing the file up and press the Delete key once, then see if you can scroll. Or Mark in, click once in the range slider to advance, mark out, Delete. This often works for me.
-
fontomlord,
hmmm, i've seen this "Letterbox(top,bottom,clip) " command before, and
thought I'd give it a try for the heck of it. Doesn't work!
Keeps telling me, "I don't know what TOP is" error.
I think you left something out!
later,
-vhelp -
vhelp, of course you have to replace "top" with a value, namely with the number of pixels (vertical res), that you want to cover with borders. Letterbox(top,bottom,clip)
Here is an example script.
Code:AviSource("e:\dir\file.avi") Letterbox(48,48)
Code:clip1=AviSource("e:\dir\file1.avi") clip2=AviSource("e:\dir\file2.avi") Letterbox(clip1,48,48) #UnalignedSplice(clip1,clip2)
-
truman,
Thanks. actually, I kind of figure it out (after I posted above)
Below is a script I use now, when I'm encoding "segmented" captured AVI files:
-----------------------------------------
x="d:\00-00.avi"
segmentedAVISource(x)
-----------------------------------------
Explanation is in order:
Ok, as for the "00-" part. You see, sometimes I have to just encode one of the clips, and it's much more easier to navigate to the actuall scene and
bla, bla, bla. So, whenever I need encode a small scene in one of the
10 to 15 or less or more segmented AVI files, I place a 01, or a 02, or 03
etc. But, my maine capture via vdub is "00-00.AVI"
I hope that explains it. It works for me every time, but I don't know about
anyone else here.
As for vdub, I just wish Avery would enhance some of it's common,
repititve actions, ie, "frameserving", so we don't have to keep pulling down
those menus here and there. I find I do a whole lot this mouse moving
and clicking when frameseving to tmpg.
I'm still learning AVIsynth's scripting language, he, he...
-vhelp
-----------------------------------
For Standard VCD samples, you can jump over to this FORUM's link
here: VHELP's Samples... -
Had the same problem. I had been running all sorts of different video related programs that day. I had some files running in utorrent, I had tried about five different video converter programs that day, I had run three different video players that day. I was running aegisub on top of it. Also had Firefox running youtube, and heavens knows what else was running .
Avisynth started refusing to open videos with access violation errors.
Started uninstalling and reinstalling avisynth and xvid4psp.... nothing worked.
I finally figured out had that I had my computer going berserk to keep up with me basically. Hit reboot.
Problem solved.
Similar Threads
-
An out-of-bounds memory access (access violation)
By rjc7394 in forum Video ConversionReplies: 0Last Post: 17th Jun 2010, 17:42 -
Virtualdub....An out-of-bounds memory access (access violation) occurred...
By zzyzx2 in forum Video ConversionReplies: 0Last Post: 8th May 2010, 00:40 -
VirtualDubMod Access Violation Crash
By k3yword. in forum EditingReplies: 1Last Post: 29th Jul 2008, 19:19 -
Virtualdub - out-of-bounds memory access (access violation) Lameacm
By kidcash in forum Video ConversionReplies: 1Last Post: 21st Jan 2008, 08:34 -
DVDAuthorGUI - Status Access Violation
By ecc in forum Authoring (DVD)Replies: 13Last Post: 12th Dec 2007, 00:47