Page 1 of 1

Extract audio from video file

Posted: 08 Dec 2009 20:54
by Lastalda
Hi,

I have an mpeg video file (private recording), and I would like to extract its audio part as an mp3.
I know it's possible to do this via VLC, but I can't figure out how.

What I tried:
Media => Convert/Save
=> select file
- press "Convert/Save"
=> select target file
=> Choose "mp3" as profile
==> Edit said Profile choosing "Raw" as Encapsuling, de-selecting "Video" in the videocodec bar, keeping the selection under "audio", ignoring subtitles
- press "start"

What I get is an mp3-file that is almost as big as the original mpeg file, much too long, but stops playing after 2 seconds. :(

What did I do wrong? And more important: how do I do it right?

Any help will be very much appreciated!
Thanks,
Lastalda

Re: Extract audio from video file

Posted: 08 Dec 2009 21:06
by Rémi Denis-Courmont
Not transcoding the video is not the same as not including the video. I'm not sure you can do what you're trying to do with the user interface wizard.

Re: Extract audio from video file

Posted: 08 Dec 2009 21:16
by Lastalda
I've included the "video". Still get a too-big file, and now it's not even playing those first 2 seconds...
I originally excluded it because i only want the audio...

Re: Extract audio from video file

Posted: 13 Dec 2009 13:11
by Lastalda
I would still appreciate help on this question, because it has not been solved.

Re: Extract audio from video file

Posted: 14 Dec 2009 04:01
by jkwsn
VLC is a very handy program but sometimes you may find it easier to do the operation in two parts. I ran version 0.8.6b to rip the audio from a talent show video last spring, and it sounds as though you are doing something similar.

First extract just the audio as an m4a - not an mp3. This will drop the video information and leave you with an audio file that may or may not suit your needs. I would recommend downloading a distinct m4a to mp3 conversion program if you need the audio in mp3 format. VLC is a Swiss army knife, but some problems require a specialized tool...

or a really big hammer :mrgreen:

Re: Extract audio from video file

Posted: 20 Feb 2010 20:47
by bainidhe
I am trying to do this too - extract audio from a video - but my .m4a file is giving me problems. It won't run in iTunes, and VLC still plays it as a video. I tried making a .wav but WMC says it doesn't support the codec used to create the file, and can't play it. I'm trying to get down to an audio file that I can burn to a disk and play through a regular CD player. Any insight?

Re: Extract audio from video file

Posted: 21 Feb 2010 08:54
by Rémi Denis-Courmont
vlc --no-sout-video --sout '#transcode{acodec=s16l,samplerate=44100}:std{mux=wav,access=file,dst=file.wav}' FILE.EXT

Re: Extract audio from video file

Posted: 04 Dec 2010 19:38
by calande
Hi, I tried, and it didn't work:

Code: Select all

vlc --no-sout-video --sout '#transcode{acodec=s16l,samplerate=44100}:std{mux=mp3,access=file,dst=test.mp3}' "11 octobre 2010.rm" VLC media player 1.1.4 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x854b914] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Blocked: call to setlocale(6, "") Blocked: call to sigaction(17, 0xb68c40d4, 0xb68c4048) Warning: call to signal(13, 0x1) Warning: call to signal(13, 0x1) Warning: call to srand(1291706248) Warning: call to rand() Blocked: call to setlocale(6, "") (process:9194): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Warning: call to signal(13, 0x1) Warning: call to signal(13, 0x1) Blocked: call to setlocale(6, "") [0x88111dc] stream_out_standard stream out error: no suitable sout mux module for `file/mp3://test.mp3' [0x881101c] main stream output error: stream chain failed for `transcode{acodec=s16l,samplerate=44100}:std{mux=mp3,access=file,dst=test.mp3}' [0x85fac44] main input error: cannot start stream output instance, aborting [0x8814554] stream_out_standard stream out error: no suitable sout mux module for `file/mp3://test.mp3' [0x8814394] main stream output error: stream chain failed for `transcode{acodec=s16l,samplerate=44100}:std{mux=mp3,access=file,dst=test.mp3}' [0x8811764] main input error: cannot start stream output instance, aborting
Thanks,