Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How To Extract The Audio Track ? (Read 4778 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How To Extract The Audio Track ?

hi people

i would like to know how to extract the audio track from a media file (AVI, WMV, MPG ...) ?

What are you guys recommanding ?

How To Extract The Audio Track ?

Reply #1
MPG: TMPGEnc -> File -> MPEG Tools -> Demultiplexer | Load your mpg -> doubleclick on the audio and save it
AVI: VirtualDub ->File -> Open File | File -> Save WAV...

WMV: That´s more complicated. Without reencoding there is one way:
You need VirtualDub 1.3c or any other version with patched asf-support. First change the FourCC from WMV1 / WMV2 or whatever to, lets say "DIVX" (you can do that in a hex-editor). Now you can open it with VirtualDub. Do not seek in the Video (it will probably crash because of wrong FourCC), just click on File -> Save WAV like with the avi. You need change the FourCC back that your WMV is playable again.

How To Extract The Audio Track ?

Reply #2
thanks for those infos

How To Extract The Audio Track ?

Reply #3
moutaye, I have not tried WMV, but I have extracted, quite easily, audio tracks from the other formats using the "Extract Audio from Video" feature in CEP v2.  CEP extracts the audio from video as quickly as it opens any file.  You can then save it to any format you choose, providing you have the necessay plugins.  If you don't have CEP v2, you can follow S_O's advice or use Total Recorder which is quite slow in comparison.

Later.
"Did you just say he contacts you through a bird? Did I just hear you say that?" Sonny Valerio (Cliff Gorman). Ghost Dog: The Way of the Samurai.

How To Extract The Audio Track ?

Reply #4
Quote
I have not tried WMV, but I have extracted, quite easily, audio tracks from the other formats using the "Extract Audio from Video" feature in CEP v2.

It won't work, I'm affraid, otherwise MS lawyers would wear Syntrillium out on courts.
You can try to demux with GraphEdit or VDubMod (via AviSynth).

How To Extract The Audio Track ?

Reply #5
Quote
It won't work, I'm affraid, otherwise MS lawyers would wear Syntrillium out on courts.


Yes, I believe that, but that's not the point of my reply which is that CEP v2 rips all the other formats fine. The only reason that I did not try to rip the audio from a WMV files is that I stay away from all MS formats.  However, all the others (avi, mpg, mpeg, etc) work perfectly, and, as I said, they are ripped Fast.

Oh, ak, one last thing.  Please forgive my ignorance, but I'm not into video, so, could you tell me what demux is.  I assume, though, that from your reply it has something to do with ripping audio from video.
"Did you just say he contacts you through a bird? Did I just hear you say that?" Sonny Valerio (Cliff Gorman). Ghost Dog: The Way of the Samurai.

How To Extract The Audio Track ?

Reply #6
Afaik demuxing refers to seperating the audio and video streams, muxing refers to mixing/interleaving (?) the audio and video together.
Watch out where the huskies go,
Don't you eat that yellow snow

How To Extract The Audio Track ?

Reply #7
dTb, thank you.  Now, if  I ever do get into video, I'll know what demuxing is. One last word, what a strange term.  I'm into etymology, so now I'm going to have to find out where and how the term came about. 

To mux or demux, that is the question. (Sheesh, Shakespeare is probably spinning in his grave )

Later.
"Did you just say he contacts you through a bird? Did I just hear you say that?" Sonny Valerio (Cliff Gorman). Ghost Dog: The Way of the Samurai.

How To Extract The Audio Track ?

Reply #8
Quote
Afaik demuxing refers to seperating the audio and video streams, muxing refers to mixing/interleaving (?) the audio and video together.

The origin of 'mux' comes from electronics, where 'mux' is short for multiplex, which is essentially just converting parallel data into serial data. (I might have that backwards, though.) Audio and video are parallel data, files are serial.

How To Extract The Audio Track ?

Reply #9
Quote
Oh, ak, one last thing.  Please forgive my ignorance, but I'm not into video, so, could you tell me what demux is.  I assume, though, that from your reply it has something to do with ripping audio from video.

Did I say demux?  Actually extracting audio to wav was meant.
Demuxing (extracting wma track) should be possible with WMEncoder, I think.
Quote
The only reason that I did not try to rip the audio from a WMV files is that I stay away from all MS formats.

I also have no wmv's to play with, so it's only theoretical.

How To Extract The Audio Track ?

Reply #10
Quote
The origin of 'mux' comes from electronics, where 'mux' is short for multiplex, which is essentially just converting parallel data into serial data. (I might have that backwards, though.) Audio and video are parallel data, files are serial.

I think you may be confusing this with modem, modulator/demodulator. That is the technique of turning bits parallel into bits serial and back again. Multiplexing is concerned with the interleaving/de-interleaving of multiple streams, originally concerned with data coms. Similar idea, though.

 

How To Extract The Audio Track ?

Reply #11
I found this through Google here: http://www.trinary.cc/Tutorial/Mux/Mux.htm

Multiplexers

A multiplexer is a circuit that takes 3 inputs and allows one to be selected for output. It is a critical circuit and is used extensively throughout computer systems. To create a 3 to 1 MUX, we will take advantage of the Identity: 2 ¯ [this mark is supposed to be a little down arrow] A = A. The scheme is to use the identity to enable the proper selection. Then the 3 inputs will be MAXed together to recombine them. In order for the MAX to work correctly, disabled lines will need to output 0.


Demultiplexers

A Demultiplexer is just the opposite of a multiplexer. It takes 1 input and creates 3 outputs. Internally, its construction is similar to the multiplexer except the outputs are not combined at the end with a MAX operation. Instead, each one remains separate. As shown in Figure 3, it is designed to pass a 0 on all outputs except the one selected which passes the true value of the input. It can be designed to pass a 2 except the selected output also. This would be referred to as "active low logic" and tends to be more useful than "active high logic".

Later
"Did you just say he contacts you through a bird? Did I just hear you say that?" Sonny Valerio (Cliff Gorman). Ghost Dog: The Way of the Samurai.