What are the soxr commands that are built in and default and used here, but not shown, that is in this command?
I know there's "precision=28" is default in this soxr command, but that it's hidden for some reason.
Assistant
In your FFmpeg command, you're using the aresample filter with the resampler set to soxr (although in your command it says sox, it should be soxr). When you specify resampler=soxr without providing additional soxr-specific options, FFmpeg uses the default parameters for the soxr resampling library.
The soxr (SOX Resampler library) options that are built-in, default, and used implicitly in your command are as follows:
Precision (precision): This sets the resampling precision, which affects the quality and computational complexity of the resampling process.
Default Value: 20 bits
In Your Context: You've observed or specified that it defaults to 28 bits. This higher precision provides better quality at the expense of increased computational load.
Phase Response (phase_response): This controls the phase response of the resampling filter.
Default Value: 50 (which corresponds to linear phase)
Interpretation: A value of 50 means the filter has a linear phase response, balancing between the minimal and maximum phase.
Chebyshev Approximation (cheby): Determines whether to use a Chebyshev 'I' (minimally passband ripple) polynomial approximation.
Default Value: 0 (disabled)
Effect: When disabled, the resampler uses the standard bandlimited interpolation.
Filter Type (filter_type): Sets the type of resampling filter.
Default Value: 3 (linear phase)
Options:
0: no filter
1: minimal phase
2: intermediate phase
3: linear phase
Number of Threads (soxr_threads): Determines the number of threads the soxr resampler will use.
Default Value: 0 (automatic selection based on the environment)
Effect: Setting to 0 lets soxr decide the optimal number of threads.
Passband End (passband_end) and Stopband Start (stopband_start): Define the end of the passband and the start of the stopband, respectively.
Default Values:
passband_end: 0.975
stopband_start: 1.0
Effect: These determine the frequency response of the resampling filter.
Additional Parameters: There are other parameters like attenuation and precision, but unless specified, they remain at their default values.
Why Defaults are Used: If you don't explicitly set these options in your command, FFmpeg applies the default settings for the soxr resampler. These defaults are designed to provide a balance between quality and performance for general use cases.
Example with Explicit Defaults: If you wanted to make all the default parameters explicit in your command, it would look something like this:
Key Takeaway: In your command, the soxr resampler is using the default parameters (like precision=28, phase_response=50, etc.) because you haven't specified them explicitly. These hidden defaults ensure the resampler works effectively without needing the user to specify every parameter unless customization is required.