[SOLVED] Cable questions

5.8g 25MW 48CH VTX 600TVL HD CMOS 1/4inch FPV Camera

I have this camera from my QX105 Bat and I have a few questions on its wiring.

There are 4 wires, I know the red and black are power and ground but the other two I am not sure about. I imagine one is for the OSD but that still leaves one unaccounted for.

Also, is there extension cables available for something like this? I am looking to make a mod to power the camera via the CX-30 flight controller but do not want to cut the plug off the camera.