Radio Radio: Difference between revisions
Vitrinekast (talk | contribs) No edit summary |
Vitrinekast (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
From 25.3MB Flac to 1.7MB .mp3 and 369KB Opus! | From 25.3MB Flac to 1.7MB .mp3 and 369KB Opus! | ||
{{audio|mp3=https://pzwiki.wdka.nl/mw-mediadesign/images/a/ac/Super-compression_20231026_output.mp3}} | {{audio|mp3=https://pzwiki.wdka.nl/mw-mediadesign/images/a/ac/Super-compression_20231026_output.mp3}} | ||
Protocol for compression | |||
<syntaxhighlight> | |||
ffmpeg -i input.flac -b:a 8k 1_output_lowest_bitrate.wav | |||
sox 1_output_lowest_bitrate.wav -c 1 2_output_mono.wav | |||
sox 2_output_mono.wav -r 8000 3_output_lowest_sample_rate.wav | |||
sox 3_output_lowest_sample_rate.wav -b 8 4_output_lowest_bit_depth.wav | |||
sox -v 0.02 4_output_lowest_bit_depth.wav -G 5_output_dynamic-range.wav compand 0.1,0.3 -60,-60,-30,-15,-20,-12,-4,-8,-2,-7 -2 | |||
ffmpeg -i 5_output_dynamic-range.wav -c:a libvorbis output.ogg | |||
ffmpeg -i 5_output_dynamic-range.wav -b:a 192k output.mp3 | |||
ffmpeg -i 5_output_dynamic-range.wav -c:a libopus -b:a 16k output.opus | |||
</syntaxhighlight> | |||
== Creating a private radio stream == | == Creating a private radio stream == | ||
- using [https://icecast.org/ icecast] and darkIce | - using [https://icecast.org/ icecast] and darkIce |
Revision as of 22:12, 26 October 2023
Documentation of creating the radio radio
Compressing the shit out of audio files
Using a combination of sox and ffmpeg, i was able to get the following step-by-step result, all towards lowering the filesize of the input audio. Mediawiki limits the use of .wav, .opus and .ogg, so slightly altered results. But using wav's, i got to the following From 25.3MB Flac to 1.7MB .mp3 and 369KB Opus!
Protocol for compression
ffmpeg -i input.flac -b:a 8k 1_output_lowest_bitrate.wav
sox 1_output_lowest_bitrate.wav -c 1 2_output_mono.wav
sox 2_output_mono.wav -r 8000 3_output_lowest_sample_rate.wav
sox 3_output_lowest_sample_rate.wav -b 8 4_output_lowest_bit_depth.wav
sox -v 0.02 4_output_lowest_bit_depth.wav -G 5_output_dynamic-range.wav compand 0.1,0.3 -60,-60,-30,-15,-20,-12,-4,-8,-2,-7 -2
ffmpeg -i 5_output_dynamic-range.wav -c:a libvorbis output.ogg
ffmpeg -i 5_output_dynamic-range.wav -b:a 192k output.mp3
ffmpeg -i 5_output_dynamic-range.wav -c:a libopus -b:a 16k output.opus
Creating a private radio stream
- using icecast and darkIce