slhck / ffmpeg-normalize

Audio Normalization for Python/ffmpeg
MIT License
1.25k stars 117 forks source link

Can't use codecs marked with experimental flag, such as 'dca' #137

Closed M0shr00m closed 3 years ago

M0shr00m commented 3 years ago

Using any experimental audio codec for encoding, such as dca, requires the "-strict -2" or "-strict experimental" flag be placed in the ffmpeg call, specifically, right before the output specification, as shown here

I have tried putting this flag in the '-e' and '-ei' sections, but ffmpeg-normalize responds with an "unrecognized argument" error.

Sample usage: ffmpeg-normalize "input.mkv" -e='-strict -2' -o "output.mkv" --audio-codec dca --audio-bitrate 1536k --target-level -21

slhck commented 3 years ago

I cannot reproduce with the latest version. Please fill out the entire issue template so we can diagnose it, thanks!