[MPlayer-users] How to extract a .WAV file from part of a dump file, Not Yet.
Martin McCormick
martin at dc.cis.okstate.edu
Thu Jun 7 03:03:23 CEST 2007
I must still be doing something wrong. I downloaded
MPlayer-1.0rc1.tar.bz2 from the mplayer site mirror and
successfully built and installed it and it appears to work
properly. Now, the -endpos directive is understood but the
decoded .wav file is always about .1 second long no matter what
values are in the -endpos xx fields.
mplayer -vc null -vo null -ao pcm:file=output.wav -ss 8:54:15 -endpos 180
stream.dump
The new line before stream.dump was for readability so
everything should be in one line. I get:
MPlayer 1.0rc1-3.3.5 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
Playing stream.dump.
ASF file format detected.
Clip info:
name: KOSU HD-2
author: Oklahoma Public Radio
copyright: 2007 KOSU
comments: NPR News & Classical Music
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8003->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
[AO PCM] File: output.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format s16le
[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 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:445772.6 (123:49:32.6) of 0.0 (unknown) ??,?% [J$<50>
[A
[KPosition: 0 %
Exiting... (End of file)
This should have produced a 3-minute .wav file (180
seconds) and then stopped.
If I remove the -endpos 180 fields, it, of course has no
stop time so it starts at exactly the right point where it
should have started but keeps decoding until one kills mplayer.
Is the mplayer-1.0rc1 tar ball new enough that it should
work?
I am not sure which Debian package I should install to
use svn sources so that is the only thing I did not do here.
Thanks.
Martin McCormick
More information about the MPlayer-users
mailing list