FFMPEG-Audio-Encoder icon indicating copy to clipboard operation
FFMPEG-Audio-Encoder copied to clipboard

Bits Per Sample & Sample Rate Conversions

Open Barough opened this issue 1 year ago • 3 comments

Would it be possible to add options to do Bits Per Sample & Sample Rate Conversions?

Example 24bit/96 kHz ->16bit/44.1 kHz

Barough avatar Aug 15 '23 13:08 Barough

This shouldn't be too difficult to implement

jessielw avatar Aug 16 '23 06:08 jessielw

There is already a sample rate conversion that is supported by each codec

image

However, bit depth conversion is not supported at this time. In general MOST lossy codecs actually only support 16 bit. This would not be modifiable in the lossy codecs. Could add support for it in the lossless codecs which is really just FLAC.

So not sure if this is worth looking at anymore than this. However, adding SOXR as the resampler might be worth it, but this would only be builds of FFMPEG that supports it. (I think by default most of them do now)

jessielw avatar Aug 16 '23 18:08 jessielw

Totally missed the Sample Rate option in there. ;)

Don't think i've every seen an lossy that's not 16-bit. As you say, 24-bit is seen in lossless files as FLAC, WavPack etc.

SoX is said to be the best one out there according to many.

Try and add the best solution in your mind when it comes to bit depth conversion.

Barough avatar Aug 16 '23 21:08 Barough

Any progress related to bit depth conversion or? Just a little inquiry here ;)

Barough avatar Jul 06 '24 17:07 Barough

Hello,

Last we discussed above (I know it's been a while), the only supported codec we use is FLAC for bit depth conversion. Utilizing SOX would be nice, but I haven't done any work on this. I've been working on LOTS of other tools, some closed source tools that I'll bring to light eventually.

Explain to me exactly what you'd like to see and perhaps we can see about potentially adding it into the software! Remember, if there is a specific use case, you can save a profile with custom command line settings (like using SOX/bit depth for FLAC).

jessielw avatar Jul 06 '24 19:07 jessielw

It was a friend of mine that asked i've heard anything more about this. I know there is other solutions available out there for bit depth conversion so i actually think we can let this one pass.

Barough avatar Jul 07 '24 08:07 Barough

It was a friend of mine that asked i've heard anything more about this. I know there is other solutions available out there for bit depth conversion so i actually think we can let this one pass.

Alright! We'll, re-open an issue if you can think of anything else.

jessielw avatar Jul 07 '24 21:07 jessielw