[MPlayer-users] Incorrect wav length after dump
AlannY
m at alanny.ru
Fri May 15 17:57:50 CEST 2009
Hi there.
I'm trying to dump audio from DVD. Audio on DVD is ac3 5.1 (6 channels).
Dumping to WAV-PCM 5.1 (6 channels) and resample from 48000 to 44100.
mplayer -vc dummy -vo null -aid 128 -channels 6 \
-af channels=6,resample=44100:0:2 -ao pcm:fast:waveheader:file=audio.wav \
-dvd-device dvd/ dvd://1
In dumping, mplayer detects the length of audio as 1:25:09.5
Here dumping:
==========================================================================
AUDIO: 48000 Hz, 6 ch, s16le, 448.0 kbit/9.72% (ratio: 56000->576000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO PCM] File: 01.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format floatle
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao
pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 44100Hz 6ch floatle (4 bytes per sample)
And now the interesting part:
mplayer audio.wav
The length of audio.wav is only 15:59.0 (15 minutes 59 seconds). The
size is 5Gb (five gigabytes).
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 6 ch, floatle, 8467.2 kbit/100.00% (ratio:
1058400->1058400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
And now test it with ffmpeg:
ffmpeg -i audio.wav
There are everything is OK:
Duration: 01:23:37.76, bitrate: 8467 kb/s
Stream #0.0: Audio: pcm_f32le, 44100 Hz, 5.1, s16, 8467 kb/s
How to solve it? It's first time when I have so unexpected result (I
have already dumped hundreds of wavs with mplayer). I
need to fix the .wav file and then encode it with oggenc. If I'd to
encode this incorrent file, then oggenc encodes only first 15 minutes
;-(
MPlayer SVN-r28450-4.3.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz (Family: 6, Model:
23, Stepping: 10)
Thanks for patience. ;-)
--
)\._.,--....,'``.
/, _.. \ _\ (`._ ,.
`._.-(,_..'--(,_..'`-.;.'
More information about the MPlayer-users
mailing list