Saving The Audio Out Of A YouTube Video
|
I've sure there are lots of ways to do this. Here's one. |
Go to DOWNLOAD YOUTUBE VIDEOS and enter your YouTube URL and click on the Download button. The web site will display the video and show a blue "Download Video" link near the top of the page. Right click on that, and choose "Save Link As". Pick a filename that has an extension of .flv and save. It'll save the YouTube video as a Flash file.
You can then get the audio out and save it as an MP3 file with:
$ ffmpeg -i input.flv -f mp3 -vn -acodec copy output.mp3
(thanks linnerd40).
( Feb 25 2008, 01:00:58 PM PST ) [Listen] Permalink Comments [12]
Recently Read - 25th February 2008
|
Here's a list of the books I've recently read, with an Amazon-style star rating and a few comments. |
- The Moccasin Telegraph - W. P. Kinsella
- The Lone Ranger And Tonto Fistfight in Heaven - Sherman Alexie
Two books containingIndianNative American stories written byIndiansNative Americans. The first is very funny in parts, but overall, they are just variations on a theme and I found them more depressing than enjoyable. The (fairly) high star ratings are because they are well written. They are just not what I really want to read more of. - Jeeves in the Offing - P. G. Wodehouse
- Plum Lucky - Janet Evanovich
If my library didn't have them, there is no way I'd buy these thin expensive hardcover books. But it does, and they are mindlesscandy, so I read them quickly, grumble I'll never read another one because it's the same story over and over again. And around we go again. - The Best of Morecambe & Wise - Eddie Braben
Morecambe and Wise were two of my favorite comedians when I was growing up. (Although rather dated now, there are numerous sketchs of them on YouTube if you are interested). This was a 25c purchase at a recent library book sale. It contains several of their best scripts written by Eddie Braben. - A Man Called Spade - Dashiell Hammett
Book of short mystery and detective stories by Hammett (containing three featuring Sam Spade). - The Glass Menagerie - Tennessee Williams
My on-going effort to educate myself by reading some of the all-time classic plays. - The Crack In Space - Philip K. Dick
One of the lesser known works by Dick. - It Was a Dark And Stormy Night - Ed. Scott Rice
Many of the selections from the first Bulwer-Lytton Fiction Contest. Some very funny entries, mixed with a lot that weren't. - Walking Across Egypt - Clyde Edgerton
Absolutely hated the ending.
Two more from the 100 Favorite Mysteries of the 20th Century list.
- Aunt Dimity's Death - Nancy Atherton
See a previous post for my thoughts on this one. - Devil In A Blue Dress - Walter Mosley
I wish I'd read this before seeing the movie about 12 years ago. There is no doubt in my mind that I would have understood it better. Great book!
Then there were a load of graphic novels. See here for my thoughts on most of the ones I read. Plus four more:
- Top 10 Book 2 - Alan Moore
- Top 10 Forty Niners - Alan Moore
Two more from one of my favorite series. The art work on Forty-Niners is exceptional. - Tom Strong Book 1 - Alan Moore
- The Borden Tragedy - Rick Geary
This to me is a poster child for graphic novels. Beautiful black-and-white line artwork. The writing is precise and complete. Great story-telling. If I'd bought this (as opposed to borrowing it from my local library), the back cover -- where Geary spells out the reasons why O. J. Simpson is the Lizzie Borden of the twentieth century -- would be worth the price alone. I will definitely be reading more books in this series.
( Feb 25 2008, 10:42:20 AM PST ) [Listen] Permalink
Updated: Be Informed When Used Amazon Books Are Available At Your Price
|
Short Version: Regular readers may remember a post back in September where I showed how to find out if the books on your Amazon wish list were now available used, at a price you were willing to pay. This stopped working for me on the 7th February. There are now new versions of the make_book_list.py and cheap_books.py scripts that fix the problem found. |
Long Version: I have a cron job that runs the
cheap_books.py script nightly. The last time it worked
was the 6th February. I finally got around to investigating the problem
over the weekend. As I've got it setup to send the mail message with the
results to my Gmail account, the first thing I did was look to see if
gmail had thrown it in my Spam folder. It had done exactly this for the
mail that was the results of a similar script, so it wasn't much of a
stretch to think it had happened again.
That wasn't the case, so I then ran the script manually. It terminated abruptly with:
Traceback (most recent call last): File "./cheap_books.py", line 108, incheckBookList(books.list_of_books) File "./cheap_books.py", line 95, in checkBookList books = amazon.searchByASIN(asin) File "/home/richb/DVD/python/CheapBooks/amazon.py", line 321, in searchByASIN return search("AsinSearch", ASIN, None, type, None, license_key, http_proxy, locale, associate) File "/home/richb/DVD/python/CheapBooks/amazon.py", line 293, in search xmldoc = minidom.parse(usock) File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse return expatbuilder.parse(file) File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 931, in parse result = builder.parseFile(file) File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 208, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 19
There's a really useful error message. What was worst, was that by turning on debugging in the cheap_books.py script, I could see that it wasn't always happening for the same book. Sometimes the script would run for a longer time before generating the traceback.
It would have been nice if the amazon.py code caught that error. As there are no debug facilities in the pyAmazon source code, and there hasn't been a new release since August 2004 (and Michael Josephson is looking around for a new maintainer), I wasn't expecting too much help there. I ended up doing:
$ sudo vi /usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py
and adding a:
print ">>>buffer: ", buffer
statement just before line 208 and ran it again. When it crashed, I could see that
the last part of buffer was:
<h2>503 - Service Unavailable</h2> <p> You are receiving this error because you sent more than one request per second to Amazon Web Services (AWS). Per the AWS Licensing Agreement, AWS restricts each IP address to no more than one request per second. Please see the full <a href="http://www.amazon.com/gp/browse.html?node=3440661">AWS Licensing Agreement</a>.
Well this is new (and presumably introduced about 6/7th February), but okay. I can live with that. So I adjusted my two scripts and put in a
time.sleep(1)
in the book searching loop, just after doing the
amazon.searchByASIN(asin) call.
When I ran it again, it crapped out in the same place. I then thought that maybe my browser (which had an Amazon book web page showing) was helping to cause the problem. Nowadays, those Amazon book web pages have a live region for that message that goes something like: "Want it delivered Tuesday, February 26? Order it in the next 7 hours and 1 minute,". It's updating every second. Darned if I know why it needs to be that active.
So I terminated my browser and ran it again. No change. Still Crapsville, U.S.A. I then changed it to:
time.sleep(2)
and lo and behold, the script started working again.
So I now wonder whether Amazon have a rounding error in their code. Whatever. The script runs at night. If it takes twice as long as it used to to run (8 minutes instead of four), that's not a big deal.
( Feb 25 2008, 08:44:03 AM PST ) [Listen] Permalink Comments [3]












