jfchapman / CoolEditFileFilters

Cool Edit File Filters
MIT License
0 stars 1 forks source link

Bug: ffmpeg filter, if used alongside FLAC filter, will open FLAC files and always open them as 32-bit #2

Open Lebon14 opened 2 weeks ago

Lebon14 commented 2 weeks ago

Pretty much the title.

How to test this. Make sure you have both ffmpeg and flac filters in the program directory. Then, open Audition / Cool Edit. Open the 16-bit FLAC file. In the bottom right, it should say the Sampling rate (in Hz), 32-bit, Stéréo.

32-bit float should only be used with 24-bit FLAC files. So, if both are used at the same time, the FLAC filter should have priority over ffmpeg.

This is annoying because you then to create a separate 16-bit track and copy the audio in it so Audition/Cool Edit doesn't mess with the mastering (at least with how Audition does things... I don't remember at all how CEP does things but should be similar). For example. If you apply an equalizer and it clips the track and then do a normalization effect at, say, 99%, it will return the waveform back to what it was before you applied the Equalizer even if you were doing this intentionally.

jfchapman commented 5 days ago

Hi,

I've updated the FFmpeg filter so that it will read FLAC files using the correct bits per sample (8, 16 or 32).

Due to the way Cool Edit scans the filters, it is not possible to specify which filter opens which file, if multiple filters can read the same format. I suspect it orders the filters based on the filter description, which is embedded in the .dll, so renaming the filters won't help.

Anyway, the FFmpeg filter will read FLAC files just fine, and should now use the same sample format as the native filter. Some other formats handled by the FFmpeg filter don't specify a bits per sample value (e.g. ogg), so in this case the file will be read in as 32-bit.

Thanks, James