I have a YouTube uploader written in PHP that uploads a user's video to our YouTube account. It can be seen here:
[url removed, login to view]
Essentially what the script is doing is just sending metadata and re-directing the user's video file to YouTube using the YouTube API. It works with some videos and doesn't work with others. We need this to work with all the popular video codecs.