I was wondering if there is a library or some simple source code to help me download a desired format from a YouTube URL in Java. The formats I want to be able to download the URL in are AVI, MKV, MP4, MPG, 3GP, VCD, SVCD, DVD, FLV, MP3, and WAV. I would also like to select a bit-rate quality and use an open-source encoder so I can change it later.