Hi I am doing a personal project and I want to brighten the german video of DBZ Kai which after episode 54 gets very dark and saturated for some reason. I am using Davinci Resolve and I used the french video as reference because it doesnt have these issues. However I don't want to use the french video because it is bitstarved and possibly DNR'd as well because it has less grain and a few details get deleted, whereas the german video has as far as I can tell all the grain and has higher bitrate. It is much harder than I thought though, as I can't seem to match it exactly as something is always a bit off. But the biggest thing is that dark areas show a lot of blocking and that is what bothers me the most.
Here is the german video untouched for example
[Attachment 61314 - Click to enlarge]
This is the french video
[Attachment 61315 - Click to enlarge]
And this is the best I have managed so far to make it look right
[Attachment 61316 - Click to enlarge]
So I would like it know if there is any way to fully restore the picture to what it should be because I have been trying for days and can't make it look exactly the same and I would like to know if it actually is possible to do so. Thanks!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 26 of 26
Thread
-
-
iirc Davinci Resolve has some "Shot Match to This Clip" option have you tried that?
If using Avisynth ColourLike (http://forum.doom9.org/showthread.php?t=96308) might be interessting.users currently on my ignore list: deadrats, Stears555 -
Using AviSynth, I had good results "matching" videos from different sources using GamMatch:
https://forum.doom9.org/showthread.php?p=1846777#post1846777 -
-
Last edited by WWEF; 17th Oct 2021 at 15:03.
-
Yes, and another option is MatchHistogram , which has both avisynth and vapoursynth implementations
-
https://youtu.be/C4PyyQoz6eo . This video without the QTGMC part should help you.
As for the encoding, you should use virtualdub2 -
-
and last candidate is http://avisynth.nl/index.php/HistogramAdjust
-
colourlike is an older plugin and nobody made a x64 version. You can use it with x86 avisynth, or you can use it with mp_pipeline (avisynth x64 host that can run x86 plugins and processes). It's a bit complicated and requires 3 passes (1st pass each for the source and reference to write their histograms to a text file, and a final pass for output) . It requires YV12 , so I cropped 1 line from bottom. (Why did upload a 3840x1776 screenshot instead of 1920x1080 ???) . It wasn't as close to the "French" reference, and there are not really any settings to tweak for a single image
MatchHistogram is less complicated, doesn't require multiple passes or writing text files, and has a smoothing setting you can adjust where the interpolation of the histogram values can be smoothed more or less (more or less transition zones). It was the closest to the reference out of these 3
GamMatch should work, post your script if you want to debug it. But it adjusts channel min and max, and average - the values in the middle are not adjusted as much, so it's less likely to match. You might be able to tweak some settings to get it to match more, I didn't play with it too much
Here are previews on that single image with default settings (not necessarily reflective of what you get in other sections of actual video)
In all cases, whenever you "brighten" a source, you usually reveal compression artifacts, blocking and increase posterization - what jagabo mentioned earlier - so you might want to apply other filtering -
Yeah, I didn't realize it was 3840x1776 either before I posted them. I took a screenshot with madvr but I hadn't maximized the window to fullscreen and thats probably why. I am also using a 4K display, hence why the resolution is what it is. Thanks for this response though, very thorough. As long as the result is very close does it matter if it isn't the exact same? Even if it has a few imperfections?
-
For me, I would question if "matching" the French version is the right thing to do in the first place. You could just correct it normally however you want
If you want to use one of these, e.g. MatchHistogram -
I would check other sections to make sure. Because it's close on 1 frame doesn't mean it will be close on other sections. You can preview scripts in megui or staxrip (or other tools like vdub2 , avspmod, or media players like mpchc)
You would edit the avisynth script that megui or staxrip generated for you , basically copy and paste the lines, edit the paths, change the source filters for the reference and your clip
If you put the .dll in the appropriate plugins directory it will autoload, or you can use LoadPlugin explicitly in the script
http://avisynth.nl/index.php/MatchHistogram
Because I used an image that you uploaded, not a video, I had to change the source filter, and convert to YUV
Code:ref=ImageSource("PATH\00013.m2ts_snapshot_11.26_[2021.10.16_21.58.35]_french.png").ConvertToYV24(matrix="rec709") clip=ImageSource("PATH\New folder (135)\00001.m2ts_snapshot_11.26_[2021.10.16_21.58.40]_german.png").ConvertToYV24(matrix="rec709") MatchHistogram(clip, ref, y=true, u=true, v=true)
But yours might look something like this , it should already be in YV12
Code:ref=LWLibavVideoSource("PATH\00013.m2ts") clip=LWLibavVideoSource("PATH\00001.m2ts") MatchHistogram(clip, ref, y=true, u=true, v=true)
If you post the script, and what error messages (if any), or a log file someone can help you out . Or if you're using vapoursynth in staxrip, it's a bit different but I can help you out there too, you just have to provide some info -
Ok so, if I want to try some filter with virtualdub2 how do I import them? I tried putting the dll files in the plugins folders and the plugins folder of AviSynth and they don't show up in vd2. Also for debanding I've seen that there's Gradfun, flash3k and vsplacebo for vapoursynth. Any suggestions for those?
-
vdub2 can only use vdub/vdub2 filters directly
You can open avs or vpy scripts in vdub2, but the avs or vpy filters are applied in the scripts, not vdub2 . I would add the filters to your script
vdub2 might have some debanding filters, I don't recall -
-
Most debanding and dithering algorithms are really a form of "noise" . You're basically adding grain in a "smarter" fashion . But this means you wiill need higher bitrate to retain the dither and noise.
The preview that you "see" is a lossless preview.
But when you add lossy encoding into the mix , often much of the noise is smoothed away , so it's important to preview some sections of test encodes as well using your target encode settings. If you use insufficient bitrates to retain the dither, it will cause more problems - banding and splotchy patterns
f3kdb tends to be the "noisest" using default settings of the common debanding filters, but it tends to remain better after lossy encoding. That also means it consumes more bitrate when using qp or crf encoding -
I use crf 13 and the appropriate settings for x264 encoding. For this video this is what I managed to do so far.
This is the german video and the adjustments I made without debanding (its uncompressed avi, hence why its so big)
https://drive.google.com/file/d/19frI3aTYdHFu6AE0J9ELq8pu-_0fiyvG/view
And this is after I used Flash3k a little
https://drive.google.com/file/d/1DnJtmKOC0OMUvyhdkw-5URRVkFYdn1Z9/view
Similar Threads
-
Any tips on brightening background star fields?
By JoelHruska in forum Newbie / General discussionsReplies: 4Last Post: 21st Aug 2021, 00:55 -
opinion please on tenlab/sign video/data video tbc/ace video
By victoriabears in forum RestorationReplies: 8Last Post: 1st Aug 2019, 04:52 -
AviSynth - Layer - Fadeout darkened
By bebetoalves in forum EditingReplies: 2Last Post: 28th Feb 2018, 20:09 -
Brightening the video image?
By killerteengohan in forum RestorationReplies: 23Last Post: 20th Feb 2017, 20:10 -
How to add this type of "glow" effect? (example, the ki attacks in DBZ)
By rocco123 in forum EditingReplies: 6Last Post: 1st Dec 2016, 12:13