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
Hi I have this ultra strange issue, but I am using this command to stream to icecast, when I try to load the stream on my browser on another computer it doesn't play at all, but as soon as I close the ffmpeg script it plays for a short period and dies. Am I missing a setting?
ffmpeg -f "dshow" -i "audio=@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{C813B450-CA6A-45E5-9155-8E7EB6F5AEB2}" -c:a aac -b:a 320k -content_type 'audio/aac' -vn -f adts icecast://source:hackme@localhost:8000/WQXR-A