Error when trying to convert 2-channels sound file to mono using sox or ffmpeg

2

When I tried:

sox file.wav -c 1 file.wav

I got:

sox WARN wav: Premature EOF on .wav input file

When I tried:

ffmpeg -i file.wav -ac 1 file.wav

I got:

[pcm_s16le @ 0x2997880] Invalid PCM packet, data has size 2 but at least a size of 4 was expected
Error while decoding stream #0:0: Invalid data found when processing input

Vituel

Posted 2015-02-02T00:00:39.033

Reputation: 523

1Please always post the full, uncut command line output, not just the warnings or errors you think are relevant. – slhck – 2015-02-02T06:35:06.463

Answers

2

The problem was in using the same file as input and output.

Vituel

Posted 2015-02-02T00:00:39.033

Reputation: 523

1thanks, please accept your own answer. That was the problem – UserK – 2017-10-05T13:36:22.590