Downsampling Help Needed: Aliasing Prevention

Discussion in 'Working with Sound' started by tommyzai, Feb 12, 2025.

  1. canbi

    canbi Kapellmeister

    Joined:
    Jun 12, 2023
    Messages:
    178
    Likes Received:
    61
    ffmpeg -y -i "input.wav" -af aresample=32000:cutoff=1 "output.wav"
     
  2. Obineg

    Obineg Platinum Record

    Joined:
    Dec 7, 2020
    Messages:
    795
    Likes Received:
    289
    it is not such type of filters as you might think, but of course a proper algorithm does some filtering.

    modern DAWs are all very good, yet not identical.


    an ideal SRC algorithm goes over the least common multiple.

    for example the LCR of 96000 and 44100 is 14112000.

    so if you want to export a 44100 file from a 96000 file, you first make 147 copies of every sample, and then press 320 of these samples into 1 sample of the target file.
    the filtering is very easy and basically only consists of averaging these 320 samples, and the result is close to perfect. it is just very slow to process...
     
    • Interesting Interesting x 1
    • List
  3. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,359
    Likes Received:
    1,015
    I'd like to add that what you said is true in principle for non-integer resampling, but that upsampling by some integer multiple (say 16x) and then, for efficiency's sake, interpolating up/down the remainder using (Mitchell, Catmull, B-Spline, ...) is more common in practice.
     
  4. Obineg

    Obineg Platinum Record

    Joined:
    Dec 7, 2020
    Messages:
    795
    Likes Received:
    289
    i think mathematically it is the same, the LCR of 44100 and 88200 is 88200, so you can average by /2.

    additional, "unneccesary" upsampling factors for the interpolation is of course also happening, and it a good compromise, but i am never sure if you can tell a best practice for that? it is interesting how different even the best apps are when it comes to the very last artefacts.
     
  5. bluerover

    bluerover Audiosexual

    Joined:
    May 3, 2013
    Messages:
    1,358
    Likes Received:
    1,198
    Adobe Audition is the best. run your file through there and you're g2g.
     
Loading...
Similar Threads - Downsampling Help Needed Forum Date
Downsampling from 48 to 44.1 Mixing and Mastering Aug 16, 2014
Your opinion on downsampling Working with Sound Jun 7, 2011
Can someone who is familiar with Photoshop help me? PC Yesterday at 5:27 AM
can someone help me with this clicking synth sound? how to make "that" sound Mar 30, 2025
Sync a tb303/tr707 to daw. (help needed) Mixing and Mastering Mar 26, 2025
Loading...