Log in

View Full Version : TMPGenc and avisynth question


[MA]Debito
8th February 2004, 22:26
i've recently began frame editing to produce higher quality encodes and the deinterlacing/IVTC that TMPGenc produces is absolutely amazing. The problem I'm having is that i'm not satisfied with the quality of the virual dub filters. So i want to be able to load this stuff with AviSynth. I've tried making numerous scripts to open it, and when i finally get everything right, it tells me the that the source is not a clip.

here is my current script (settings not included to keep quality secrets):

avisource("myclip.avi").coloryuv(levels="TV->PC").VagueDenoiser().YV12toYUY2()._2DCleanYUY2().ConvertToYV12().atc().Convolution3d().awarpsharp().undot().dup()

what am i doing wrong?

killerhis
8th February 2004, 22:36
get the latest avisynth... that should fix your problem ^_^... nice to see you use this too :D

[MA]Debito
8th February 2004, 22:37
well...seeing as i have the latest version, i doubt that's the problem. and yes, nice to you you here to.

Dreassica
8th February 2004, 22:44
if its only IVTC u use in tmpgenc, u might give TPRIVTC.dll a shot.
It can read the IVTC info from a tpr file and and apply it to a loaded d2v file. doubleweave().tprivtc("x:pathofurtprfile/file.tpr").
U canget the tprivtc dll of Warpenterprise's avs filter collection site.
If u use otehr tmpgenc functiosn as well u can always use avisynth's
loadvfapipluginfunction to load the tpr file as u woudl an avi/d2v, like:

LoadVFAPIplugin("x:pathtoyourtmpinstall/TMPGEnc.vfp","TMPsource")
TMPsource("yourtprfile")
converttoyv12()
flipvertical() (not sure about this one)

[MA]Debito
8th February 2004, 22:46
i'll try that, thanks! :cool:

sh0dan
8th February 2004, 22:56
When passing material to TMPGENc you should always end it with a converttorgb24().

Furthermore - many of your filter assume deinterlaced material (Vague, C3d, warpsharp, 2d clean), and these filters will not work properly on interlaced/telecined material.

If your input material is interlaced, you should use separatefields()/weave(). Also be sure to use "interlaced=true", when converting interlaced material.

Dreassica
8th February 2004, 23:07
Look sto me his frameserving FROM tnmpgenc to vdub, not the other way around. I may be wrong, but to me it sounds more likely, since denoising before IVTC isnt recommended.

WildCelt
9th February 2004, 14:40
I have absolutely no problem serving my YUY2 source to TMPGEnc. I assume you have the most recent TMPGEnc?

BTW--"quality secrets"? Are you selling these encodes or what?

The People's Elbow
11th February 2004, 03:28
Originally posted by Dreassica
[B]U canget the tprivtc dll of Warpenterprise's avs filter collection site.
For some reason it's not there, at least I can't find it...
I deleted it from my HD without intention and now I need it back :)
Can someone send it to me, plz - it's urgent ;)

Thx!

yaz
11th February 2004, 10:52
afais, madebito's problem is the opening not serving the script. imho, the clip is lost sw in the 'secret quality keeping' part :-)
Originally posted by sh0dan
When passing material to TMPGENc you should always end it with a converttorgb24().
ehrm ... who am i to doubt u, but ... afaik, tmpgenc accepts all the most common form of colorspaces (yv12, yuy2, rgb16, ...). a proper decoder is needed (of course) and the proper preference order must be set. is that changed ?
Originally posted by WildCelt
..."quality secrets"? Are you selling these encodes or what?smells like fansubs :-)) that infinite chain of filters, secret of keeping quality ... where've i touched that before ? :-))

the bests
y

[MA]Debito
20th May 2004, 19:41
LoadVFAPIplugin("C:\Documents and Settings\Debito\Desktop\TMPGENC\TMPGEnc.vfp","TMPsource").\
TMPsource("C:\Documents and Settings\Debito\Desktop\DBZ115\DBZ115.tpr").\
converttoyv12()

that's what i have it at, and it says "I don't know what TMPsource means"

DDogg
20th May 2004, 20:02
Another older way that works well is loading your source in TMPG, making your settings and then saving the TPR. The VFAPI converter will read this TPR and 'wrap' it into a 'fake.avi' along with PCM audio if desired. This AVI could then be served to VDub and it will reflect the settings you made in TMPG. You do not need to keep TMPG running to do this. You may need to have readavs installed to allow the VFAPI converter to read TPR files. See the NLE forum and do a search. I did a guide to installing this. OK, here it is (http://forum.doom9.org/showthread.php?s=&threadid=47194).

This method is one of the ones we used before Mpeg2dec came along, but has nearly been forgotten. TMPG has strong 'pre-processing' abilities that this method can tap into.

Minor downside to some is that VFAPI is rgb24, but VDUB is also rgb24 internally so I don't think it makes a difference so long as you choose the right lum level in your encoder. I always forget, but think that is 16-235. Someone correct that if mistaken.

/Add: I should note that if you by chance have DVD2SVCD already installed, then VFAPI and readavs are included with it. Just look in the VFAPI directory in your dvd2svcd directory and run the converter.