I assume YouTube and Famster are probably using some homebrew software that might rely on open source or 3rd party component for various codecs that are in use today in videos.
Perhaps they are even using the famous and excellent FFmpeg open source project!