views:

3807

answers:

6

Hi! I wish to download a video from YouTube and then extract its audio. Can anyone point me to some C# code to download a video? Thanks!

UPDATE: For clarification purposes, I already know how to extract audio from a .FLV file like these. Thanks!

+1  A: 

Try this: http://www.codeproject.com/KB/IP/MyDownloader.aspx

Joe
Will try... Thanks!
Maxim Zaslavsky
+6  A: 

Hi

I referred to these links once. I hope they help.

http://www.codeproject.com/KB/IP/MyDownloader.aspx

http://pastebin.com/f396257b6

The code put up in the first link seems more generic as it supports download of both youtube and google videos.

cheers

Andriyev
Im looking at the first link - it's very cool! I'm going to try that and will report back!
Maxim Zaslavsky
pastebin: Unknown paste ID, it may have expired or been deleted!
Mark
A: 

With some tool can help you. A tool named YouTube Downloader,it can download youtube video,and convert youtube video to mp3,mp4,avi,wmv,etc.It worth to using.

Have a try.

+1  A: 

How about this: http://ivolo.mit.edu/post/Download-YouTube-Videos-using-C.aspx

Ilya
A: 

To all interested:

The "Coding for fun" book's chapter 4 "InnerTube: Download, Convert, and Sync YouTube Videos" deals with the topic. The code and discussion are at http://www.c4fbook.com/InnerTube.

[PLEASE BEWARE] While the overall concepts are valid some years after the publication, non-documented details of the youtube internals the project relies on can have changed (see the comment at the bottom of the page behind the second link).

mlvljr