I was filming a wedding and the florist had put led lights along the wall pointing upwards causing a flicker on the recording. Is there a way to reduce it so that it is less annoying? I tried using reduce interlace flicker but it didn't help. I was filming at 1920x1080 60i. Thanks
Paul
The "reduce interlace flicker" is designed for a different problem and won't do anything at all for your situation.
If you post a few seconds of the original footage on a site where I can download it (Mediafire, Dropbox, YouSendIt, etc.), I may be able to suggest something. There are various "deflicker" plugins for both VirtualDub and AVISynth that are designed to average exposure over several frames, and then apply gamma adjustments over a local range of frames so that they all have the same exposure.
However, some types of flicker are actually within the frame itself and are exceedingly difficult to reduce. I restore media as part of my hobby/work, and am particularly proud of the technology I developed to remove noise bars that resulted from filming a CRT screen with a movie camera. I have not seen this particular type of restoration done anywhere else. Many types of flicker, including possibly what you experienced with the LED lights, are caused by the lack of synchronization between the "stroboscopic" nature of the lighting source and the shutter speed on the recording device. Here's the example of what I was able to achieve with the homemade Kinescope (I've posted this here before):
Here is the doom9.org thread that I started where, with the help of an amazing forum member, I was able to produce the technology that solved the problem. I used a combination of his "discovery" metrics, with my own script, and then fed everything into Vegas where I used Vegas' compositing to actually change the exposure within each frame.
Ah, that is a very interesting challenge. If I had a little more time I'd tackle it today, but at least I can tell you how you can fix it.
It might be possible to use the same technique I used for that football game, but limited via masking to just the two places affected by the flicker. However, with the speaker moving back and forth, that masking would get to be quite laborious because it would have to be keyframed.
A somewhat easier solution, which is made possible by the fact that you have the camera locked down, is to simply substitute a static background (which will remove the people moving around in the background shadows). Vegas lets you do this with a nifty trick called "difference masking." You can search this forum for that term, but you can also go directly to this wonderful tutorial created by forum member "FrigidNDEditing" (a.k.a., Dave Hadden):
The one sentence version of what this technique does is that it lets you do a green screen, but using an unchanging, static background as the green screen. If nothing changes in the background, then let the background show through. Otherwise, let the foreground show through.
If you happen to have the entire background before the speaker steps in front of the microphone then you are 95% of the way to having the problem fixed. What you do is take a frame grab of the entire background and then, if needed, Photoshop it so you get exactly the exposure you want on the two areas that are flickering. You then follow the tutorial and you will be left with the static background with the speaker in front.
However, you will have to do one other thing. The tutorial is designed for a background that never changes and, of course, your problem is that there are two areas that are changing. This is where it will get tricky because you'll need to make a second composite that looks for chroma differences. You are fortunate because the speaker is wearing black & white, and his skin is quite red whereas the two bad colored areas are very strong colors that do not appear on him.
Here's a link to something I did many years ago where someone asked me to composite him into the "American Idol" set. I've posted this before. He sent me footage taken in front of a wall in his house, and he just started the camera, walked into the scene and did his shtick. I used a still photo of the American Idol set as the background. Right-click and "save as." Then play the file.
I had a few minutes and decided to simply apply some AVISynth filtering. I was able to completely eliminate the flickering in the center, and somewhat reduced the other flickering.
One side effect of this filtering is that it removes the considerable noise that is present in your video. There is a very slight loss of resolution around the microphone windscreen, but that is about the only downside. At first I thought it was filtering details from his face, but I then recognized that most of what I thought was detail was actually noise.
That looks really good John, thanks! I assume it will work just as well if the subject is walking around. I've never used AVISynth before so It looks like I'll need to learn it.
Paul
I removed the YouTube before/after comparison because either YouTube or the Vegas MP4 encoding ended up reducing the flicker somewhat on the "before."
Here is a revised version of the AVISynth code I used. This actually works somewhat better and actually almost completely eliminates the residual flicker on the left side of the clip.
If you use the multi-threaded version of AVISynth, you can remove the "#" comment from the two "SetMTMode()" lines and the script will run about five times faster.
#Modify this line to point to your video file
#setMTMode(5,0)
source=AVISource("E:\fs.avi").ConvertToYV12(interlaced=true).killaudio().AssumeTFF()
#setMTMode(2)
output=MDegrain2i2(source,8,0,1) #The DCT=1 setting really helps nail the flicker
return output
#-------------------------------
function MDegrain2i2(clip source, int "blksize", int "overlap", int "dct")
{
overlap=default(overlap,0) # overlap value (0 to 4 for blksize=8)
dct=default(dct,0) # use dct=1 for clip with light flicker
I edited my earlier post where I posted the deflickered result. The newer version is a high-def AVCHD file, rendered directly from Vegas. It uses exactly the AVISynth script that I just posted above. I wanted everything to be consistent from one post to the next. I hope that doesn't confuse too many people.
The deflickered version looks pretty good.
I did take a brief look at the demo of that software from the makers of Twixtor. It is primarily aimed at reducing flicker in timelapse video, but it should work on this as well. If they have a trial, you might download it and see how it works.
The "Deflicker" plugin for VirtualDub wasn't able to do anything to improve your clip.