Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bits Per Sample & Sample Rate Conversions #43

Open
Barough opened this issue Aug 15, 2023 · 3 comments
Open

Bits Per Sample & Sample Rate Conversions #43

Barough opened this issue Aug 15, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request mid priority Medium priority question Further information is requested

Comments

@Barough
Copy link

Barough commented Aug 15, 2023

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

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

@Barough Barough added the enhancement New feature or request label Aug 15, 2023
@jessielw jessielw added the mid priority Medium priority label Aug 16, 2023
@jessielw
Copy link
Owner

This shouldn't be too difficult to implement

@jessielw jessielw added the question Further information is requested label Aug 16, 2023
@jessielw
Copy link
Owner

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)

@Barough
Copy link
Author

Barough commented Aug 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mid priority Medium priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants