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. |
|
24th August 2013, 21:10 | #1 | Link |
Registered User
Join Date: Mar 2013
Posts: 18
|
Video have double edges and is too bright
Hello, i have problem with one video. It has doubles edges and is too bright. Can you suggest what filters i can use to fix it even a little? If you can, please, write how to use those filters.
Screens: http://oi43.tinypic.com/207xsw3.jpg http://oi42.tinypic.com/14ybbs0.jpg http://oi41.tinypic.com/1zp5tar.jpg |
24th August 2013, 23:47 | #4 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Please provide a short clip of the original unprocessed DVD source. You can use DGIndex for that purpose.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
25th August 2013, 00:11 | #5 | Link |
Registered User
Join Date: Mar 2013
Posts: 18
|
Here you have, 1 uncompressed sample.
|
25th August 2013, 11:14 | #6 | Link |
Registered User
Join Date: Jul 2010
Location: Germany
Posts: 357
|
You could maybe use a strong dehaloing filter to reduce the artifacts a bit, but that could do only so much...
Apart from that there's the usual IVTC (I'm assuming you have a NTSC DVD): Code:
FFVideoSource("00.m2v", fpsnum=30000, fpsden=1001) DeDot(luma2d=20, lumaT=20, chromaT1=0, chromaT2=255) AnimeIVTC(mode=1, ifade=true, killcomb=2) DeRainbow TemporalDegrain |
25th August 2013, 12:13 | #7 | Link | |
Registered User
Join Date: Mar 2013
Posts: 18
|
Quote:
|
|
25th August 2013, 13:03 | #8 | Link |
Registered User
Join Date: Jul 2010
Location: Germany
Posts: 357
|
Almost all should be available from External Filters / Warp Enterprises.
FFmpegSource DeDot / manual / info AnimeIVTC DeRainbow TemporalDegrain Last edited by creaothceann; 25th August 2013 at 13:10. |
25th August 2013, 15:40 | #9 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
For the double edges and the brightness, add this:
Code:
smo = mt_convolution (horizontal="1 2 1", vertical="1", u=2, v=2) dha = dehalo_alpha (ry=1) sp1 = dha.PointResize (Width (), Height (), +1) sm1 = dha.PointResize (Width (), Height (), -1) shrp = mt_logic (sp1, sm1, "max").MergeChroma (last) Merge (shrp, smo) SmoothLevels (0, 1, 255, 16, 235) # Or encode it with PC-range flag SeeSaw ()
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
25th August 2013, 16:41 | #10 | Link |
Registered User
Join Date: Mar 2013
Posts: 18
|
Thank you guys for help, especially you cretindesalpes, your script worked like a charm. Can you tell me one more thing? Which part is responsible for brightness? Because i don't want blindly mess with it. Is it only "SmoothLevels (0, 1, 255, 16, 235)"?
|
25th August 2013, 21:13 | #12 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Code:
smo = mt_convolution (horizontal="1 2 1", vertical="1", u=2, v=2) Code:
dha = dehalo_alpha (ry=1) sp1 = dha.PointResize (Width (), Height (), +1) sm1 = dha.PointResize (Width (), Height (), -1) shrp = mt_logic (sp1, sm1, "max").MergeChroma (last) Anyway we can notice that most of these sharp double lines are dark on a light background. We can take an advantage of this by changing the combination mode: instead of just averaging the tho pictures, we’re going to keep the lighter of them, pixel by pixel. So when both parts of the line overlap, we keep the line, and when a line overlap with a background, we keep the background. The goal of the PointResize is to create the replicas, each shifted from one pixel to the left and to the right (so we keep the result centered). There is no actual resize, just a pixel shift. Then we combine both with mt_logic "max". But first, we try to reduce the horrible halos with dehalo_alpha(). This has a positive impact on this processing path. With the first attempt, it was not necessary, because dehalo_alpha() somewhat blurs the edges and we don’t want to go too far. The result is still not very satisfactory, now our lines are too thin and the assumption we made caused lots of artefacts in places where it is not verified. Code:
Merge (shrp, smo) Code:
SmoothLevels (0, 1, 255, 16, 235) # Or encode it with PC-range flag Code:
SeeSaw ()
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
Tags |
avisynth, double edges, filter, too bright |
Thread Tools | Search this Thread |
Display Modes | |
|
|