Prototypology/Transcodology-2
Revision as of 00:08, 26 November 2024 by Joak (talk | contribs) (Created page with "= How to compress audio? = == Why compressing audio? == * Which formats can be used on a web page? ** [https://caniuse.com/?search=mp3 mp3] ** [https://caniuse.com/?search=ogg ogg] ** [https://caniuse.com/?search=opus opus] == The fancy and hard way == Uses FFmpeg. FFmpeg is a powerful, open-source tool for decoding, encoding, and manipulating multimedia files. <pre> ffmpeg -i input.wav -b:a 128k output.mp3 </pre> * the option "-i" is the input file * the option "-b:...")
How to compress audio?
Why compressing audio?
The fancy and hard way
Uses FFmpeg. FFmpeg is a powerful, open-source tool for decoding, encoding, and manipulating multimedia files.
ffmpeg -i input.wav -b:a 128k output.mp3
- the option "-i" is the input file
- the option "-b:a" specifies the bit rate. its in kilobit per seconds. more bit less information is lost. possible option could be:
- 96k
- 112k
- 128k
- 160k
- 192k
- 256k
- 320k
- the last argument is the output file. with the format(.mp3) you define the compression format. options for audio would be:
- mp3
- ogg (or oga) https://www.xiph.org/ogg/
- opus https://opus-codec.org/
The easy way
Use audacity :D
- Open the file with audacity
- Click on [File] -> [Export]
- Select [Export as MP3]
- Select [Export as OGG]
- Select [Export Audio ...] for opus
- In the new window that open you can select different format optins.
- select a name for the new file
- Click on [Save]