Log in

View Full Version : producer.exe - application error


methos
12th November 2003, 09:35
After each encode-process i get a 'memory could not be read' error (see pic). Anyone who knows any countermeasure(s) (apart from not encoding ;) )?

http://tvlegends.net/error.gif

methos
12th November 2003, 17:20
1) the encode-process does finish - it does generate the video. The error however prevents me from doing some batch encoding with RealAnime 1.20

2) the error only pops up after encoding when i'm using a avisynth-file (avs) as input. With 'normal' avi everything is Ok.

slavickas
12th November 2003, 18:07
try encode in vdub in any coder if it popups error smth wrng wth avs scrpt

methos
12th November 2003, 21:24
good tip, however it encodes perfectly without generating any errors using several codecs in vdub-mod.

karl_lillevold
12th November 2003, 22:04
As opposed to VirtualDub, Producer reads Avisynth scripts (and AVI files) via Windows' DirectShow interface. This may expose bugs in both DirectShow and Avisynth that are not otherwise seen. For instance, there is a mem leak problem in DirectShow, where the memory from the 1st pass is not being freed before the 2nd pass in Producer.

In this case, it would have been very interesting to see a stack trace to see which DLL is crashing. Can you make a reproducible case with relatively small files, an Avisynth script, and cmd line parameters to producer?

methos
12th November 2003, 22:25
Originally posted by karl_lillevold
In this case, it would have been very interesting to see a stack trace to see which DLL is crashing. Can you make a reproducible case with relatively small files, an Avisynth script, and cmd line parameters to producer?

don't know exactly what you mean by 'stack trace'. However I discovered the following. First I used the following avs script:

video=avisource("20.avi")
#audio=wavsource("audio.wav")
#video=audiodub(video,audio)
video=bicubicresize(video,336,252,0,0.5)
video=trim(video,0,7458)++trim(video,10187,63880)
video=fadein(video,20)
video=fadeout(video,50)
return(video)

it encodes perfectly as said before but with the error on the end which prevents batch encoding.
Because most of the time I don't use a separate audio file the video=function(video,etc) isn't necessary so I simplified it to:

avisource("20.avi")
bicubicresize(336,252,0,0.5)
trim(0,7458)++trim(10187,63880)
fadein(20)
fadeout(50)
return()

After encoding it doesn't generate the error as stated above!

karl_lillevold
12th November 2003, 23:11
very strange. I use the 'video=...' syntax myself without any problems. Is the 20.avi file small enough for an upload? If not, does it also happen if you edit it to become a small enough file for upload? If yes, send me a PM, and I will provide an upload link.

methos
12th November 2003, 23:42
Doesn't matter on which file i try it or how large it is. Under the specified settings i have the same problem.

karl_lillevold
13th November 2003, 00:16
I tried the same script here (w 'video=...' syntax) and see no problems with Producer 9.2 M7 (or M6 or M5). Sorry, but not much more I can do. Maybe it depends on the OS (which one?), the version of DirectX installed, and/or Avisynth. Other than this, I think perhaps this thread should be moved to the Avisynth Development forum, where they know more about what is difference between the two script versions.

methos
13th November 2003, 00:35
i agree.. anyway, for the use i wanted (batch encoding) the prob is located and i can circumvent it. About the 'real' solution I think the people of that other forum you refered may find an answer. anyway thx for the input.