Catalysis of the reaction: procollagen L-proline + 2-oxoglutarate + O2 = procollagen trans-4-hydroxy-L-proline + succinate + CO2.
procollagen-L-proline,2-oxoglutarate:oxygen oxidoreductase (4-hydroxylating) activity