[FFmpeg-devel] [PATCH] WAV file length (writing to stdout)

Rich Felker dalias
Fri Oct 19 10:49:11 CEST 2007


On Tue, Oct 16, 2007 at 05:02:39PM +0200, Cyril B. wrote:
> Hi,
> 
> As reported recently on this mailing list [1], ffmpeg sets 0 as file length
> in the WAV header if output is streamed (for instance, when outputting to
> stdout). Nero AAC encoder does not accept such streams ('could not parse
> WAV file' error).
> 
> The WAV file specs [2] say the file length (ChunkSize) must be 36 + data
> length. The included patch writes 36 instead of 0, which satisfies Nero
> encoder.

IMO both are wrong. The most compatible way to make a wav header for
unknown length is to put 0xffffffff in the header.

Rich




More information about the ffmpeg-devel mailing list