View Full Version : Encoding Problem
The Showstopper
18th June 2010, 23:31
Hi, I have a little problem encoding an anime series, the source is Interlaced and when i try to deinterlace the video does not stay fluid, I have tried a lot of deinterlacers and the best was TIVTC, when I try TIVTC with decimate 98% of the video plays fluid but there's a part where the decimate takes out some frames that shouldn't, if I try without the decimate then that part plays fine but the other 98% of the videos stays with frames that shouldn't be there
Guest
18th June 2010, 23:33
Are you sure it is interlaced? Where did you get the source files?
Post your full Avisynth script and an unprocessed source sample.
The Showstopper
18th June 2010, 23:36
The source is DVD, should I post part of the VOB or the mpeg dvd-rip raw??
Guest
18th June 2010, 23:53
The source is DVD, should I post part of the VOB or the mpeg dvd-rip raw?? Use DGSplit to make a sample of the VOB. Pick the problem area of the stream.
What is a "mpeg dvd-rip raw"?
The Showstopper
19th June 2010, 00:50
Here is the Avisynth Script that i am using:
# Set DAR in encoder to 29 : 16. The following line is for automatic signalling
global MeGUI_darx = 29
global MeGUI_dary = 16
LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Chobits\Ep 1\VTS_01_PGC_01_1 - 0xE0 - Video - MPEG-2 - 720x480 (NTSC) - 16~9 - Letterboxed.d2v")
LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1)
crop( 2, 0, -2, 0)
LanczosResize(720,480) # Lanczos (Sharp)
#denoise
And the 2 vob samples:
http://hotfile.com/dl/49308604/86bba42/VTS_01_5.VOB.html
http://hotfile.com/dl/49309488/e0bbcd8/CHB11.VOB.html
The 2 vob samples are part of the same episode, there are 2 camera moving sequences, one in each file that cannot seem to play fluid at the same time, no matter what the script I use
Guest
19th June 2010, 02:27
Hotfile.com:
"1 file per 30 minutes"
Please use mediafire.com in the future.
foxyshadis
19th June 2010, 02:31
That's not interlaced (and you haven't deinterlaced), it's telecined. You just forgot to put TDecimate() after TFM.
And yeah, hotfile is painful even when you can download.
Leinad4Mind
19th June 2010, 02:45
Here is the Avisynth Script that i am using:
# Set DAR in encoder to 29 : 16. The following line is for automatic signalling
global MeGUI_darx = 29
global MeGUI_dary = 16
LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Chobits\Ep 1\VTS_01_PGC_01_1 - 0xE0 - Video - MPEG-2 - 720x480 (NTSC) - 16~9 - Letterboxed.d2v")
LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1)
crop( 2, 0, -2, 0)
LanczosResize(720,480) # Lanczos (Sharp)
#denoise
And the 2 vob samples:
http://hotfile.com/dl/49308604/86bba42/VTS_01_5.VOB.html
http://hotfile.com/dl/49309488/e0bbcd8/CHB11.VOB.html
The 2 vob samples are part of the same episode, there are 2 camera moving sequences, one in each file that cannot seem to play fluid at the same time, no matter what the script I use
After seeing the 1st sample, I recommend you the following:
# Set DAR in encoder to 29 : 16. The following line is for automatic signalling
global MeGUI_darx = 29
global MeGUI_dary = 16
LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Chobits\Ep 1\VTS_01_PGC_01_1 - 0xE0 - Video - MPEG-2 - 720x480 (NTSC) - 16~9 - Letterboxed.d2v")
LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\TIVTC.dll")
#tfm(order=-1).tdecimate(mode=1) #The 2 first frames was a little jaggy... if it doesn't work go use the code below
AssumeTFF() # TFF Means Top Field First
edeintted = nnedi2(field=-2)
res = TDeint(edeint=edeintted,order=-1,mode=2,sharp=true,mtnmode=3,full=false,tryWeave=false,type=1,emask=TMM(mode=1))
tfm(order=-1,clip2=res,pp=7,slow=2,mode=2,chroma=false,display=false).tdecimate(hybrid=1,mode=1,vfrDec=0)
Lanczos4Resize(720, 480, 2, 0, -4, 0) #Advanced Crop And Lanczos 4 is better than Lanczos... imho
#denoise
Best Regards
foxyshadis
19th June 2010, 02:48
#tfm(order=-1).tdecimate(mode=1) #The 2 first frames was a little jaggy... if it doesn't work go use the code below
That's because he didn't cut on the start of the cycle. TFM.TDecimate will work fine for the whole video.
Leinad4Mind
19th June 2010, 03:19
Yeah, that's what I though too. But I never know... :rolleyes:
Guest
19th June 2010, 04:11
The second one has portions that are 29.97 progressive (e.g., the vertical pan of the girl in the brown dress), so IVTC will make those scenes jerky.
This is a classic problem of such hybrid material. One option is a VFR encode. Another is to leave it as is, i.e., leave the clip at 29.97 with it's original irregular pulldown. Let the display device deinterlace it.
TFM alone is not a bad solution either, because judder on anime is not so bad.
The Showstopper
19th June 2010, 12:12
So how would i encode in vfr?? Would it fix this problem??
Guest
19th June 2010, 12:45
http://avisynth.org/mediawiki/VFR
The Showstopper
19th June 2010, 15:16
So i am following that guide in this part: "2.3 encoding to vfr (mkv)", and using the tdecimate(), but when I go for the second script it says "input error (mode 5 and 6, all frames must have entries)".
How do I solve this error??
Guest
19th June 2010, 15:45
I've never encoded VFR. Maybe someone else will help.
Leinad4Mind
19th June 2010, 16:11
Show me the new script you're using. Something is wrong...
The Showstopper
19th June 2010, 16:33
I think the error was when i clicked on preview. This time I clicked on save and it gave no errors. Now it is encoding...
Leinad4Mind
19th June 2010, 16:39
This kind of error is very common when you try to trim after the tfm code.
But if it's encoding... :p I think it's all right
EDIT
btw, do not forget to check if opening credits and ending credits are progressive or interlaced.
'cause your source could be something like: A bit of the telecined episode + interlaced opening credits + episode + progressive ending credits + next episode preview.
best regards
The Showstopper
19th June 2010, 18:06
Well, I think the problem is solved, Thanks to all, it is always good to learn a bit more about encoding
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.