I am looking to start work on a new project of mine where I am venturing to areas I haven't had work with. I am looking for a way to have a user upload videos via webcam to the website. I want the user to be able to record there video and have it uploaded to the site without having to use the actual computer to save the video and then upload manually. What is the best language to have this in to utilize the ability to record a video from the site. Similar to youtube video responses but being able to just record it right there onto the site.
Also what type of compression would be the best to use to not severely bog down my servers and storage. The videos need to be able to be viewed by other users at any time as well. Im assuming that would limit the options for compression of the video and so there is only minor if any quality loss.

Thanks for your responses.