Multiple File Conversion with VLC media Player

41,100

Solution 1

If you want to use ffmpeg, you can use the following to extract the audio parts of all WMV files in the current folder to uncompressed WAV (PCM audio):

for f in *.wmv; do ffmpeg -i "$f" "${f%.wmv}.wav"; done

Or MP3 – see the MP3 encoding guide for more info:

for f in *.wmv; do ffmpeg -i "$f" -c:a libmp3lame -q:a 2 "${f%.wmv}.mp3"; done

These are loops for Linux shells like Bash. For Windows, you'd do something like the following:

for %%A IN (*.wmv) DO ffmpeg -i "%%A" "%%A.wav"

Solution 2

It depends on your OS:

  • If you have Windows, it is straightforward to do in the UI:
    • VLC -> Media -> Open multiple files.
  • If you are a Mac or a Linux user, there are bash scripts (see here).
  • The above link also has scripts for windows users, if you prefer.

Apart from VLC, HandBrake is a very powerful platform independent (though it was developed for Mac) conversion app that easily allows batch conversion.

Share:
41,100

Related videos on Youtube

Sireiz
Author by

Sireiz

Updated on September 18, 2022

Comments

  • Sireiz
    Sireiz almost 2 years

    I have to convert a number of video files to audio format but its very painful and time consuming to convert them one by one. Is there a way to convert them in a batch with VLC player?

    • matan129
      matan129 almost 11 years
      Do you mean extracting the audio track from each of the video files?
    • Sireiz
      Sireiz almost 11 years
      Yup, its a wmv file and i want to convert it to mp3 or wav format.
    • slhck
      slhck almost 11 years
      Do you have to use VLC for this?
    • Sireiz
      Sireiz almost 11 years
      no there is no restrictions.
  • Sireiz
    Sireiz almost 11 years
    I also want to increase the playback speed to 1.5x in the converted files.
  • slhck
    slhck almost 11 years
    You can use the atempo filter; see: ffmpeg.org/trac/ffmpeg/wiki/How%20to%20speed%20up%20/…
  • Sireiz
    Sireiz almost 11 years
    its first converting to audio and then increasing the playback speed, isn't it?
  • slhck
    slhck almost 11 years
    It is internally decoding the audio to a raw format, then applying the filter, and then encoding it to either MP3 or PCM audio. You can just insert the filter between -i "$f" and "${f%.wmv}.wav".
  • Sireiz
    Sireiz almost 11 years
    thank you very much @slhck you r absolutely a skilled person. :)
  • bertieb
    bertieb about 6 years
    Please include the information from the links in your answer :)
  • dopexxx
    dopexxx about 6 years
    Updated. I hope that's sufficient