View Full Version : Deinterlacing Blu-ray (Anime)
Taizenshū
28th March 2015, 18:00
I'm having a really hard time deinterlacing this anime, I tried using things from ITVC to QTGMC but the lines would sometimes look weird.
Here are some samples (I used tsmuxer to split them):
https://www.dropbox.com/sh/8qal0ylsz0202rf/AADB7gIRpOdmLMwprYZ-9dMba?dl=0
ndjamena
28th March 2015, 21:02
FFVideoSource("EP1.split.1.m2ts").assumefps("ntsc_video")
separatefields() #QTGMC()
Dup(Threshold=6.0, blend=true)
tdecimate(mode=2)
NNEDI3_Resize16(1920, 1080) #or not
bxyhxyh
29th March 2015, 06:55
TFM().TDecimate(mode=1) should work on this
How lines look weird? Please provide some examples.
ndjamena
29th March 2015, 10:58
http://forum.doom9.org/attachment.php?attachmentid=14690&stc=1&d=1427622589
The fields are slightly different. I think at least some of the fields were upscaled from SD to HD without being deinterlaced. I can't really tell, maybe it all has.
I've being testing out Jagabo's scripts from this VideoHelp Thread:
http://forum.videohelp.com/threads/370175-Problem-with-deinterlacing-and-edges
but it gives terrible aliasing and generally looks like crap.
The frame rate in this one is even further off, there's fields lost in editing and I'm pretty sure some of it is full NTSC frame rate.
-edit- there's no setting in Dup that will merge the fields without destroying frames it shouldn't, I tried fiddling with QTGMC and ReDup to see if I could get something working but after being deinterlaced some of the derived top/bottom field frames have more differences to each other than they do against some of their original frame neighbours.
Taizenshū
3rd April 2015, 09:32
TFM().TDecimate(mode=1) should work on this
How lines look weird? Please provide some examples.
Look at the characters right hand here:
https://www.dropbox.com/s/2y571y7yknkp396/Try1.mkv?dl=1
Also the subtitles:
https://www.dropbox.com/s/zz83l7nw5ojo4r0/Try2.mkv?dl=1
FFVideoSource("EP1.split.1.m2ts").assumefps("ntsc_video")
separatefields() #QTGMC()
Dup(Threshold=6.0, blend=true)
tdecimate(mode=2)
NNEDI3_Resize16(1920, 1080) #or not
Your script probably gave me the worst result, the lines just looked terrible.
real.finder
3rd April 2015, 11:29
maybe this will help http://forum.doom9.org/showthread.php?t=158696
DeathAngelBR
3rd April 2015, 13:27
I'm not sure if this will work:
orig = last
_deint = tdeint(emask=orig.TMM(),slow=2)
#also try without the emask parameter
tfm(slow=2,clip2=_deint).tdecimate(mode=1)
or a 2-pass encode
#1st pass
tfm(slow=2,pp=1,output="tfm_file.txt")
#2nd pass
orig = last
tfm(slow=2,pp=1,input="tfm_file.txt")
tdeint(hints=true,clip2=orig,slow=2)
tdecimate(exPP=1,mode=1,tfmin="tfm_file.txt")
Overdrive80
3rd April 2015, 14:55
My attempt:
LoadPlugin("C:\Portables\MeGUI\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("C:\Users\Isra\Desktop\EP1.split.15.m2ts")
complementparity()
separatefields()
supaa2()
assumefieldbased.weave()
qtgmc(preset="fast", fpsdivisor=2, lossless=2, sourcematch=2)
Taizenshū
3rd April 2015, 17:52
@DeathAngelBR your script was sped up at the end.
@Overdrive80 Your video would keep playing and pausing.
All scripts seem to have that subtitle line issue I mentioned earlier. Why is this source such a pain to work with?
kuchikirukia
3rd April 2015, 20:20
Some idea of what file you're working on would be useful. "Try2" tells me nothing.
Moon runes can be a problem because it detects them as combed. Try turning off postprocessing.
tfm(pp=0).tdecimate(mode=1,hybrid=0)
You can play around with santiag for the residual combing.
A deinterlacer is the wrong tool here. This is just telecined.
kolak
3rd April 2015, 23:03
@DeathAngelBR your script was sped up at the end.
@Overdrive80 Your video would keep playing and pausing.
All scripts seem to have that subtitle line issue I mentioned earlier. Why is this source such a pain to work with?
Because it's crap source which should never end up on Blu-ray.
Resize it to half resolution vertically and upscale back with nnedi3.
bxyhxyh
4th April 2015, 06:28
Look at the characters right hand here:
https://www.dropbox.com/s/2y571y7yknkp396/Try1.mkv?dl=1
Which part is it, in your samples?
Taizenshū
4th April 2015, 06:37
Which part is it, in your samples?
I'll upload it now. It's from another episode, I just wanted to test out to see if it works with other episodes.
Not sure if this info would be useful:
General
ID : 0 (0x0)
Complete name : D:\Videos\Gintama\FullDisc\GINTAMA_BD_BOX1_1\BDMV\STREAM\00001.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 5.29 GiB
Duration : 24mn 55s
Overall bit rate mode : Variable
Overall bit rate : 30.4 Mbps
Maximum Overall bit rate : 48.0 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 24mn 56s
Bit rate mode : Variable
Bit rate : 27.7 Mbps
Maximum bit rate : 40.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Bits/(Pixel*Frame) : 0.445
Stream size : 4.82 GiB (91%)
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Muxing mode : Blu-ray
Codec ID : 128
Duration : 24mn 56s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 274 MiB (5%)
Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Duration : 24mn 53s
Delay relative to video : 1s 502ms
ndjamena
4th April 2015, 11:54
No, it's not. None of us are miracle workers and your source is borked. Anyone assuming it's simply telecined or hybrid isn't paying attention and any script that doesn't involve either blending or downsizing is wasting your time.
If I could finish ReDup blending may be an option, but since that's not happening you have no choice but to downsize or live with the messed up lines.
bxyhxyh
4th April 2015, 16:06
@Taizenshu
Please upload the source of try1.mkv, anyway.
Maybe other people would help.
Taizenshū
4th April 2015, 17:43
No, it's not. None of us are miracle workers and your source is borked. Anyone assuming it's simply telecined or hybrid isn't paying attention and any script that doesn't involve either blending or downsizing is wasting your time.
If I could finish ReDup blending may be an option, but since that's not happening you have no choice but to downsize or live with the messed up lines.
Damn, really disappointed in this release. Oh well, thanks for trying.
@Taizenshu
Please upload the source of try1.mkv, anyway.
Maybe other people would help.
https://www.dropbox.com/s/asdzlicjj1iqk7x/EP3.split.9.m2ts?dl=0
kuchikirukia
5th April 2015, 07:20
tfm(order=1, pp=0).tdecimate(mode=1,hybrid=0)
It's not perfect, but I'm not finding antialiasing that's working to clean up the rest and that seems to be the core of what you need so it's good enough for me.
cretindesalpes
6th April 2015, 08:24
These are typical artefacts from an Interlaced SD master → Imperfect IVTC/Deinterlacing → Upscaling → Interlacing/Pulldown process. The problem is that a “smart” deinterlacer is used, trying to detect which parts of the picture should be field-matched and which parts should be deinterlaced. Sometimes the detection fails and the wrong processing is applied.
The best thing to do is to IVTC without caring about the residual combing (just TFM/TDecimate with basic parameters) then reduce the resolution to something close to the original so the combing is removed, leaving just slight ghosting, or run DAA3 on the result if you want too keep the upscaled resolution.
Taizenshū
18th April 2015, 03:58
I should've mentioned that I actually wanted to downsize the resolution to 768x576. Would that make it easier?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.