Quantcast TMPGEnc Errors and Avisynth Plugin Errors? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
10-28-2003, 05:39 PM
mbbrinker mbbrinker is offline
Free Member
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Hello, Everybody

I'm another newbie impressed with what I've seen with KVCD and still trying to get everything to work. This seems like the appropriate forum for newbie questions. I've used Red-M's guide successfully, but having looked around the forum I'd really like to try the MA script to see if I can get an even better quality movie.

I've been trying to piece together how to do it from the forums. I can't get it to work, though; I'd like to outline what I have done so far and see if anyone can point out what I'm doing wrong. This will be a long post -- sorry.

I'm experimenting with my Matrix Reloaded DVD (NTSC), which I've ripped with DVD Decrypter. I used DVD2AVI 1.76 to create my .d2v file, and encoded my audio to a dual-channel .mp2 file using headache. I'm okay there. My problem comes with encoding the video (big surprise, huh?)

I think I probably have an Avisynth problem. I used Avisynth 2.0.8 for Red-M's guide, but since the MA script will apparently only work with Avisynth 2.5, I uninstalled 2.0.8 and installed version 2.5.2.

I downloaded the necessary plugins from warnerenterprises (with some extra help from kwag, jorel, and Dialhot to find GripFit_YV12.dll) and put them in the "Plugins" folder for Avisynth 2.5 My "Plugins" folder currently looks like this:

For C:\Program Files\AviSynth 2.5\plugins\
  • asharp.dll --> 32 KB
    GripFit_YV12.dll --> 92 KB
    MPEG2Dec3.dll --> 249 KB
    Sampler-2.5.dll --> 52 KB
    STMedianFilter.dll --> 52 KB
    UnDot.dll --> 52 KB
    UnFilter.dll --> 76 KB

I am absolutely certain that I do have AviSynth 2.5.2, and downloaded the plugins specifically made for 2.5.2. I have re-installed the program three times and downloaded each of the plugins twice to make absolutely sure I got them right.

I copied the MA script to notepad, deleted the "LoadPlugin" lines since the .dll's are already in the "plugins" folder, and copied the GripCrop values I got from MovieStacker where they needed to go. The script currently looks like this:
Quote:
MaxTreshold = 1.50
nf =* 0 # Current frame.

## Main section and static filters ###
#
Mpeg2Source("C:\MATRIX_RELOADED_DISC_1\Matrix.d2v" )
#
undot()
Limiter()
asharp(1, 4)
GripCrop(704, 480, overscan=2)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
* return ( f1<f2 ) ? f1 : f2 }

#
####
The only things I've changed is removing the .dll paths and inserting my GripCrop values from MovieStacker, at least as far as I can tell. I saved the script as an .avs file by choosing "All Files" from the Notepad save dialog and adding .avs at the end of the file name.

Now to where the problem comes happens. I use free version of TMPGenc 2.521.58.169. Whenever I try to open my .avs file as my video source, TMPGenc does a couple of wierd things. First, you know that little preview screen that is supposed to be somewhat close to a square, depending on what your set resolution is? It comes up as a long, flat 668x56 rectangle. I don't know how to do a screen capture, or I would show you. Also, if I load a template and click "start" anyway, TMPGenc encodes a grand total of 240 frames and does nothing at all, really.

I've searched the forums enough to know that this is a problem that is usually related to the script or AviSynth (which is why I've re-installed it several different times), but I can't get anything to work, and I'm getting frustrated.

Could ReadAvs.dll be part of the problem? It's in the TMPGenc folder and I've done that registry thing, so it appears to work, but I don't know enough about this stuff to really know what to do. Could it also be that MovieStacker is giving me wrong information?

Oh, I guess I should also add that I've tried the to put those plugin .dll's into a separate folder and use the LoadPlugin command, like the way the script originally looks right off the forum, but I get the same result.

Well, there you go -- that's my problem. I look forward to any assistance anyone can offer me.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-28-2003, 05:45 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
240 frames = 10 seconds = a error message.

When avisynth detect an error in the script, it always generates a small video, 10 seconds long, displaying in red characters on black background, the text of the error.

That's why you have these strange dimensions (668x56).

Just open your script into wmp and you will be abble to read the message, and to copy it there if you don't understand what it means.
Reply With Quote
  #3  
10-28-2003, 05:54 PM
mbbrinker mbbrinker is offline
Free Member
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Wow, that was fast! Thanks for the prompt reply, Dialhot!

WMP shows this message:

Quote:
I don't know what " " means
(C\:MATRIX_RELOADED_DISC_1\Matrix Reloaded Test.avs, line 2)
So . . . . what's that telling me, exactly?
Reply With Quote
  #4  
10-28-2003, 06:24 PM
EightBall EightBall is offline
Free Member
 
Join Date: Apr 2002
Posts: 167
Thanks: 0
Thanked 0 Times in 0 Posts
What Dialhot is telling you is that Avisynth is complaining about a problem. It is telling you that the problem has to do with the quotation marks which in your case are not there, therefore Avisynth can go no further with your script until it "understands" what you are trying to tell it in that particular line.

Change what you have now:
(C\:MATRIX_RELOADED_DISC_1\Matrix Reloaded Test.avs, line 2)

to:
("C:\MATRIX_RELOADED-DISC_1.avi", false)


