Prototypology/Transcodology-2: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= How to compress audio? =  
= How to compress audio? =  
== Why compressing audio? ==
 
<onlyinclude>
=== Why compressing audio? ===


* Which formats can be used on a web page?
* Which formats can be used on a web page?
Line 7: Line 9:
** [https://caniuse.com/?search=opus opus]
** [https://caniuse.com/?search=opus opus]


== The fancy and hard way ==
=== The fancy and hard way ===
Uses FFmpeg. FFmpeg is a powerful, open-source tool for decoding, encoding, and manipulating multimedia files.
Uses FFmpeg. FFmpeg is a powerful, open-source tool for decoding, encoding, and manipulating multimedia files.
<pre>
<pre>
Line 26: Line 28:
** opus https://opus-codec.org/
** opus https://opus-codec.org/


== The easy way  ==  
=== The easy way  ===  
Use [https://www.audacityteam.org/ audacity] :D
Use [https://www.audacityteam.org/ audacity] :D
# Open the file with audacity
# Open the file with audacity
Line 37: Line 39:
# Click on [Save]
# Click on [Save]


== Further readings ==  
=== Further readings ===
* [https://en.wikipedia.org/wiki/Compression_artifact#Audio Audio compression artifacts]
* [https://en.wikipedia.org/wiki/Compression_artifact#Audio Audio compression artifacts]
* [http://computationalculture.net/reflections-on-the-mp3-format/ Interview with Jonathan Sterne]
* [http://computationalculture.net/reflections-on-the-mp3-format/ Interview with Jonathan Sterne]
</onlyinclude>

Latest revision as of 15:10, 10 September 2025

How to compress audio?

Why compressing audio?

  • Which formats can be used on a web page?

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:

The easy way

Use audacity :D

  1. Open the file with audacity
  2. Click on [File] -> [Export]
    1. Select [Export as MP3]
    2. Select [Export as OGG]
    3. Select [Export Audio ...] for opus
  3. In the new window that open you can select different format optins.
  4. select a name for the new file
  5. Click on [Save]

Further readings