VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Hi there. I have a video file that I want to take one color out of every frame (red), but I don't want to go into every single frame. Is there an easy way to do this?

    Thank you for your help.
    Rachel

    Quote Quote  
  2. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    Is this from an animation or normal video? If so, what video format?
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  3. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Hi there. Thanks for your help. It is an avi file.
    Quote Quote  
  4. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    Originally Posted by deezin
    Hi there. Thanks for your help. It is an avi file.
    Sorry, avi could be anything. Which codec? (uncomressed, DV, divx, xvid, h.264 etc. ??)

    Most "avi" is highly compressed YV12 so there is little to work with. There are filters that create separation cubes in YCbCr space but this gets highly technical. If this were high quality original generation work, you would have a higher probability of success.
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  5. Color replacement based on hue with an adjustable tolerance would work quite well. I've frequently used Paint Shop Pro to do this kind of thing on a sequence of hundreds of bitmaps using its scripting capability. You'd need a program that can create a sequence of images from the video and recombine them into a video after they've been processed.
    John Miller
    Quote Quote  
  6. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    edDV - I apologize, I have been a designer for 15 years but have never had to work with video. I am using the opensource CamStudio to make video tutorials.

    Hi John...thank you for your response. I have Painter X which is also made by Corel, do you know if I can work on video in Painter X?

    Thanks.
    Quote Quote  
  7. Originally Posted by JohnnyMalaria
    Color replacement based on hue with an adjustable tolerance would work quite well.
    In the sample image you would replace the color with white but what about the general case?
    Quote Quote  
  8. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Hi Jagabo. Every frame's background is white. So in every case, I will want to replace red with white.
    Quote Quote  
  9. deezin - I'm not familiar with Painter X but I've had a quick read about it. It supports scripting and, given its price and purpose, must surely have color replacement tools.

    Looking at your sample, I assume that the red lines are antialiased - i.e., the edges are blended somewhat with the surrounding image. In your case, this means the red lines consist of red and varying blends of red and white. This is why you would probably specify a tolerance for the color replacement and why you'd use the hue. Irrespective of the red/white mix, the hue is always the same. If the images are "pure" (no compressioon, created solely in the digital domain etc), you may not need the tolerance option. If the lines are not antialiased (i.e., they look jagged), then the color replacement is easier since all of the line will be pure red pixels.

    Re scripting - I expect that the software can record a sequence of manual operations so you can repeat them automatically on other images. With Paint Shop Pro, for example, I record a script for one image and then use the software's batch processing option to process multiple files with the same script.
    Quote Quote  
  10. I suspect removing the red lines can be done with AviSynth's Layer/Mask/ColorKeyMask functions. I don't know them well enough to say for sure though.
    Quote Quote  
  11. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Hi there JohnnyMalaria - This is a huge help .... thank you so much. Because of your message, I bought a book on Amazon that explains how to use Painter X scripting. I appreciate all of your help.

    Hi Jagabo. I will look into that software....great!

    Thanks.
    Rachel
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!