Closed daveriedstra closed 2 years ago
I updated the README with a section on this:
https://github.com/slhck/ffmpeg-normalize#could-not-write-header-for-output-file-error
The basic issue is that by default the PCM codec (pcm_s32le
) is chosen (to avoid quality loss), but that does not work for FLAC containers. Choose the flac codec manually with -c:a flac
.
I've also updated the code to give a clearer error message in that case:
➜ ffmpeg-normalize test/test.wav -o out.flac
ERROR: Output extension flac does not support PCM audio. Please choose a suitable audio codec with the -c:a option.
Hi there -- seems that specifying a flac output with either
-o
or-ext
will cause the program to fail.Here's the invocation and the output running on a stereo wav file. It fails the same on a mono flac file but succeeds with no extension specified.
Versions: