How to progammatically extract audio mp3 from a youtube video using asp.net c#?

Posted by Zap on Stack Overflow See other posts from Stack Overflow or by Zap
Published on 2010-06-13T15:32:26Z Indexed on 2010/06/13 15:42 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
|

Does anyone have any sample asp.net C# code to extract the audio from a youtube video link and save it as a mp3 file. Someone recommended using wget and ffmpeg which I installed and am trying to shell a command, but get an exception below. Sample code is listed below.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "C:\\Program Files\\GnuWin32\\bin\\wget.exe http://www.youtube.com/get_video?video_id=... | ffmpeg -i - audio.mp3";
proc.Start();

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET