If you haven't changed the capture length on the PS4 (which i think is 15mins by defualt).
Download Share Factory app from PS Store.
View replay (assuming less than 15mins)
Press Share button
Save capture
Use Share factory to edit capture to length that you want.
Then upload edited capture to youtube
Post link