PDA

View Full Version : Problem extracting sound from an AVI / MKV


Dustin013
11th May 2008, 00:23
I am having some issues with exacting audio out of one of my video files. Originally it was in AVI but I have converted the AVI into an MKV and tried that way as well. Video 1 is the problem, however video 2 works. I have used VideoInfo Tool 3.1 to get the information below.

It is obvious that Video1 was encoded differently than Video2, I just can't figure out how to extract the MP3. I convert the AVI into an MKV and use MKVExtract and I get a mp3 file that doesn't play.

I also did the following with mplayer:

mplayer.exe test.avi -dumpaudio -dumpfile test.mp3

MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (Family: 6, Model: 15, Step
ping: 13)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing test.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [DIV3] 640x360 24bpp 25.000 fps 925.3 kbps (113.0 kbyte/s)
Core dumped ;)

Exiting... (End of file)

Still left with an MP3 with no audio :(

STATS ON VIDEO 1

Container=AVI
FileSize=351 MiB
VideoCodec=DIV3
VideoPlayTime=00:42:26.280
VideoBitrate=914 Kbps
VideoWidth=640
VideoHeight=360
VideoAspectRatio=1.778
VideoFrameRate=25.000
VideoFrameCount=63657
AudioCodec=AC3
AudioBitrate=224 Kbps
AudioMode=CBR
AudioChannels=4
AudioSamplingRate=48000

AVIdwRate=25000
AVIdwScale=1000



STATS ON VIDEO 2

Container=AVI
FileSize=226 MiB
VideoCodec=XVID
VideoPlayTime=00:21:34.640
VideoBitrate=1262 Kbps
VideoWidth=640
VideoHeight=480
VideoAspectRatio=1.333
VideoFrameRate=25.000
VideoFrameCount=32366
AudioCodec=MPA1L3
AudioBitrate=190 Kbps
AudioMode=CBR
AudioChannels=2
AudioSamplingRate=44100

AVIdwRate=25
AVIdwScale=1

Video 2 will work both ways when I try to exact the audio.


Any suggestions?

Atak_Snajpera
11th May 2008, 00:54
Why did you put this thread in MPEG-4 AVC section????

Dustin013
11th May 2008, 01:15
Oh sorry, I am trying to create h.264 MP4 encodes. My bad, where should I post this?

nm
11th May 2008, 12:59
STATS ON VIDEO 1

Container=AVI
FileSize=351 MiB
VideoCodec=DIV3
VideoPlayTime=00:42:26.280
VideoBitrate=914 Kbps
VideoWidth=640
VideoHeight=360
VideoAspectRatio=1.778
VideoFrameRate=25.000
VideoFrameCount=63657
AudioCodec=AC3
AudioBitrate=224 Kbps
AudioMode=CBR
AudioChannels=4
AudioSamplingRate=48000

Your audio is AC3 (Dolby Digital), not MP3. Try changing the extension to ".ac3". If the file still doesn't play with MPlayer, try mplayer -demuxer rawaudio -rawaudio format=0x2000 file.ac3

bond
11th May 2008, 21:23
double post, closed and striked