This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Want to make a program that yanks the audio from youtube videos Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Want to make a program that yanks the audio from youtube videos" Watch "Want to make a program that yanks the audio from youtube videos" New topic
Author

Want to make a program that yanks the audio from youtube videos

jay pike
Greenhorn

Joined: Mar 19, 2013
Posts: 3
Hey guys, I'm new here, first post. ^.^

My background experience is in C. I'm studying computer science in college. I have some basic experience in Java, but the language I know best so far is C. So, on to my query:

I Want to make a program that yanks the audio from youtube and saves it as an MP3 and various other audio formats. Now, you might be thinking this is to advanced for me. I want to jump right into this and have something to work on. If someone could outline an algorithm I could follow, methods I need to implement, etc.. I WILL figure it out. Right now I just don't know where to begin.

Later Ideas I have are making a nice GUI which include playlists to store the downloads in, etc..

Thanks guys!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37890
    
  22
Welcome to the Ranch

How much object‑oriented programming do you know?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7487
    
  18

jay pike wrote:Now, you might be thinking this is to advanced for me. I want to jump right into this and have something to work on...

My advice: DON'T.

Learn the basics first and set your horizons a bit lower. Once you've got the basics under your belt, and can write good, clean Java code, then start experimenting with Sound APIs. I've honestly never tried it, but why not start, for example, with a simple converter or equalizer?

But first of all: read THIS.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
jay pike
Greenhorn

Joined: Mar 19, 2013
Posts: 3
Haha, well I do know some java basics. Knowing C fairly well I have a big head going into it. Yes, the plan is start simple, like you're suggesting. I just want to start simple things that I can implement in what I'm working towards. Thanks for the response, definitely looking into what you posted!
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7487
    
  18

jay pike wrote:Knowing C fairly well I have a big head going into it.

Yes, but Java is NOT C - and I say this as an old C hack who took a year or two to get over the "expectations" myself.

The fact is that knowing C++ (or another OO language) is much more likely to be helpful; otherwise you'll just translate C code into Java - and that is definitely NOT a good way to go.

Winston
jay pike
Greenhorn

Joined: Mar 19, 2013
Posts: 3
Yes, I understand. Mainly what I'm saying is I have a very slight advantage. I know how low-level works which has lead to practices such as paying close attention to boundary conditions, determining how expensive / inexpensive certain methods are etc.. I know C has it's place, but I definitely think C is a great low-level language that does nothing but help when learning higher-level languages such as Java.

P.s. First task at the moment is an audio file format convert that I can hopefully implement into the project.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7487
    
  18

jay pike wrote:Yes, I understand. Mainly what I'm saying is I have a very slight advantage. I know how low-level works which has lead to practices such as paying close attention to boundary conditions, determining how expensive / inexpensive certain methods are etc..

Hey, don't get me wrong, I love C. In fact, I'd say it's the "Java" of low-level languages.

It also has a similar syntax to Java, which helps familiarity.

What neither it, nor any of the things you've outlined above, help with is learning how to write good Java code, because what they are primarily concerned with is efficiency. And efficiency is one of the LAST things you need to concern yourself with when writing Java.

Java is also a memory-managed language, which means that you don't need to worry about destroying objects or freeing memory. It's done for you. Your primary concern, when writing Java, is to ensure that your code is correct; and that is a design measure, not an efficiency one.

Winston
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37890
    
  22
I think that knowing C is a handicap when it comes to learning Java, because you try to squeeze procedural code into an object‑shaped hole.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Want to make a program that yanks the audio from youtube videos
 
Similar Threads
capture a video of a video
FTP Client
Java Socket Programming (Sending Smileys and audio)
SimpleCaptCha Audio Issue
Unblock youtube via java