Examples usage of various codecs with FFMpeg.
- flac.sh : An Icecast Source Client
- for Windows (Cygwin is required)
- and macOS (
brew install ffmpeg
)
- another_examples.sh : Samples
- FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3
- this script shows optimal format, container and codec combinations.
- Recommended settings for stable streaming with good quality:
- HE-AAC (aac_he): 48k-64k
- HE-AACv2 (aac_he_v2): 32k-48k
- LC-AAC VBR 3-4
- Higer is good quality, increases bitrate
- if you want to use CBR, set 96k-128k. (not recommended)
- Opus VBR 48k-64k
- CBR is not recommended
- Vorbis q3
- Higer is good quality, increases bitrate
- MP3 V6-V4
- Lower is good quality, increases bitrate
- if you want to use CBR, set 128k-160k
@edenzul
These bitrates are based on an objective assessment of sound quality by HydrogenAudio and my subjective perception, with the goal of achieving FM radio-quality sound.
Note that AAC is the case when FDK-AAC is used, and other codecs may have lower sound quality at equivalent bitrates.
https://wiki.hydrogenaud.io/index.php?title=Opus
https://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC
https://wiki.hydrogenaud.io/index.php?title=Recommended_Ogg_Vorbis#Recommended_Encoder_Settings
https://wiki.hydrogenaud.io/index.php/LAME#Recommended_encoder_settings
https://qiita.com/keiya/items/70ed223c85e72b6bfdda