We are using ffmpeg to merge two mono wav files into a single two-channel file. When we do, we get a wav file that has an invalid header, and some of our other software cannot process it. In particular, the AudioFormat at offset 20 has a value of ‘0700’ (little-endian) instead of ‘0100’. The Subchunk2ID is ‘00006461’ instead of ‘74616461’ (“data”). The Subchink2Size is a huge number (1937924468 or 0X73826174) which is much larger than the size of the audio file.
We are using the command: /usr/bin/ffmpeg -ac 1 -ar 8000 -acodec pcm_s16le -f s16le -i <inFile1> -ac 1 -ar 8000 -acodec pcm_s16le -f s16le -i <inFile2> -filter_complex "[1:a][2:a] amerge=inputs=2[a]" -map "[a]" <outFile> This is generated in Java, so I hope I got it right. So, what are we doing wrong? How do we get ffmpeg to generate a valid wav header? Thank you. [signature_199644536] [signature_924782017] Jim McMaster Senior Software Engineer
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".