Best way to compress wav files?

Discussion in 'Computer Software and Operating Systems' started by Sonic Angel Knight, May 5, 2017.

  1. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,842
    4,924
    May 27, 2016
    United States
    New York
    So lately I been trying to start a project. Basically i have a build of SNES9X that supports MSU-1, so if anyone know what that means, you can use cd audio in snes games naively by converting wav to pcm format. The format is basic.
    • 16-Bit audio
    • sample rate 44100
    • 2 channels (Or 1 stereo channel)
    Is not some super amazing project to this community, just a personal one, is only to replace music that is all. I managed to successfully do the conversion with with proper looping using some tools, the only problem is the file is like 26MB and is quite big for modern audio files that people use especially since the song isn't over 3 Minutes. I want to be able to get smallest file size possible with good quality and volume. If anyone know of a good way to compress wav files please explain.
     
  2. Enkuler

    Enkuler Member

    Newcomer
    18
    13
    Jan 25, 2017
    France
    ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 1 output.mp3

    edit: didn't see that you wanted pcm, here
    ffmpeg -i file.wav -f s16be -ac 2 -ar 44100 -acodec pcm_s16be file.raw
     
    Last edited by Enkuler, May 5, 2017
    VinsCool likes this.
  3. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,842
    4,924
    May 27, 2016
    United States
    New York
    What do i do with this information? O_O
     
  4. Joom

    Joom  ❤❤❤

    Member
    3,906
    2,624
    Jan 8, 2016
    United States
    You use it with ffmpeg.
     
    VinsCool likes this.
  5. Sonic Angel Knight
    OP

    Sonic Angel Knight GBAtemp Guru

    Member
    9,842
    4,924
    May 27, 2016
    United States
    New York
    How does that help me compress a wave file? O_O