Convert mp4 and flv video to mp3 with VLC

Download VLC at

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/ -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/ -I dummy "$file" --sout="#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=\"$(echo "$file" | sed 's/\.[^\.]*$/.mp3/')\"}" vlc://quit; done


  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”

Tags: , , , , , , ,

About Kris Hom

Senior Software Engineer at Google

40 responses to “Convert mp4 and flv video to mp3 with VLC”

  1. CN says :

    Thank you for this! I was able to use your WIndows GUI directions on Windows 7 with no problems.

  2. Josh says :

    Done all this to a T…never can get it to actually save…just puts a “streaming” into the player which I have no idea what to do with…

    Thanks, Josh

    • Grant says :

      NOTE! – I had the same problem as Josh when using GUI (VLC2.0.3), but was OK with the Command Line, but I eventually found the problem was because I had the ‘Loop’ button set in the GUI. Seems the converter was getting to the end and then going and converting all over again, repeatedly! There seems to be no good reason to ever do this with a conversion, so I might report that as a bug.

  3. Josh says :

    In VLC I kept getting an .acc file which I could’nt use for the application I needed it for I needed an MP3. So I did some searching and reading on forums and found a freeware application (paid if ya want all the bells and whistles) called AoA Audio Extractor. It worked perfectly the first try and gave me the MP3 I needed and had a very simple straight forward UI. Just thought I let everyone know…

    Thanks, Josh

  4. jym says :

    Thanks for putting this up, can say that it works in win 7 with V1.1.4 The Luggage

    Noticed that the file length is not reported correctly ie. winamp says that the file is 1.36 min long, but its really 2.50, but it just keeps playing normally anyway.

    nice oooooone

  5. Ray says :

    Awesome. I’ve been trying to track down encoding details using VLC on a Mac. Thanks!

  6. Zeeshan Khan says :

    Thanks for the post, keep it up 🙂

  7. Fabröfer says :

    How can I attach subs to an .avi with VLC? I know how to watch the movie with subs, but I want to create a new file with the subs attached to it. Thanks!

  8. Happy bunny says :

    Worked first time. Brilliant – thanks very much for taking the time to do this.

  9. C says :

    There is no need to for separate command for x64 just use %programfiles% environment variable. Just use:

    “%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

    But how can you convert all files in one folder if its possible at all?

  10. chovy says :

    Thanks. It took me awhile to find this, and yours was the only one that worked.

  11. Sam says :

    Thanks so much. Just converted a batch of 42 mp4 videos to mp3s in one step!

  12. Ronaldo says :

    Thnx man worked for me as well……

  13. Andrei says :

    Thank you for this, I kept trying to convert with VLC but didn’t know to choose RAW and force to m3. Thanks!

  14. Herman says :

    Splendid, worked immediately.
    I used the batch processing from commandline for Windows 7.

    Only small drawback is if input file is “video.flv”, then output is “video.flv.mp3”
    It should be easy to expand the filename with something like %~nI
    But on the other hand, it is nice to see where the original file came from.

    Keep up the good work.

  15. HappyUser says :

    Wow, that’s awesome! thanks a lot. It works

  16. Seth Wegner says :

    Besides Grant’s note on the “loop”, I found I was able to change it to do one song at a time of a whole folder by (1) breaking it into two bat files, (2) putting the bat files in the same folder as the movie files, (3) renaming the movie files to names with no spaces etc.

    for %%a in (“*.mp4”) do call mp4tomp3b.bat %%a
    “C:\Program Files (x86)\VideoLAN\VLC\vlc.exe” %1 –sout=#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=..\mp3\%1.mp3} –intf=dummy –verbose=2 –play-and-exit

    I then rename all the files in “..\mp3”

  17. Bored Iam says :

    Thanks a ton! Big Help! 🙂

  18. desertpunk12 says :

    Well does anyone have a problem having some noises

    • Enquirer says :

      I also have problems with noise in the MP3 after converting (originally from mp4 movie, just want the audio). Sounds like a really dirty MP3 with too much bass. Help please.

  19. kreychek says :

    How does one specify bitrate to use in the windows command line example? Thanks!

    • Kris Hom says :

      Change --sout=#transcode{acodec=mp3,vcodec=dummy} to --sout=#transcode{acodec=mp3,ab=128,vcodec=dummy} replacing 128 with the desired bitrate.

  20. Stu says :

    Keeps saying that the path cant be find. What could possible be wrong. I copy pste the path its odd

  21. Laurean says :

    Thank you! It worked the same way with VLC 2.0.1 Twoflower on Mac

  22. whocares says :

    2014, VLC still cannot convert to audio WITHOUT adding dummy video codec! WOW!!
    It sounded crazy to me but it works.

  23. GianniB says :

    Loved the bit about using the Windows command prompt to start a VLC conversion. I usually recommend using Ffmpeg as described here because it works on any OS and even server side (almost all online tools/converters use it)

  24. fm12 says :

    Hi, it’s 2016, but thank you for the script to convert multiple files.

  25. Andrew says :

    Just did the batch convert in Mac Terminal. VLC 2.2.4 Works perfectly! Extra useful.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: