PAL/NTSC sync pulse generator

We have a problem with a composite output on one of our products; specifically, the sync structure is defective (the fault is in the silicon). I'm looking for a stand-alone PAL/NTSC sync pulse generator that can be steered by an external V_SYNC or similar. I did think of using an encoder but would like to know if anyone can suggest a more appropriate device.