or whatever is appropriate based on how its named and where its kept,
and you should be good (until the next error pops up.)

Hope this helps.[/quote]
Reply With Quote
  #5  
10-28-2003, 06:43 PM
mbbrinker mbbrinker is offline
Free Member
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I just did something that actually seemed to help !!

I figured that since the message was saying the problem was with line 2 of my script, so I took a look at it and deleted the spaces between the "=" and the "0".

Basically, I changed

nf = 0 # Current frame.

to

nf =0 # Current frame.

Now if I open the .avs file in WMP, the movie plays, but shows this message in grey letters across the top of the picture:

Quote:
I don't know what "SwitchThreshold" means
([ScriptClip], line 4)
Now I have no idea what this is telling me. I tried various methods of taking out the spaces in the "Linear Motion Adaptive Filtering" portion of the script, but nothing has changed.

Am I anywhere close to being on the right track?
Reply With Quote
  #6  
10-28-2003, 06:53 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
You made a confusion Eighball : the error message indicates the name of the avs, not the string taht have a problem.

For the rest, it seems that you have problems with your text editor taht put stange characters in your script because the first error you had shouldn't occur !

Can you just check with a script containing only that :
Code:
Version()
which version of avs you have ?
Reply With Quote
  #7  
10-28-2003, 08:11 PM
mbbrinker mbbrinker is offline
Free Member
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Can you just check with a script containing only that :

Code:
Version()

which version of avs you have ?
I checked, and yes, I do have avs 2.52


Quote:
it seems that you have problems with your text editor taht put stange characters in your script because the first error you had shouldn't occur !
That was it! I was using notepad, which I assumed would work fine, but I must have been doing something wrong, since the files didn't work. So, I copied the MA script off IE (just to make sure there weren't any copying errors -- I've been using Opera, which can be tempremental), and pasted it into the FS Editor that's built into MovieStacker. The script worked like a charm! Notepad really was doing something wierd.

Thanks you two -- you've been a great help. I've been enjoying every minute I spend here on KVCD.net. I've never seen a forum so comprehensive, friendly, helpful and professional. You'll probably hear from me more in the future.
Reply With Quote
  #8  
10-29-2003, 04:23 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mbbrinker
I checked, and yes, I do have avs 2.52
There are a lot of 2.52 version each with a different build date. The last one is always there :
http://cultact-server.novi.dk/kpo/avisynth/avs_cvs.html

Happy to see your problems came from Notepad.
Reply With Quote
  #9  
10-30-2003, 09:14 PM
EightBall EightBall is offline
Free Member
 
Join Date: Apr 2002
Posts: 167
Thanks: 0
Thanked 0 Times in 0 Posts
Everything I know about avisynth came from Dialhot. When he talks, I stay quiet.
------------------------------------------------------------------------------

Thanks Dialhot, for pointing that out. I thought I saw one I could answer.
apparantly not.

Oh well, a little better each day. Thanks for bailing me out.
Reply With Quote
  #10  
12-10-2003, 01:01 AM
mbbrinker mbbrinker is offline
Free Member
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Just in the interest of correct information, I've made a few more KVCDs since I started this thread, and have come to realize that my problem seems to have stemmed from Opera too, not just Notepad. For some reason, cutting and pasting Kwag's MA script from Opera to Notepad (and/or the editor in Movistacker) causes problems, while taking the script from Internet Explorer to Moviestacker works. Go figure.

I still don't seem to be able to initially create a script in Notepad that works, although once I've saved one from Moviestacker I can go into Notepad and edit it just fine. Is there some settings I could change in Notepad to be able to create scripts directly in there? It's not like I really need to know -- just curious.

Thanks
Reply With Quote
  #11  
12-10-2003, 04:14 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Stop using notepad and use Textpad (shareware but you can sue it without the license, just have to wait 3 seconds when the program start because of an add pop-up).
Reply With Quote
  #12  
12-10-2003, 04:40 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
I can recommend using "Programmers Notepad 2", available here:
http://pnotepad.org/
It's really great and also helpful when programming (syntax highlighting)
Reply With Quote
  #13  
12-10-2003, 04:58 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi
It's really great and also helpful when programming (syntax highlighting)
As Textpad. And there is an "avisynth.syn" configuration file taht exists )
Reply With Quote
  #14  
12-10-2003, 05:03 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
And there is an "avisynth.syn" configuration file taht exists )
Wow, didn't know, thanks for the info. I'll give it a try.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Yuy errors in TMPGENc? wormbrner Avisynth Scripting 4 03-09-2003 07:27 AM
TMPGEnc: VBV Buffer Setting, skipping errors Jellygoose Video Encoding and Conversion 2 02-20-2003 03:23 PM
TMPGEnc produces errors on Audio VBR Conversion? Jellygoose Video Encoding and Conversion 29 02-11-2003 03:48 AM
TMPGEnc: Errors during encoding wazoqaz Video Encoding and Conversion 12 02-04-2003 03:40 PM
LOW MEMORY errors with TMPGenc and VBR_CQ ? johneboy Video Encoding and Conversion 1 10-26-2002 07:49 AM




 
All times are GMT -5. The time now is 04:52 AM  —  vBulletin © Jelsoft Enterprises Ltd