View Full Version : Help with TDeint
DVDragon
12th September 2006, 12:12
I haven't used Avisynth much and I'm having problems setting up the script to deinterlace a source. I did a search on this subject and read as much as I could last night but I'm just not picking up on it. This is what I have so far:
LoadPlugin("C:\Program Files\AviSynth 2.5\LoadPluginEx\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2DEC\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint\TDeint.dll")
mpeg2source("C:\Documents and Settings\Owner\My Documents\My DVDs\test.d2v")
TDeint(order=1,field=1 What values should I put here for order and field and do I need anything else here?)
ConvertToYUY2(Not sure what to put here)
ResampleAudio(44100)
I am wanting to load this into CCE but I'm not sure what to put in for some of the values. Any help would be appreciated.
thanks
Pookie
12th September 2006, 16:49
From the Tdeint Documentation:
mode:
Sets the mode of operation. Modes -2 and -1 require progressive input.
-2 - double height using modified ELA
-1 - double height using modified ELA-2
0 - same rate output
1 - double rate output (bobbing)
default - 0 (int)
order:
Sets the field order of the video.
-1 - use parity from AviSynth
0 - bottom field first (bff)
1 - top field first (tff)
default - -1 (int)
The easier settings for you is Mode=0 and Order= -1
ConverttoYUY2() should be enough, but put it above the Tdeint line
ResampleAudio isn't going to work at all. Mpeg2Source only processes video. Easier to use a 3rd party app like Besweet to resample your audio, then mux it back into your final Mpeg.
ConvertToYUY2()
TDeint(Mode=0,Order=-1)
foxyshadis
12th September 2006, 19:26
If you're going to VCD you'll probably want to resize too. If not there's absolutely no reason to convert the audio to 44100.
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2DEC\MPEG2DEC.dll")
I really hope this DGdecode renamed (and not dvd2avi/mpeg2dec), because dgdecode fixes so many bugs that plagued the old one.
Anyway, are the defaults for TDeint not working, is it causing some specific problems you could post screenshots of? Or is it just a general question? (The order parameters are listed in the readme is the basic order that you should try changing them.)
DVDragon
12th September 2006, 21:33
I wasn't trying to do anything with the audio. That had something to do with a bug in an earlier version of avisynth and cce. That line had to be included in order for CCE to accept the avs script. Not really sure why, that's just what I was told long ago. Not really sure what you are asking about DGdecode? All of the plugins I have are older so if you suggest something newer that is better that would be great. I read the TDeint documentation and searched the forum for some examples but I just wasn't sure what settings I should use. The problem I was having is that whenever I would try to open up the script that I posted, CCE would just shut down. I'll try your suggestions when I get home.
thanks
One last question and I think I already know the answer but I'll ask anyway. If I have a clip that has already been encoded with CCE and it has jerky playback is it too late to deinterlace or do I just need to start over with the original source?
foxyshadis
12th September 2006, 22:48
Definitely update to DGDecode (http://neuron2.net/dgmpgdec/dgmpgdec.html). You might need to update your avisynth too, the current version is 2.5.6a and the 2.5.7 alphas are also generally stable and work better with some plugins.
And while the CCE output isn't unfixable, it's easier and faster to start from scratch.
DVDragon
12th September 2006, 23:41
Ok, thanks a lot for the help. I do have the newest version of Avisynth (I was on version 1.0) and I'll try your suggestions.
thanks again
DVDragon
13th September 2006, 00:11
Ok now I am getting a frame error in CCE when I try to load my avs. This is what I have:
LoadPlugin("C:\Program Files\AviSynth 2.5\LoadPluginEx\LoadPluginEx.dll")
LoadPlugin("C:\Documents and Settings\Owner\My Documents\Downloads\dgmpgdec147\DGIndex.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint\TDeint.dll")
mpeg2source("C:\Documents and Settings\Owner\My Documents\My DVDs\test.d2v")
ConvertToYUY2()
TDeint(mode=0,order=1)
When I try to load this CCE responds with "Frame size 764x56 is not supported. Supported frame size is up to 720x576".
Is there something else I should add to the script?
thanks
matrix
13th September 2006, 00:20
in order for CCE to accept the avs script.
It depends on what version of CCE you have.
I think you neded that line on version 2.5
With the new version of avisynth, that line doesn't work anymore.
If you need it, this is how you do it:
function AddAudio(clip v1) {
v2 = Blankclip()
v1 = AudioDub(v1,v2)
return v1
}
Save it as "AddAudio.avsi" in your plugin folder:
Then use AddAudio() instead of resample
foxyshadis
13th September 2006, 00:22
Open it in virtualdub, which will show you the error that it's trying to display. It might be that you need to recreate the d2v first, since they aren't compatible.
DVDragon
13th September 2006, 00:58
I should have double checked my script. I was loading the wrong plugin. That takes care of that error and I can open it up in Virtual Dub but CCE still justs shuts down when I try to load the script.
foxyshadis
13th September 2006, 03:05
Can you try it without tdeint, and if that works, try it with the argument opt=0? Hmm. Otherwise, if it works in vdub but not in cce, there must be some incompatibility, but I don't know much about cce... You could try asking in the cce forum if there's anything special you need besides resolution, colorspace, and framerate.
DVDragon
13th September 2006, 05:29
Thanks matrix. The Addaudio() did the trick. Thanks for all the replies and help guys.
DVDragon
13th September 2006, 14:24
The script worked and the result looks great but when I add the .m2v and the .ac3 to scenarist, the video duration is almost 30 min. longer than the audio. From viewing the opening sequence it looks as though it runs longer than it should, like it has too many frames. Any thoughts?
thanks
foxyshadis
13th September 2006, 18:23
Maybe it's trying to import your new 30fps footage as if it's 24fps?
DVDragon
13th September 2006, 21:25
I think I know where I went wrong. I think I used pulldown after I finished encoding which should only be done if I use force film, right? So if it's interlaced I do not have to use pulldown after using CCE?
Paul Curtis
29th September 2006, 05:50
Just wondering...
Am I correct in thinking that, when using TDeint to deinterlace (or bob) hybrid interlaced/progressive footage--specifically, PAL video with occasional film inserts--one should set both full=false and tryweave=true?
Thanks very much!
--Paul Curtis
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.