Page 1 of 1

extract just the audio from webm files

Posted: 31 Aug 2011 01:28
by ToddAndMargo
Hi Guys,

How do i extract just the audio (*.ogg) from a *.webm file?

Many thanks,
-T

Re: extract just the audio from webm files

Posted: 31 Aug 2011 01:49
by ToddAndMargo
Never mind. Figured it out.

Re: extract just the audio from webm files

Posted: 14 Dec 2011 03:47
by Ebbletart
Care to post your solution?

Sorry, thread necro.

Edit: I solved this myself for ripping to mp3's in Linux using ffmpeg. If you're on Ubuntu, just do:

sudo apt-get install ffmpeg libavcodec-extra-52

then:

ffmpeg -i video.webm -ab 320k -ar 44100 song_title.mp3

You can substitute "320k" with whatever constant bit rate you want and you can change .mp3 to .ogg, although that appears to create an ogg video file rather than an ogg audio file.

Re: extract just the audio from webm files

Posted: 24 Oct 2014 17:03
by hikingpete
I used the invocation below to force a straight copy of the audio into the same codec (vorbis) and disable video:
$ ffmpeg -i video.webm -acodec copy -vn audio.ogg

Sorry to resurrect such an old topic, but I just found this message (thanks google) and found it helpful.
Thanks.