Convert mp4 and flv video to mp3 with VLC

Download VLC at http://www.videolan.org

NOTE – FLV transcoding does not work in version 2.0.4. Make sure you’re using the most recent release.

Mac OS X Terminal

/Applications/VLC.app/Contents/MacOS/VLC -I dummy "/Users/yourname/Music/Input File.mp4" --sout='#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst="/Users/yourname/Music/Output File.mp3"}' vlc://quit

Mac OS X Terminal (Multiple Files)

for file in /Users/$USER/Music/*.mp4; do /Applications/VLC.app/Contents/MacOS/VLC -I dummy "$file" --sout="#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=\"$(echo "$file" | sed 's/\.[^\.]*$/.mp3/')\"}" vlc://quit; done

Mac OS X GUI

  1. Open VLC
  2. File > Streaming/Exporting wizard…
  3. Transcode/Save to file
  4. Next
  5. Choose an input file under “Select a stream” or “Existing playlist item”
  6. Next
  7. Check “Transcode video”
  8. Codec: Dummy
  9. Check “Transcode audio”
  10. Codec: MP3
  11. Bitrate (kb/s): 128
  12. Next
  13. Encapsulation format: RAW
  14. Next
  15. Choose a destination file ending in .mp3. Note that if you click Browse, it will force you to use .raw, so choose both .mp3.raw and delete .raw in the input field.
  16. Next
  17. Finish

Windows Command Prompt

Change “C:\Input File.flv” and “C:\Output File.mp3”.

"%ProgramFiles%\VideoLAN\VLC\vlc.exe" "C:\Input File.flv" --sout=#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst="C:\Output File.mp3"} vlc://quit

Windows Command Prompt (Multiple Files)

Change %USERPROFILE%\Music to the directory containing the files to convert (make sure you keep the \*.* at the end).

for %a in ("%USERPROFILE%\Music\*.*") do "%ProgramFiles%\VideoLAN\VLC\vlc.exe" "%a" --sout=#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst="%a.mp3"} --intf=dummy --verbose=2 --play-and-exit

Note that this command will spawn multiple instances of VLC and convert each file in parallel, which can take a lot of CPU. I attempted to fix this using “–one-instance –playlist-enqueue” but the destination file does not get updated. As a workaround, you can throttle the invocations by adding this to the end of the command:

 && choice /T 30 /D y /M "Waiting 30 seconds..."

Windows GUI

  1. Open VLC
  2. Media > Convert / Save…
  3. Click [Add…] and select an input file
  4. Click [Convert / Save]
  5. Under “Destination” enter a destination file ending in .mp3
  6. Under “Settings” click the button with alt text “Create a new profile” to the right of the red “X”
  7. Enter a Profile Name (i.e. “MP3 Only”)
  8. On the /Encapsulation\ tab select “RAW”
  9. On the /Audio Codec\ tab check “Audio”
  10. Codec: MP3
  11. Bitrate: 128 kb/s
  12. Channels: 2
  13. Sample Rate: 44100
  14. Click [Save]
  15. Under “Settings” select the profile name from Step 7 (i.e. “MP3 Only”)
  16. Click [Start]

Instructions were written for VLC 1.0.5 “Goldeneye”

Advertisements

Day 9 – Grey Shirt Day – Round 2

I remembered. We’ll see if jchang did as well…

Day 8 – Return of the Micro Kitchen!

This morning I went rummaging through the nearest micro kitchen and was delighted to find regular and peanut M&M’s, Pepperidge Farm Milano Cookies, Famous Amos Cookies, diet/regular RedBull and tons of Starbucks iced coffees. I was almost maintaing a constant weight for a bit there, but now it’s climbing steadily once again. Good thing today is tennis day.

I’m counting calendar days instead of weekdays, since I have a tendency to work weekends and also don’t want to do a seven-fifths conversion to figure out how long I’ve been here.

So far my experience at Google has been basically this: Here’s all the food you could ever eat, whatever hardware and software you desire, and the project of your dreams. Have fun.

Day 5 – We’re Not in Kansas Anymore

I managed to make it through week #1. Here are some things I’ve learned this week that I can mention without getting fired:

  1. Riding bikes in flip flops can be tricky and dangerous.
  2. I’m gonna need more massage credits.
  3. U-turns are illegal in Canada.

Also of note are the Toto toilets:

toto_toilet_controls

It’s essentially a personal, upside down carwash. The buttons on the bottom let you control water temp, seat temp, and dryer speed (depends on the model). As as semi-germaphobe, I try to minimize how much I actually interact with the panel, which means accepting whatever temp settings are configured there. I’m ok with warm water, but not when someone has cranked up the seat heater. A warm seat gives me the impression that someone was just there, which is creepy.

Presumably, that pink Front Cleansing button doesn’t get a whole lot of use over in the guy’s bathroom. This sort of makes me want to press it, but I suppose that could end tragically.

The next version of this thing should have bluetooth so I can dial in my desired settings from my phone. Then it can just remember my preferences and re-send them for subsequent uses so I won’t have to touch anything. Add wifi and there could be some interesting stats collection. You could then write a pretty sweet dashboard on that data by aggregating average water temp, peak usage times, power consumption, cost per use, cost per user, etc.

Day 4 – ¡Andalé!

At some point Pacific Cafe was turned into an Andalé! Delicious made to order burritos, tacos, and even horchata, just like at a regular franchise location, except for the not-paying part. Supremo burrito with carne asada was pretty delicious.

I also got a smoothie at Slice, which is kinda like a Jamba Juice, but isn’t an actual franchise like Andalé.

Although the cafe scene seems to have been consitently growing, the legendary micro kitchens are not quite as good as they used to be 😦 Gone are the days of Bawls soda, Smartwater, M&M’s, and mini Ben & Jerry’s. The remaining items include healthy snacks, cereal, milk, soy milk (yay), string cheese, yogurt, teas, sparkling and/or flavored water, bottled root beer, soda cans, Propel, maybe a RedBull, and the occasional Starbucks iced coffee. Ok sure, nobody’s starving, but I can’t help but remember the first time I saw one of these things back in their days of caloric glory. Thankfully, you can still get Naked juice in the main lobbies.

Update: I found M&M’s, IT’S-ITs, and beef jerkey. Hurray!

Day 3 – End of an Era

For the past few years I’ve had a sticky note on the door out to the garage reminding me to bring my lunch to work. This morning I realized it was no longer applicable and threw it away.

At Charlie’s Cafe today, I had two kinds of tuna shashimi, miso soup, soy sauce chicken, pan-fried noodles, and peppermint ice cream from No Name. Yum.

More importantly, I finally got my workstation setup and ended up staying until a bit after 11  (must be coding withdrawal).

Day 2 – Grey Shirt Day – Round 1

Khom FTW! Although, jchang’s jetlag from his adventures in China is a semi-reasonable excuse. Sorry, no picture. I think I’ll try to use PhotoBooth for next week’s “proof”.