Log in

View Full Version : Film Degrain and video Noise Removal


nfv
2nd November 2014, 23:59
Greetings

the following clip is from a film transfer to 3/4 umatic tape of which I then captured

http://www.mediafire.com/download/c20p73o8be5ci78/clip.avi

so I want it progressive and to remove film grain as film was already grainy but when they transferred film they turned up enhancement to much, which made picture even more grainy and also causes some odd video noise in the picture, sorta of a pattern which can been seen in blacks the most

I was using the following script

AVISource("c:\clip.avi")
AssumeBFF
QTGMC()
SelectEven()
TDecimate()

I used that to make it 23.976

if I use this method field matching
TFM()
TDecimate()

it leaves alot of noise in the pic and aliasing

does it matter? if i use QTGMC or Field Matching?

then to remove spots
RemoveSpotsMC3X(0)

the reason I listed it out like the above is I am explaining the way to make picture as clean as possible and then after above script what I would like suggestions to now remove grain and video noise I described above

many thanks

J:thanks:

creaothceann
3rd November 2014, 01:20
You could try this:

AVISource(...).AssumeBFF
QTGMC(FPSDivisor=2)
TemporalDegrain

Preferably multi-threaded :)

EDIT: Although TFM.TDecimate.TemporalDegrain looks better

nfv
3rd November 2014, 02:08
You could try this:

AVISource(...).AssumeBFF
QTGMC(FPSDivisor=2)
TemporalDegrain

Preferably multi-threaded :)

EDIT: Although TFM.TDecimate.TemporalDegrain looks better

thanks

will give both of those a try and report back :)

J

nfv
4th November 2014, 00:12
You could try this:

AVISource(...).AssumeBFF
QTGMC(FPSDivisor=2)
TemporalDegrain

Preferably multi-threaded :)

EDIT: Although TFM.TDecimate.TemporalDegrain looks better

ok...I gave it a try both ways you suggested and.....

the walls were the grain was now looks like they are alive and crawling with bugs...any way to make them smoother and not have so much movement in them?

many thanks

J

johnmeyer
4th November 2014, 01:10
First of all,
tfm()
tdecimate()seems to work perfectly on your clip.

I tried using your QTGMC code, and it took 8x longer and produced virtually identical results. I don't know why you had problems with the simple tfm/tdecimate code, but it worked perfectly on your clip when I tried it.

Here is the result I got when I used my version of VideoFred's film restoration script.

