[MPlayer-users] How to extract a .WAV file from part of a very long dump file

Ivo ivop at euronet.nl
Wed Jun 6 16:02:07 CEST 2007


On Wednesday 06 June 2007 15:44, Martin McCormick wrote:
> I accidentally created an interesting problem. A shell script I
> wrote had a bug in it that caused me to dump about 35 hours of
> audio to a stream.dump file. I then discovered some material
> worth saving about 3 or 4 hours in to the stream. I thought I
> could maybe save the whole stream as a .wav file and I, in fact,
> could do that which ended up as a 20-gig .wav file.:-)
>
> 	I thought I might use sox to skip over the part of the
> file that wasn't worth saving and grab the little part that was,
> but a 20-gig file is too large for sox which complains about the
> size and aborts.
>
> 	I may be able this time to use split to break the
> stream.dump file off after the part I want to save which will
> considerably lessen the size of the .wav file I must then edit,
> but it brings up the question, is there a better way to edit a
> huge stream file?

mplayer -ao pcm:file=output.wav -ss 3:00:00 -endpos 1:00:00 stream.dump

This dumps one hour of audio, starting at three hours into the file. Note 
that -endpos is relative to -ss.

--Ivo



More information about the MPlayer-users mailing list