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: ripping audio from AV files (Read 4293 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ripping audio from AV files

Hi,
It's been a while since I was last here. Got a quick question.
I've downloaded some video files, that I checked to have an AAC 256KBPS audio part. Let's say I don't want the video part, I want the audio. There are programs which can convert these video files to audio files, but they decode the audio to wav and then convert that to something else. So they transcode the audio. Since 256 k is pretty high quality anyway, I doubt transcoding to something equally high wouldn't make much difference, but still I don't want to lose anything by just taking the video out. Is there a way to cut the video out of the original file?
Thanks.

ripping audio from AV files

Reply #1
Try  SUPER[/u] (FREE!!!).  Select "Audio Only AAC" and "Stream Copy" and you should get the audio without re-encoding.

Don't get fooled by the ads for other software on the SUPER website.  Follow the links and make sure you are downloading SUPERsetup.exe.

ripping audio from AV files

Reply #2
You can do this easy and fast from the command line using mencoder.exe.

——— EXAMPLE ———

I have a video file named input.flv, and I want to extract the raw audio stream to a file named output (at the moment I don't know the file extension).

put mencoder.exe and input.flv in the same folder, and run this command line:
Code: [Select]
mencoder -of rawaudio -ovc copy -oac copy -o output input.flv

a file named output is created in the same folder.

Don't close the console window yet ...look at the text. You should see something like this:[/font]
Quote
C:\TEST=====> mencoder -of rawaudio -ovc copy -oac copy -o output input.flv

MEncoder Sherpya-MT-SVN-r32198-4.2.5 © 2000-2010 MPlayer Team
SSE2 supported but disabled
158 audio & 346 video codecs
success: format: 0  data: 0x0 - 0xebb6d
libavformat file format detected.
[flv @ 02230050] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (flv), -vid 0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO:  [FLV1]  320x256  0bpp  25.000 fps  322.7 kbps (39.4 kbyte/s)
[V] filefmt:44  fourcc:0x31564C46  size:320x256  fps:25.000  ftime:=0.0400
Ignoring video stream!
videocodec: framecopy (320x256 0bpp fourcc=31564c46)
audiocodec: framecopy (format=55 chans=1 rate=22050 bits=16 B/s=1000 sample-0)
Pos:  0.9s    22f ( 3%)  0.00fps Trem:  0min  0mb  A-V:0.084 [0:55]

Skipping frame!
Pos:  1.2s    32f ( 6%)  0.00fps Trem:  0min  0mb  A-V:0.084 [138:55]

Skipping frame!
Pos:  1.7s    44f ( 6%)  0.00fps Trem:  0min  0mb  A-V:0.084 [104:55]

Skipping frame!
Pos:  2.7s    71f (10%)  0.00fps Trem:  0min  0mb  A-V:0.080 [152:56]

Skipping frame!
Pos:  24.3s    612f (100%)  0.00fps Trem:  0min  0mb  A-V:0.049 [250:57]

Video stream:  250.106 kbit/s  (31263 B/s)  size: 760322 bytes  24.320 secs  612
frames

Audio stream:  57.752 kbit/s  (7219 B/s)  size: 177075 bytes  24.529 secs

C:\TEST=====>


So there is our filetype in red; it is an MP3 file ====>   output.mp3

ripping audio from AV files

Reply #3
Thanks for the replies. I will try both.

 

ripping audio from AV files

Reply #4
Wait. You want to demux the audio, yes? What's the container format? If MKV, use MKVToolNix. If MP4, use MP4Box or with a UI such as YAMB.