Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
28th August 2016, 11:25 | #1 | Link |
Registered User
Join Date: Jan 2014
Location: Hungary
Posts: 13
|
Chroma bug in anime
Hello,
I have an anime DVD source which looks like interlaced video but it's not. The problem is the same as in this archived thread: http://forum.doom9.org/showthread.php?t=163937. I tried the code Didée wrote in it but didn't help (after encoding the source the result will be crappy with only chroma frames). I bobbed the source and saw that the chroma is swapped between frames. Can't we solve the problem somehow if we Bob it or use SeparateFields, swap the chroma of the frames and use Weave or change the frame rate back to 29.970 fps in any other way? I attached wrong frames from the bobbed source. Also, the source can be downloaded here: https://mega.nz/#!cc53iYCb!rg_42zzJw...NnEFtQK2HpG4co Thank you for your answer in advance. Last edited by EruPii; 28th August 2016 at 11:50. |
28th August 2016, 15:59 | #2 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
try this
Code:
orig = last sanimebob() chroma_rep() getparity(orig) ? interlaced60or50 : interlaced60or50(bff=true)
__________________
See My Avisynth Stuff Last edited by real.finder; 9th April 2019 at 06:29. |
28th August 2016, 22:11 | #3 | Link |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
You should've cut a sample using DGIndex or another tool instead of posting the entire 800MB episode.
The problem is that they took the hard-telecined source and encoded it in progressive mode, BTW: Code:
Format : MPEG-PS File size : 842 MiB Duration : 23mn 25s Overall bit rate mode : Variable Overall bit rate : 5 024 Kbps Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : Variable Duration : 23mn 25s Bit rate mode : Variable Bit rate : 4 700 Kbps Maximum bit rate : 9 800 Kbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate : 29.970 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.454 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Open GOP, Open/Closed of first fram : Closed Stream size : 788 MiB (94%) |
29th August 2016, 21:46 | #5 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
Quote:
Code:
MPEG2Source("hhws_ep37.d2v") orig = last sanimebob() chroma_rep(10) getparity(orig) ? interlaced60or50 : interlaced60or50(bff=true) FrameCache(10) # next lines from http://forum.doom9.org/showpost.php?...50&postcount=6 with some edit luma = AnimeIVTC(1,chroma=false,mchroma=false,o3025cfr=true) chroma = vinverse().Srestore(omode="PP3", cache=10) # manual sync: figure out which frame (previous,current aka p,c) of 'chroma' clip is most similar to current frame of 'luma' clip # 46*log(|x-y|+1) uses the full [0,255]-range and scales little differences better than |x-y|*2 diffp = mt_lutxy(luma,chroma.selectevery(1,-1),"x y - abs 1 + log 46 *") diffc = mt_lutxy(luma,chroma, "x y - abs 1 + log 46 *") # average difference between compared frames mp = mt_lutf(diffp,diffp,"avg",expr="x") mc = mt_lutf(diffc,diffc,"avg",expr="x") # build conditional masks based on the caculated comparisons maskp = mt_lutxy(mp,mc,"x y < 255 0 ?") # finally merge the luma of the tfm with the chroma of the srestore clip accordingly to the binary mask mt_merge(luma,chroma.selectevery(1,-1),maskp,luma=true,Y=2,U=3,V=3) tdecimate(1) smam(filter=daa3mod())
__________________
See My Avisynth Stuff Last edited by real.finder; 9th April 2019 at 06:31. |
|
16th September 2016, 23:06 | #7 | Link |
Registered User
Join Date: Jan 2014
Location: Hungary
Posts: 13
|
It's almost good, the problem is that I get these kind of frames in part of the video. Maybe chroma_rep doesn't work fully correctly. Does somebody have some kind of solution for this? Thank you for your reply in advance.
|
17th September 2016, 10:21 | #9 | Link |
Registered User
Join Date: Jan 2014
Location: Hungary
Posts: 13
|
I'm using that script real.finder pasted here which contains the script you linked here. My problem is with this code block:
Code:
orig = last sanimebob() chroma_rep(10) getparity(orig) ? interlaced60or50 : interlaced60or50(bff=true) FrameCache(10) Last edited by EruPii; 17th September 2016 at 10:22. Reason: adding information |
18th September 2016, 01:47 | #10 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
Quote:
that why I add other code in bottom
__________________
See My Avisynth Stuff |
|
18th September 2016, 21:14 | #12 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,042
|
Dont know about hqdn3dY (The Y is unknown to me), but Hqdn3d can be found here:- http://avisynth.nl/index.php/Externa...oral_Denoisers
EDIT: I dont see hqdn3d in this thread anyway (apart from your prev post [with/without the Y]).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 18th September 2016 at 22:00. |
18th September 2016, 22:17 | #13 | Link | |
Registered User
Join Date: Jan 2014
Location: Hungary
Posts: 13
|
Quote:
Code:
smam(filter="daa3mod()") |
|
19th September 2016, 06:22 | #14 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
__________________
See My Avisynth Stuff |
21st September 2016, 12:24 | #16 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
I upload the last one I have in Attachments
__________________
See My Avisynth Stuff |
22nd September 2016, 15:48 | #17 | Link |
Registered User
Join Date: Jan 2014
Location: Hungary
Posts: 13
|
Thanks. I put the line
Code:
smam(filter="daa3mod()") |
22nd September 2016, 16:30 | #18 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
|
Quote:
anyway this is normal http://forum.doom9.org/showpost.php?...1&postcount=81
__________________
See My Avisynth Stuff |
|
Tags |
anime, chroma, chroma bug, dvd |
Thread Tools | Search this Thread |
Display Modes | |
|
|