Steven M. Schultz wrote: > On Thu, 2 Nov 2006, [ISO-8859-15] Bernhard Fr�hmesser wrote: > >> I have recorded a really old Video from a VHS Tape (recorded about 25 >> years ago). > > With a tape that old I'm almost positive you'll need to do some > color correction. Maybe PAL tapes age differently than NTSC but > my experience has been that tapes more than a few years old need > correction. > >> The video is in really bad condition, and i have been playing around >> with the mjpegtools to improve quality but nothing was really satisfying. > > It also appears that the tape was either damaged OR the VHS deck's > heads scratched the tape.
I am not sure, but i think the tape was used for recordings several times before. >> So far i played around and tested a bit with yuvmedianfilter, yuvdenoise >> y4munsharp. > > sharpening is almost never a good idea with poor quality or noisy > video. The sharpening (edge enhancement) emphasizes the noise and > makes the picture look worse than before. > > medianfiltering the chroma only, then using yuvdenoise with moderately > high thresholds (-t 6,10,10 and perhaps even add -m 4,8,8) will help > with the noise but there's not a lot to be done about the scratches > or lines. Hmm, yeah, this settings help a bit more with noise - cool... >> I have two pictures from the source online, they are available at:... >> You can see black lines (first picture) and white lines (second ... > >> Is it possible to remove or reduce these lines and do an >> overall image improvement for the whole video. > > That type of damage is not "noise" so the tools you've been trying > to use will not be effective. Yes, you could blur the lines out of > existence but that would remove almost all the picture detail as well. > > You're going to need to go frame by frame with something like > Photoshop (or the GIMP?) and fix the damaged area with a small (just > a couple pixels whide) brush/pencil. I think the 'healing' tool in > Photoshop would work well but the 'clone stamp' could do nicely as > well. Probably want to de-interlace the video first though, > dealing with interlaced data in graphic tools is difficult. > > IF the lines are consistently in the same place then it could be > possible to 'automate' the process (I know Photoshop can "record your > actions" and then play them back over a directory of images - maybe > the GIMP can do the same thing?). I don´t know GIMP very good, same for Photoshop. > But dealing with thousands of still frames is a pain, so a 'video > stream' capability would be preferable. Yep, the whole video has more than 150000 Frames and the lines are not always on the same place in the picture(s). So using the GIMP or Photoshop would take ages i think. > Are the lines in the same place during the duration of the movie? If > so then it might be possible to write a program to clone pixels from > a (very) nearby location over the scratch/lines. If you're using > FinalCutPro there is a "clone area" plugin available from Unfortunately the lines are different. Yep, some month ago i read about a programm that does scratch line removal in a video it just copies nearby pixels in a radius which you can set before, i remember it was only for Windows (unfortunately) but i can´t remember the site :-( Since that time i bookmark nearly all that could be usefull :-) Hmm, i have never tested to load files in Final Cut Pro which i have recorded with lavrec, but since it´s MJPEG A it should work. > http://www.cgm-online.com/eiperle/cgm_screenshots_v3_e.html > > scroll down to "CGM clone area" Thanks for the tip, i´ll take a look. > The other idea is video compositing software - something like Shake > > http://www.apple.com/shake/ > > (which I am told is available for linux - but I do not know if the > price is the same as for OSX) > > could probably be programmed to do scratch/line removal. > > OR find someone to write a scratch removal filter for mjpegtools :) Unfortunately i have no programming skills and no time to learn them, and i know ppl who have programming skills but no time for other projects :-( Thanks so far, i´ll play around with it and check the FCP filter. Cheers, BF. > Hmmm, there is some software at Inria > > http://www-sop.inria.fr/odyssee/research/tschumperle-deriche:02d/appliu/ > > that might be useful - but it's basially a library that would need > some wrapper code to interface to a Y4M stream. > > Cheers, > Steven Schultz > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users