Log in

View Full Version : Need Help deinterlancing PAL DVD


egrimisu
28th January 2008, 13:05
Hi i have these captain tatsuba spanish dvd's.The quality is WOW for a 80's anime and i want to rip them from dvd9 to h264.

I used megui do create the d2v file from the demuxed m2v.While creating the avs megui reported that the videofile is mixed progresive and interlance , mostly interlanced.I tried all the deinterlance method but all whre not that great.I read som of the deinterlance post here on doom9 and i sau that TELECIDE is the best in video quality but i belive that is for NTSC 29.970 frame rate. What shall i use for my pal dvd? if is reqyired i can upload a sample of the movie so you can help me in filtering a bit, usualy i use degrainmedian and ft3dfilter. But i'm not able to adapt the filter settings for any anime i just use a setting for all.

What h264 settings shall i use for anime encoding. I don't care about file size and compress time, quality is what matters for me. The filesize that i want to use is beetween 350mb-700mb/file

Thanks.

Guest
29th January 2008, 03:17
Post an unprocessed source sample.

It's probably field-blended, which is a PITA to deal with, especially for a noob.

egrimisu
29th January 2008, 10:51
Here's the sample http://w14.easy-share.com/1698531401.html
And this is the d2v

DGIndexProjectFile16
1
C:\Tatsuba\VideoFile.m2v

Stream_Type=0
MPEG_Type=2
iDCT_Algorithm=6
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=4:3
Picture_Size=720x576
Field_Operation=0
Frame_Rate=25000 (25/1)
Location=0,0,0,88f1c

d00 1 0 0 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 243232 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 524264 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 750992 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 1008048 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
.
.
.
d00 1 0 1147848620 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 1148223252 0 0 0 b2 b2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2
d00 1 0 1148604404 0 0 0 b2 b2 92 b2 a2
d00 1 0 1148763536 0 0 0 d2 ff

FINISHED 100.00% VIDEO


Please help me with some filtering to improve video quality and please post me some links where i cand find some deinterlancing NOOB guides :). Thanks

pc_speak
29th January 2008, 12:03
I don't care about file size and compress time, quality is what matters for me. The filesize that i want to use is beetween 350mb-700mb/file

Ummm. Contradiction?

Filesize is related to the bitrate, and the quality (in anime??). Please help. Big Badda Boom!

2Bdecided
29th January 2008, 12:09
Yes, it's a field blended conversion. If you bob it and step through some of the fast sections frame-by-frame this is clearly visible. The NTSC version (if it exists) was probably clean 3-2 pulldown.

Cheers,
David.

pc_speak
29th January 2008, 13:35
Hello again.

@neuron2 & 2Bdecided
A simple blend of the clip?

directshowsource("VideoFile.m2v", fps=25, audio=false)

@egrimisu
Where/How will the output be played? PC, handheld device, etc.
If we know we will be able to recommend the best storage container. OGG, AVI, MP4, etc (Great clip. Please make the next one longer.) :)

egrimisu
29th January 2008, 13:47
i would like use mkv container and h264 codec. but first i have to deinterlance it :)

foxyshadis
29th January 2008, 21:11
See "another restore function" thread, mrestore should help.

egrimisu
29th January 2008, 21:52
Sorry i'm a noob and i could't make mrestore work : " there no function named "mt_makediff" "
Can you please be more explicit i can't make this work

jeffy
29th January 2008, 21:57
You need MaskTools & TIVTC, read here:
http://forum.doom9.org/showthread.php?p=673243#post673243

pc_speak
29th January 2008, 22:50
Hello.
I did it this way.

Script: videofile.avs
directshowsource("VideoFile.m2v", fps=25, framecount=565)
converttoyv12()

Batch Command: convert.cmd
\x264\x264.exe --pass 1 --bitrate 1000 --stats "VideoFile.stats" --progress --fps 25 --bframes 2 --weightb --analyse all --no-psnr --output NUL: "VideoFile.avs"
\x264\x264.exe --pass 3 --bitrate 1000 --stats "VideoFile.stats" --progress --fps 25 --bframes 2 --weightb --analyse all --no-psnr --output NUL: "VideoFile.avs"
\x264\x264.exe --pass 2 --bitrate 1000 --stats "VideoFile.stats" --progress --fps 25 --bframes 2 --weightb --analyse all --no-psnr --output "VideoFile.mkv" "VideoFile.avs"
pause

And got this. http://www.megafileupload.com/en/file/42579/VideoFile-mkv.html

All comments/criticism welcome. :)

egrimisu
29th January 2008, 23:27
i downloaded and installed all those plugin but the result : there no function named "mt_makediff" "

what exactly is this mt_makediff ? dll, avsi ?

jeffy
29th January 2008, 23:32
You have to load the MaskTools dll in your script, mt_makediff is the function in MaskTools v2.
Post your script.

egrimisu
29th January 2008, 23:51
@pc_speak
in that mkv i saw some blending at the moment when the goalkeeper touches the ball + i don't know hoe to explain but on a straigh line apear some artifact like when using wrong deinterlancer filter
the first 3 pictures are screens from your mkv
the last 2 are from the source filtered with: Telecide(chroma=false)
TomsMoComp(-1,5,1)