Grain Reduced Clip (http://www.mediafire.com/watch/d7gtn8zxiqw6xb0/Fixed.avi)

I turned all the sharpening parameters down to almost nothing, because the last thing the clip needs is sharpening. I then used block size of 16 for MDegrain, with an overlap of 4, and used the two-step degraining (which is hard-wired into my version of Fred's script, but which you can find in the MVTools2 documentation).

I think you will find the grain remarkably reduced. Of course there is some inevitable correlation in the resulting reduced grain, and you may not like this, but that is going to happen with just about any solution you come up with.

[edit]Make sure you download and then play the clip. I just clicked on the link to test it, and on my computer the "streaming" playback does not look the same as when you play the original on your computer using a decent media player.

nfv
4th November 2014, 03:10
my questions concerning making clip to 23.976 is what is more efficient to use QTGMC as it de-interlaces the 2 interlaced frames or use the TFM which matches the fieldsI

I will download your clip and look at it, could I see the script you used for this clip?

thanks

J

johnmeyer
4th November 2014, 04:24
my questions concerning making clip to 23.976 is what is more efficient to use QTGMC as it de-interlaces the 2 interlaced frames or use the TFM which matches the fieldsI1. QTGMC is very slow, so not efficient.

2. This material is not interlaced, at least not in the usual sense because there is no temporal difference between most fields. So, QTGMC is, IMHO, the wrong tool for the job. TFM/TDecimate was designed specifically for this purpose and is the correct tool to use.

nfv
4th November 2014, 09:05
First of all,
tfm()
tdecimate()seems to work perfectly on your clip.

I tried using your QTGMC code, and it took 8x longer and produced virtually identical results. I don't know why you had problems with the simple tfm/tdecimate code, but it worked perfectly on your clip when I tried it.

Here is the result I got when I used my version of VideoFred's film restoration script.

Grain Reduced Clip (http://www.mediafire.com/watch/d7gtn8zxiqw6xb0/Fixed.avi)

I turned all the sharpening parameters down to almost nothing, because the last thing the clip needs is sharpening. I then used block size of 16 for MDegrain, with an overlap of 4, and used the two-step degraining (which is hard-wired into my version of Fred's script, but which you can find in the MVTools2 documentation).

I think you will find the grain remarkably reduced. Of course there is some inevitable correlation in the resulting reduced grain, and you may not like this, but that is going to happen with just about any solution you come up with.

[edit]Make sure you download and then play the clip. I just clicked on the link to test it, and on my computer the "streaming" playback does not look the same as when you play the original on your computer using a decent media player.

ok I downloaded your "fix" and first thing I noticed was a color burst that came and went? and didn't think grain removal was very significant.

Any other takers?

johnmeyer
4th November 2014, 16:34
ok I downloaded your "fix" and first thing I noticed was a color burst that came and went? and didn't think grain removal was very significant.

Any other takers?After I read your post, I played the fixed clip on three different computers, all with different media players. I don't see any color whatsoever, and definitely no "burst." I then played it frame-by-frame in VirtualDub and saw no variation whatsoever in exposure, and no hint of color anywhere.

I think you may have some issues with your computer setup, or perhaps you accidentally played something other than the clip you downloaded from my link above.

As for the grain removal not being significant, that isn't true either. It is true that there is still grain, but the reduction is most definitely significant. I played the original side-by-side with the modified clip that I posted, and the difference is quite large.

If your goal is to remove all grain, you are going to be disappointed because any technique that succeeds in removing ALL grain will also introduce a huge number of artifacts, and will ruin detail.

Restoration is about reducing artifacts without introducing new problems.

Good luck with your project.

feisty2
4th November 2014, 16:43
If your goal is to remove all grain, you are going to be disappointed because any technique that succeeds in removing ALL grain will also introduce a huge number of artifacts, and will ruin detail.

Restoration is about reducing artifacts without introducing new problems.

Good luck with your project.

bm3d/bm4d algorithm can remove all grain without bringing artifacts, but still will ruin details

johnmeyer
4th November 2014, 16:49
bm3d/bm4d algorithm can remove all grain without bringing artifacts, but still will ruin detailsYup, that's right.

johnmeyer
4th November 2014, 16:57
For those who want to see the difference, here is a still shot of the before/after. What this doesn't show, which is far more significant, is the reduction in the movement of the grain. The smaller and softer grain is no longer as "busy" and therefore less distracting. Note also that you can more easily see the contours on her face, and that the switch on the wall behind her head is more prominent.

http://i177.photobucket.com/albums/w208/johnmeyer/Before-After_zps0b36e733.jpg

nfv
4th November 2014, 19:41
bm3d/bm4d algorithm can remove all grain without bringing artifacts, but still will ruin details

could you please give me example of using the above method?

thanks

J

nfv
4th November 2014, 19:48
After I read your post, I played the fixed clip on three different computers, all with different media players. I don't see any color whatsoever, and definitely no "burst." I then played it frame-by-frame in VirtualDub and saw no variation whatsoever in exposure, and no hint of color anywhere.

I think you may have some issues with your computer setup, or perhaps you accidentally played something other than the clip you downloaded from my link above.

As for the grain removal not being significant, that isn't true either. It is true that there is still grain, but the reduction is most definitely significant. I played the original side-by-side with the modified clip that I posted, and the difference is quite large.

If your goal is to remove all grain, you are going to be disappointed because any technique that succeeds in removing ALL grain will also introduce a huge number of artifacts, and will ruin detail.

Restoration is about reducing artifacts without introducing new problems.

Good luck with your project.

the clip does have color burst, that comes and goes its green then b&w, I can even see it on my vectorscope

I understand that reducing grain/noise will take away detail, but that is the sacrifice you make. I would rather have a nice smooth picture that is a tad soft then a super grainy pic

J