Home Java: playing audio from a youtube video
Reply: 0

Java: playing audio from a youtube video

user878 Published in July 23, 2018, 1:20 pm

I'm thinking about coding a Java applet that would take in the top 100 or so songs, find their samples (music that appears within the songs) off WhoSampled.com and then playing those samples off of YouTube.

My problem is the playing part, let's say I have the URL. What's the best way to deal with that in Java, do you think ripping the audio off and playing the audio from there would be best, or should I try to control a sentient YouTube player.

I'm leaning towards extracting the audio, and this: thread mentions a way to extract that audio, however the code:

  wget http://www.youtube.com/get_video.php?video_id=... 
  ffmpeg -i - audio.mp3

Is not written in Java. How do I, if possible convert this to run in a Java program? Or does anyone know a good way in Java

Thank you for your suggestions.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.516011 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO