Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Java
i have to make a program for my project i.e. downloading YouTube videos and converting it to different formats. i cant find the right source to study or get my work started! can you please tell me the source where i can learn about downloading a video and converting it, in java or c# so i can start my work....
plz help!
Posted 13-Nov-12 4:20am
Comments
joshrduncan2012 at 13-Nov-12 10:21am
   
Have you tried googling for it?
werfog at 13-Nov-12 10:34am
   
Try to fill in search box in upper right corner of this page with ffmpeg.
I wish you every success.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you can't start it without finding source that does it, that's not programming. You can download a video just like any other file. There's tons of samples on the web for how to download and upload files via a HTTP request. Then, the conversion is more complex, but there's tons of tools you could automate to do that.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The problem is not downloading. The only problem with YouTube is extracting the URI for downloading from the page where you can watch the video. You need to search for the recipe on the Web — the trouble is, youtube.com changes the structure from time to time, so you need to get fresh information, try it out manually, make sure it works right now and then implement it in your code. Make sure it's flexible enough, because you may need to change the algorithm later, so better make it data-driven/rule-driven. The algorithm itself if always trivial: you have a video watching page, then you find some URI or video ID on this page using certain search criteria, extract data on video ID, compose new URI out of this data, and later use this URI for downloading.
 
Downloading: please see my complete and ready-to-use application. It's important feature is the possibility to continue downloading of the partially downloaded resource. Here:
how to download a file from internet[^].
 
For some more information, please see my past answers:
FTP: Download Files[^],
how to download a file from the server in Asp.net 2.0[^],
How to get the data from another site[^],
get specific data from web page[^].
 
Conversion:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].
 
Alternatively:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/[^].
 
All the products listed above are open-source, so, you can either use the applications directly (think System.Process.Start with redirection on StandardOutput/StandardError; you will find the samples on the MSDN help pages on this class), embed the code in your code (think P/Invoke or intermediate C++/CLI mixed-mode library, or JNI) or translate the algorithms in the language you want to use.
 
—SA
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sarvesh Kumar Gupta 228
1 CHill60 200
2 DamithSL 153
3 OriginalGriff 138
4 Sergey Alexandrovich Kryukov 133


Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 13 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid