We include this as a 3rd party lib in Freeseer in the lib directory:
<pre>
https://github.com/Freeseer/freeseer/tree/experimental/src/lib/youtube_upload
</pre>

You should reuse this if you need it.

However I suggest instead you reuse the existing upload tool that already provides a wrapper for the youtube_uploader:
<pre>
https://github.com/Freeseer/freeseer/tree/experimental/src/freeseer/tools/youtube_uploader
</pre>

This tool written by a Mitchell a previous UCOSP student provides functions from youtube_uploader and extends it for Freeseer to reuse the metadata in the files produced by Freeseer. So when a file is uploaded it data fills youtube with the details. Specifically the function <b>uploadToYouTube</b> will be most interesting to you.

You might need to extend the existing youtube_uploader if you need more features.