To vectorize an image, see potrace for command line vectorization : http://potrace.sourceforge.net/
Or Inkscape (Path −> Trace bitmap) for more arguments and colors.
Rather simple, I have done it on a flame video and it worked like a charm :
Done, the video is now vectorized.