Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to extract streams from WebM video files without converting them (re-compression), can somebody recommend any software that can allow this?

share|improve this question
up vote 13 down vote accepted

Since WebM is a Matroska subset, mkvtoolnix should let you demux the files. It's open source, cross platform, and the author provides binaries for Windows.

share|improve this answer
Thanks, it worked perfectly! – Karolinger Apr 16 '12 at 19:48

To extract audio from a WebM file, using the ffmpeg tool ( :

ffmpeg -i "input.webm" -vn -acodec copy "output.oga"

Explanation :
"-i input.webm" designates the input file
"-vn" removes the video stream from the output
"-acodec copy" tells ffmpeg to copy the audio stream as-is (no re-compression)
"output.oga" designates the output file.

NB : Use quotes "" around filenames that contain spaces.

The output file extension has to match with the format of the audio stream contained in the source webm file.

I use ".oga" as output file extension because most webm files I handle contain Vorbis audio.
".oga" is the prefered extension in this case, even if .ogg is still a frequently encountered extension for vorbis audio-only files.

This command line based on ffmpeg should give you the audio format from the source file :
ffmpeg -i "inputfile.ext" Search for the line containing the text "Audio", usually near the end of the command output.

In my case, this is the output :
Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)

Reading this wikipedia page might give you some insight on which file extensions should be used with which audio formats :

share|improve this answer

Video files have a container format and codec formats.

Its hard to 'extract' the video bits easily, but it is possible to change the container format to something you can consume whilst not altering the video bits:

ffmpeg using -vcodec copy (and typically -an to strip any audio)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .