Compositing black pixels to transparent
After your last node in the scene compositor, try adding a Chroma Key node (find it under Matte, Chroma Key). Set the Key color to black and play around with the rest of the settings.