i want this anime to become sharp resulting from best deinterlancer and no blended fields. I'm sorry that i'm such a noob. I read www.100fps.com, it's quite nice but i did'nt undersand how to reproduce what he did there, if anyone can post some kind of script i would be greateful.
http://img2.freeimagehosting.net/image.php?4dbf4b4060.jpg
http://img2.freeimagehosting.net/image.php?7e707ad7d0.jpg
http://img2.freeimagehosting.net/image.php?53d466f12f.jpg
http://img2.freeimagehosting.net/image.php?c8815850db.jpg
http://img2.freeimagehosting.net/image.php?64e73df0e5.jpg

egrimisu
30th January 2008, 00:08
i succeded with mrestore() but the result is better that tomsnocop but i ses some interlance frames at some positions and some blended frames on other positions:
http://img2.freeimagehosting.net/image.php?43549c9472.jpg
http://img2.freeimagehosting.net/image.php?08cf7b6d31.jpg

jeffy
30th January 2008, 00:10
i succeded with mrestore() but the result is better that tomsnocop but i ses some interlance frames at some positions and some blended frames on other positions:
http://img2.freeimagehosting.net/image.php?43549c9472.jpg
http://img2.freeimagehosting.net/image.php?08cf7b6d31.jpg

:script: What did you use BEFORE mrestore as a bobber?

egrimisu
30th January 2008, 01:12
i didn't use, thats the result of
DGDecode_mpeg2source("C:\Tatsuba\VideoFile.d2v",cpu=0, info=3)
mrestore()

jeffy
30th January 2008, 01:20
You should use some bobber before, full example follows:
Load_Stdcall_plugin("yadif.dll")
DGDecode_mpeg2source("C:\Tatsuba\VideoFile.d2v",cpu=0, info=3)
Yadif(mode=1)
mrestore()

Yadif is here (the bottom of the page):
http://avisynth.org.ru/yadif/yadif.html

egrimisu
30th January 2008, 01:24
Looks quite nice, Thanks

Do you know how to reproduce the deinterlancig on www.100fps.com?

scharfis_brain
30th January 2008, 01:48
What kind of deinterlacing do you refer to?

egrimisu
30th January 2008, 17:41
ok, i sticked to this:
Load_Stdcall_plugin("yadif.dll")
DGDecode_mpeg2source("C:\Tatsuba\VideoFile.d2v",cpu=0, info=3)
Yadif(mode=1)
mrestore()


now how shall i denoise this and sharp it or whatever just to improve quality :)
i usualy used this on almoust any of my noob encodes :
degrainmedian(mode=1)
Temporalsoften(4,8,8,mode=2,scenechange=10)
Convolution3d("movielq")
FluxSmoothST(10,15)

here's a new sample :
http://w14.easy-share.com/1698667921.html


And thanks

scharfis_brain
30th January 2008, 18:06
you are using FOUR (!11!! sic!) denoisers. That is far too much. Stick with one or max. 2 good ones.

have you ever looked at the original and processed video side-by side or flipping?

Load_Stdcall_plugin("yadif.dll")
DGDecode_mpeg2source("C:\Tatsuba\VideoFile.d2v",cpu=0, info=3)
Yadif(mode=1)
before=mrestore()
before
degrainmedian(mode=1)
Temporalsoften(4,8,8,mode=2,scenechange=10)
Convolution3d("movielq")
after=FluxSmoothST(10,15)
stackhorizontal(before.subtitle("before"), after.subtitle("after"))

if you want a flipping before/after view replace stackhorizontal(..) with interleave(...)

egrimisu
30th January 2008, 18:48
no i haven't looked till now at the original and processed video side-by side or flipping, it's great thanks. What denoiseres do you recomand?

egrimisu
12th February 2008, 14:41
i tried mrestore but it seems that i get some frame drops, yadif did solved the problem with the interlancing line if used before mrestore.
If i try to use a smoother everything is like somoothed-oversharped image, why? is that the efect of mrestore and yadif?

thanks

Guest
12th February 2008, 17:19
To help us help you, you need to give us more information. For the problem you now speak of, please give us the *unprocessed* source clip (maybe it's the same one you already posted?) AND your exact Avisynth script. Then we can duplicate your issue and try to find and fix the cause of the problem.

egrimisu
12th February 2008, 18:42
Code:
Load_Stdcall_plugin("c:\Program Files\avisynth 2.5\plugins\yadif.dll")
DGDecode_mpeg2source("C:\Tatsuba\VideoFile.d2v",cpu=0, info=3)
Yadif(order=1)
mrestore()
degrainmedian(mode=1)
Convolution3d("movielq")

If i use these 2 more the video quality get worse:

Temporalsoften(4,8,8,mode=2,scenechange=10)
FluxSmoothST(10,15)


The samples:

http://w14.easy-share.com/1699535341.html
http://w14.easy-share.com/1698531401.html

I Hope this will help

Guest
12th February 2008, 18:49
Obviously, using 4 denoisers is going to kill detail! Isn't that overkill?

It's like saying I used strong bleach to clean my clothes and then complaining that they're looking all faded!

I can't look at your samples right now because they are blocked by my firewall.