Extract audio from video file

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Lastalda
New Cone
New Cone
Posts: 3
Joined: 08 Dec 2009 20:39

Extract audio from video file

Postby Lastalda » 08 Dec 2009 20:54

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extract audio from video file

Postby Rémi Denis-Courmont » 08 Dec 2009 21:06

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Lastalda
New Cone
New Cone
Posts: 3
Joined: 08 Dec 2009 20:39

Re: Extract audio from video file

Postby Lastalda » 08 Dec 2009 21:16

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...

Lastalda
New Cone
New Cone
Posts: 3
Joined: 08 Dec 2009 20:39

Re: Extract audio from video file

Postby Lastalda » 13 Dec 2009 13:11

I would still appreciate help on this question, because it has not been solved.

jkwsn
New Cone
New Cone
Posts: 1
Joined: 14 Dec 2009 03:35

Re: Extract audio from video file

Postby jkwsn » 14 Dec 2009 04:01

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:

bainidhe
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2010 20:44

Re: Extract audio from video file

Postby bainidhe » 20 Feb 2010 20:47

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Extract audio from video file

Postby Rémi Denis-Courmont » 21 Feb 2010 08:54

vlc --no-sout-video --sout '#transcode{acodec=s16l,samplerate=44100}:std{mux=wav,access=file,dst=file.wav}' FILE.EXT
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calande
Blank Cone
Blank Cone
Posts: 88
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: Extract audio from video file

Postby calande » 04 Dec 2010 19:38

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,


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 64 guests