![]() |
Flickering colours on VHS tape?
1 Attachment(s)
Is there anything I can do to fix the flickering going on in this clip?
|
An unprocessed sample would be better. This one was converted to RGB at some stage, so the true chroma channels can't be examined.
My thinking would be that heavy temporal noise reduction on the chroma should even out the flickering more, but if it does work you'd have to live with the chroma trailing artifacts that result. |
1 Attachment(s)
Attached the unprocessed version.
|
I could be wrong, but it looks like this one went through an RGB intermediate stage too. If you don't mind, please briefly list the workflow used to create this file from VCR all the way to final AVI. Or if it's too much trouble, hopefully someone else has some ideas.
|
The tape was inserted into a Panasonic NV-HS1000.
The video signal then passed through an S-Video cable to a TBC-1000. Then through another S-Video cable to a Hauppauge USB-Live2. Into a PC, where it was captured as a YUY2 Lagarith AVI file in VirtualDub. What do you mean it looks like it went through an RGB intermediate stage? I threw VirtualDub's default temporal smoother at it, and it definitely improves things if I crank it up enough. Not sure what 'chroma trailing artefacts' are, so I'm not sure at what point it starts to look bad (I can only play it at one or two frames per second, too, which doesn't help). There is a point at which the outline of the Mitsubishi logo starts showing through the channel 7 logo before the cut, so I've kept it below that line, but other than that... |
1 Attachment(s)
Quote:
This looks like a multigenerational tape. Whether it is or not, the tape has been abused and/or improperly stored in heated, humid conditions. The "flicker" (which is not really what it is) is a sign that the oxide layer is separating from the adhesive that holds it onto the mylar. The flood of rips and dropouts are one sign of that damage. This could be improper storage or it could be tape that was damaged during play -- literally, it isn't making solid contact against the video heads. I've seen this so many times it's deja vu from so many old damaged family tapes. You can throw filters at it forever without getting very far, or throw filters at it until you don't have much video loft to watch. You can only do the best you can with temporal smoothers which don't work so well with interlaced video, so use smoothers designed for interlaced source. If you use strong temporal smoothers later in the video when there is motion, you'll soon learn what "chroma trailing artifacts" look like. Some shortcomings are evident in the capture stage. Colors are clipped above y=16 and the original is seriously over saturated. Sometimes a video is so badly damaged you just have to do the best you can and live with it. We've all been there. I made a trial run by deinterlacing, shifting chroma around, applying motion smoothers, etc., and reinterlacing. But later parts of the video are bound to suffer from so much filtering. Avisynth and the captured colorspace were required for the attached mp4. Others could get different results and use different methods, |
3 Attachment(s)
Quote:
YUY2 source, UtoY(): Attachment 6590 ConvertToRGB().ConvertToYUY2().UtoY() Attachment 6591 Unprocessed.avi, UtoY() Attachment 6592 Maybe instead caused by cranking up sharpness on the Hauppauge proc amp settings? Dunno. But it's somewhere on the digital side of things, not the analog side. |
msgohan: some good insight into facets of RGB conversions I've not considered.
How the original sample came to be so saturated or sharpened I can't know. But I doubt the player is doing it on its own. Half the noise level faded when I lowered saturation about 40%. I know that some users pump saturation and.or sharpness to compensate for old and faded tape, but it's usually overdone. But I'm just guessing. Perhaps koberulz can give more info about this tape's history. |
Quote:
Quote:
Quote:
Quote:
Quote:
The tape isn't mine, and in fact has existed longer than I have, so I can't help you with its history. |
The original "flickering" looked like chroma noise from reusing a tape, where the recorder lacked flying erase heads.
The next "unprocessed", however, show it to be just plain chroma noise. Nothing special, nothing to do with reuse. This is why it's important to always give unprocessed video, when showing samples. Sometimes attempts to fix it can muddy the situation. And in this case, make repair harder. - The 1st issue would have been hard, while the 2nd really is not. - The 1st issue is repaired best by temporal chroma NR in Avisynth and/or VirtualDub, while the 2nd is best fixed with VirtualDub CCD. There's also a lot of chroma offset, and Avisynth is needed for that. (Best method, at least. CCD can somewhat hide it, but not entirely.) Color being clipped or not clipped is probably the source or the tape, not the conversion method. Or both. Or all of the above. VHS is crummy. It can be made better, of course. But I use my eyes, not meters and graphs. In this short sample, I'm not willing to adjust colors. It's fine. I don't have an issue with the chroma edges. I don't see halos. |
So what am I doing that's making it worse? I've already got CCD in the VirtualDub chain that produced the first sample. It definitely looks worse than with VDub's default temporal smoother added (which gets me in the ballpark of sanlyn's sample).
I've used flaXen's VHS filter in VirtualDub to handle the chroma shift. What's the reason for preferring AviSynth? |
Not sure.
I can't open your files in VirtualDub. Is that Lagarith, and not Huffyuv? On my current video system, to appease the codec gods, I've not installed anything that I don't use. I'd need a Huffyuv conversion. |
2 Attachment(s)
I can't open HuffYUV in Premiere, so I always use Lagarith.
|
1 Attachment(s)
I have no issues with Premiere. The fix to install both x86 and x64 together was discussed in another thread.
See here: http://www.digitalfaq.com/forum/vide...html#post44169 This was an easy problem. :) See attached. I could have tweaked it more, but this is mostly just proof of concept. - Avisynth offset fix (Flaxen is lousy) - Avisynth CNR - VirtualDub CCD - VirtualDub Chroma NR - VirtualDub CCD again I also added a stabmod() and my script to remove most tracking/dropout issues. This last one is a bit hard to explain, not ready to do it yet. Even on Skylake CPU, these drag it down to 4fps, so not for weak systems! See clip attached. MP4 @ 15mbps, AVI not needed, huge. You're right, CCD was not enough. So it may still be an erase head issue. |
Quote:
Quote:
What are you achieving by running CCD either side of Chroma NR in VDub? What's lousy about Flaxen? Quote:
|
Very nice work LS, but the chroma does trail into the shot change over 4 frames before disappearing on the 5th. We need a sample from koberulez with real motion to see how much artifact balancing is truly required.
Quote:
I don't know whether this makes things any more clear, but the first test pattern in each "VHPatterns2" column in this thread includes a patch for checking chroma resolution (on the bottom, particularly the one labelled "1.5"). If you look at the greyscale chroma view, you can see how blurry even the best capture devices that I've used are, as compared with the super-sharp chroma edges found on your capture. (I discovered that the DVD player I used is partly at fault for reducing the chroma res, but that's another story: most of the capture devices can't even keep up with the reduced level put out by this player, and DVD has much higher chroma bandwidth than VHS. VHS captures "should" always have blurry chroma.) Quote:
These added chroma edges from roundtrip conversion are invisible when actually watching content. The only reason I brought it up was because the added conversions hinder analysis and possibly processing. Had you guys responded with filtering suggestions first I'd have kept my mouth shut and left it to the restoration experts. :P |
Quote:
That video has certainly been around a few neighborhoods, at least one of which was digital, and looks as if it went from tape to digital and back to tape, then maybe sat in the sun on someone's window sill or in an auto's trunk for a few summers. I echo the requests, what else is on this tape? Is it a TV show? Are there people, animals, cars, motion, what? |
Not sure how helpful a motion sample will be; quality is all over the place between the opening graphics package, the in-studio introduction, and then even each individual camera angle through the game. I was fiddling with the chroma shift earlier to get the Mitsubishi logo right, and now it's completely out of whack during the main program.
So this one's a serious case of multiple combined restoration efforts being required, and as such posting a clip from the game itself probably isn't helpful with resolving a graphics issue. All the motion there, and the general lack of any graphics at all, should mask the chroma noise a bit anyway meaning lower settings can be got away with in order to preserve everything else. In any event, I can't put together samples right at this moment. EDIT: sanlyn posted while I was typing. It's a basketball game from 1985. |
Quote:
|
lordsmurf, I'm trying to download your AviSynth filters pack from the guide thread, but it's failed twice. Is there an issue with it, or is the problem at my end?
|
1 Attachment(s)
Avisynth:
Code:
AVISource("d:\UnprocessedHuff.avi")The dropout/tracking fix must wait until later. It's slow and unstable. If you have the newest Skylake CPU, I can look to add it. If not, don't bother, it will crash. This is clearly some sort of nth gen madness going on. I'd need to see the whole tape to know what's going on. It cold be reuse, bad analog editing, etc. There's to many variables without physically seeing the tape, or at least the full video. And no, I really don't want to see the whole video, please don't try to upload it. Post the link of the download page where you're trying to download the filter pack. ;) BTW, my video system is busy right now, can't really do anything else. I did the above test clip between tasks. CNR is the name of an Avisynth filter. @msgohan: The chroma leaking across frames is there, yes, slightly. Like I said, proof of concept, it still needs some tweaking. Having 2-3 frames of chroma blend is going to be the best you can do here. CNR was set to wide mode, and that is probably why. |
I've never even heard of a Skylake CPU.
By way of providing data points: the reason I capped on my Panasonic rather than my Philips is I had really bad tearing on the latter. The chroma shift was also significantly worse. What would physically seeing the tape tell you? Filter pack is attached to the last post here: http://www.digitalfaq.com/forum/news...-avisynth.html |
Quote:
Here is a copy of the download link (left-click on the link): http://www.digitalfaq.com/forum/atta...isynth-plugins Download the RAR to a separate folder, not to the Avisynth plugin folder. If you get an error message, what does it say? |
It was just failing in the web browser. That link worked though.
lordsmurf, could you clarify the HuffYUV vs Lagarith and HuffYUV installation thing? |
I use Lagarith for many of my working files saved as YV12, which huffyuv doesn't support. I don't use Premiere. But I've had no problem with huffyuv in Adobe AfterEffects. That's Adobe for you.
Quote:
Quote:
|
VDub gives an error regarding Camcorder Color Denoiser 1.7 when I try to load the VCF file: no such filter loaded. The one in my filter chain is a Camcorder color denoise 1.6. Am I using an older version of the same filter, or are they different things?
|
newest ccd here (left click): http://www.infognition.com/cgi/getfilter?id=220
Not very effective in this case, however. Best to work in the original YUV before trying RGB. Many more VDub filters here: http://www.infognition.com/VirtualDubFilters/ But watch out for the VirtualDub Filter Pack on this page. Many in the pack aren't updated. |
4 Attachment(s)
lordsmurf, I assume CNR is CNR2? You didn't give that in your AVS script, but you mentioned it when describing your workflow.
Attached HuffYUV samples from the pre-game intro video, the game itself, and a studio segment. EDIT: Installed that plugin, still getting the error. EDIT 2: It helps to put things in the right folder. Can now load the VCF. EDIT 3: Can't see the issue pointed out by msgohan, but on the Intro clip the red jacket on the guy who does a layup just before the titles come up sticks around way too long. Unchecking 'wide' under V on CNR in VirtualDub helps but doesn't completely eliminate the issue, removing CNR from the filter chain completely does. |
Quote:
Thanks for the samples. Apparanetly processed previously by a couple of dudes who spent days in a closed room with their hookah pipes loaded with crystal meth, conducting their own video Demolition Derby. What a shame. Well, we can give a try later. But the vids are pretty well borked. AMybe the default settings for your capture device aren't optimum, but I wouldn't know what to set for. Try saturation for beginners. |
I was a little too quick on my conclusions about that red jacket; it was visible a little even in the AVS file. So I dropped un and vn in CNR2 to 35 from the default 47, and it disappeared. Re-enabling CNR in VDub brings it back though. I'm not sure how to fiddle with those settings, other than checking and unchecking 'wide'. There's an explanation of the X and Y axes in the settings for it, but I don't understand what they mean.
What leads you to the conclusion that it's been processed? |
1 Attachment(s)
What you can do is load the other filter (Chroma Noise Reduction) by itself using the revised .vcf file attached below. Then load two copies of your own CCD filter. Set one CCD filter for a strength of 50, set the other for a strength of 30. You can chain multiple copies of the same VDUb filters together.
A .vcf file is a plain text file. You can open it with Notepad to see what it's doing. You can make changes, but NEVER overwrite the original. Save the changes as a new .vcf with a different name. Quote:
Quote:
|
Did you miss my earlier edit? I was putting the plugin into the wrong folder because sometimes I'm an idiot.
What would capturing with lower saturation do that lowering saturation in software won't? What's actually wrong with the saturation? |
Quote:
Quote:
|
A bad VCR and unsuitable storage conditions seem more likely than processing.
I mean, yes, it looks awful. I know enough to be able to tell that (as do people with far less knowledge and experience than me, probably). It's the conclusion that it was processed that I don't really understand. I just looked at it and figured that's what a crappy 80s tape looks like. Apart from the horribly red ground-level cameras, which I'm guessing is an issue with the camera settings and nothing to do with the tape at all. Going through in Premiere and cutting it up to use a different AVI for each angle has been tremendous fun, particularly when they add replay wipes. *sigh* Quote:
|
Skylake aka i7-6700K: https://www.amazon.com/Intel-Unlocke.../dp/B012M8LXQW
Also: http://www.newegg.com/Product/Produc...82E16819117559 Still the current CPU, 1 year later! It really is that good. :) I see the Avisynth post: http://www.digitalfaq.com/forum/news...html#post43574 The name was "lordsmurf's Avisynth". But the forum broke the name. Not sure if it's also screwing up the downloading. So I just deleted it, re-added it as "lordsmurf Avisynth". I've probably added some stuff in the last 6 months. Need to give that thread attention again, new beta download. BTW, that Avisynth guide is being co-developed with the new glossary, as there's much overlap. I always start with my current multiscript, and delete unneeded lines to post it. I must have deleted the CNR2 line? Code:
Cnr2("xoo",4,2,64) # remove chroma banding noise, wide UV settingWide for VirtualDub CNR increases the temporal axis. (I don't use it much, so want to double-check that statement.) Removing it reduces both negative and positive effects. You can play with other value, but I find that the defaults are often best. If those don't do what's needed, no other settings will either. I'm not at my video system now. |
2 Attachment(s)
Sorry for the delay. Medical stuff today. Phooey.
Quote:
I made a trial run with the studio avi to see what could be salvaged from the wreckage. Attached as "A" below. A test, really, because I have no idea what to do with all the pesky horizontal dropouts and comets without destroying what little remains. It's a hassle to keep the scant detail level of the tape from looking like plastic. I lowered midtones and darks to get a little depth into the image, but this might not work if there's dark sports playback during all the talking. Attachment "B" is my feeble attempt at clearing the dropouts with RemoveSpotsMC3. There's some detail loss but IMO you don't get that much back in return. Now need a brilliant idea for those dropouts. And why is that emblem in the upper right so much noisier than the rest of the frame? I had to use two steps (two separate scripts and two intermediate files) to get the "A" results. I can clean up the messy scripts and post later if you want. |
1 Attachment(s)
Quote:
The colors are illegal still, as I only addressed the noise: Attachment 6605 Quote:
Quote:
|
Thanks for the notes.
No, there's no detail. So I added noise (AddGrainC). The red jacket in the image tops out at RGB 244, but is mostly around RGB 220-230. The white shirt hits 244. The jacket is still over saturated and looks neon. Unfortunately if red is curt any further the guy's face turns green, then cyan In short, the core image chroma values were wrecked a long time ago. RED is clipped in YUV. More tweaking in RGB obviously due, but you can only go so far with thin data and clipped colors. Are those image from the original? The mp4's have a red jacket under RGB 200 and the shirt collar is white, not cyan. |
1 Attachment(s)
Quote:
Quote:
Even the AviSynth wiki - which still requires you to actually know what you're looking for to a large degree - is pretty light on explanations for the most part. Quote:
I'm putting together an MP4 of the entire opening sequence, just to give you an idea of how it all works. I'm basically just grabbing the first and last few seconds of each segment, but to catch everything and show the sequence it still needs to be way too long to post as an AVI. There's nothing in it that's not in the already-posted AVI files though. Quote:
Quote:
I did some quick jobs based on MPG files a while back, and I've noticed that I tended to have the brightness too low and the contrast too high, because I was going in with a nooby 'make the blacks black and the whites white' mindset (and didn't have the color correction or noise removal skills to make almost-white areas less oddly-colored without just blowing them out). I had the opportunity to work with one of those in combination with a DVD produced from the original broadcast tapes, and noticed my versions were also significantly more saturated, so presumably there's a similar issue happening in that respect. Quote:
Quote:
Unrelated edit: For some reason the timezone settings don't seem to work. Apparently I made this post at 8:22pm yesterday, when it was in fact 9:22am. Today, obviously. I have it set correctly in my control panel. MP4 attached. |
Quote:
In the last 30 days: - Free Member, daily replies, "please I need help now!" - email, (not) potential customer, "I need a phone conversation, and you need to answer these (25+) questions" ... for a $25 project - PM, "can you restore this MP4?", sure, that would be about $65, "I don't want to pay for it!!!!" Some people are f'ing nuts. :screwy: I seriously cannot click this enough: :screwy: :screwy: :screwy: :screwy: :screwy: :screwy: Quote:
Quote:
Quote:
Some are actually just "work in progress" with no progress. I plan to address that with my Avisynth documentation. Hopefully I can tap others, like sanlyn and msgohan, to help on it. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.