Yes I included that information in my first email... ffprobe shows what metadata its receiving, then the actual info on the stream
metadata
> >> icy-br : 256
> >> icy-sr : 22050
Actual
> >> Duration: N/A, bitrate: 62 kb/s
> >> Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 62 kb/s
Basically 64k is as high as I can get it...
Now if I use something like ffmpeg to do the transcoding instead of liquidsoap,
using the same codec (libfdk_aac)
Ffprobe shows
Duration: N/A, bitrate: 249 kb/s
Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 249 kb/s
-alex
> On Jul 27, 2017, at 5:45 18PM, Romain Beauxis <[email protected]> wrote:
>
> Hi,
>
> Have you tried to download the stream and run ffprobe on it? Most likely,
> shoutcast isn't reporting the correct value.
>
> Romain
>
> 2017-07-13 10:39 GMT-05:00 Alex LaBranche <[email protected]>:
> > Does anyone have any insight on this?
> >
> >
> >> On Jul 5, 2017, at 12:44 24AM, Alex LaBranche <[email protected]> wrote:
> >>
> >> It seems that when I'm using fdkaac (the only aac encoder available now
> >> from the looks of it) the highest bitrate it will output is 64k
> >>
> >> This is what I have configured...
> >>
> >> output.shoutcast(%fdkaac(channels=2,bitrate=256,samplerate=44100),icy_id=5,icy_metdata="true",
> >> name="Radio - 256k
> >> HE-AACv2",genre="Genre",url="https://www.domain.com",host="127.0.0.1",port
> >> = 80,password = "radio:#5",radio)
> >>
> >> output.shoutcast(%fdkaac(channels=2,bitrate=128,samplerate=44100),icy_id=6,icy_metdata="true",name="Radio
> >> - 128k
> >> HE-AACv2",genre="Genre",url="https://www.domain.com",host="127.0.0.1",port
> >> = 80,password = "radio:#6",radio)
> >>
> >> output.shoutcast(%fdkaac(channels=2,bitrate=64,samplerate=44100),icy_id=7,icy_metdata="true",name="Radio
> >> - 64k
> >> HE-AACv2",genre="Genre",url="https://www.domain.com",host="127.0.0.1",port
> >> = 80,password = "radio:#7",radio)
> >>
> >> output.shoutcast(%fdkaac(channels=2,bitrate=24,samplerate=44100),icy_id=8,icy_metdata="true",name="Radio
> >> - 24k
> >> HE-AACv2",genre="Genre",url="https://www.domain.com",host="127.0.0.1",port
> >> = 80,password = "radio:#8",radio)
> >>
> >> I have a separate script thats basically the same but its outputting mp3
> >> (to the first 4 sid's on the sc_serv)
> >>
> >>
> >> The Shoutcast status page reports the correct bitrate, but reports half
> >> the sample rate
> >>
> >> HE-AAC @ 256 kbps, 22.05 kHz
> >> HE-AAC @ 128 kbps, 22.05 kHz
> >> HE-AAC @ 64 kbps, 22.05 kHz
> >> HE-AAC @ 24 kbps, 22.05 kHz
> >>
> >> Odd.. ok... lets have a closer look...
> >>
> >>
> >> $ ffprobe -hide_banner http://127.0.0.1/stream/?sid=5
> >> Input #0, aac, from 'http://127.0.0.1/stream/?sid=5':
> >> Metadata:
> >> icy-notice1 : <BR>This stream requires <a
> >> href="http://www.winamp.com">Winamp</a><BR>
> >> icy-notice2 : SHOUTcast DNAS/posix(linux x64) v2.5.1.724<BR>
> >> icy-name : Radio
> >> icy-genre : Genre
> >> icy-br : 256
> >> icy-sr : 22050
> >> icy-url : https://www.domain.com
> >> icy-pub : 1
> >> Duration: N/A, bitrate: 62 kb/s
> >> Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 62 kb/s
> >>
> >>
> >> So liquidsoap is sending the configured bitrate, and half the configured
> >> samplerate as metadata
> >>
> >> But is actually sending at 64kbps 44100 Hz
> >>
> >>
> >> A look at the 24k...
> >>
> >> icy-br : 24
> >> icy-sr : 22050
> >> icy-url : https://www.domain.com
> >> icy-pub : 1
> >> Duration: N/A, bitrate: 22 kb/s
> >> Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 22 kb/s
> >>
> >> Ok its got the bitrate and the sample rate correct in the actual stream,
> >> but again fails at the icy-sr at only half
> >>
> >> And for the 128k...
> >>
> >> icy-br : 128
> >> icy-sr : 22050
> >> icy-url : https://www.domain.com
> >> icy-pub : 1
> >> Duration: N/A, bitrate: 64 kb/s
> >> Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 64 kb/s
> >>
> >> And the 64k...
> >>
> >> icy-br : 64
> >> icy-sr : 22050
> >> icy-url : https://www.domain.com
> >> icy-pub : 1
> >> Duration: N/A, bitrate: 66 kb/s
> >> Stream #0:0: Audio: aac (HE-AACv2), 44100 Hz, stereo, fltp, 66 kb/s
> >>
> >>
> >> Now lets try mediainfo
> >>
> >> 256k
> >>
> >> General
> >> Complete name : http://127.0.0.1/stream/?sid=5
> >> Format : ADTS
> >> Format/Info : Audio Data Transport Stream
> >> Overall bit rate mode : Variable
> >>
> >> Audio
> >> Format : AAC
> >> Format/Info : Advanced Audio Codec
> >> Format version : Version 4
> >> Format profile : HE-AACv2 / HE-AAC / LC
> >> Bit rate mode : Variable
> >> Channel(s) : 2 channels / 1 channel / 1
> >> channel
> >> Channel positions : Front: L R / Front: C / Front: C
> >> Sampling rate : 44.1 kHz / 44.1 kHz / 22.05 kHz
> >> Frame rate : 21.533 FPS (1024 spf)
> >> Compression mode : Lossy
> >> Stream size : 0.00 Byte
> >>
> >>
> >> 128k
> >>
> >> General
> >> Complete name : http://127.0.0.1/stream/?sid=6
> >> Format : ADTS
> >> Format/Info : Audio Data Transport Stream
> >> Overall bit rate mode : Variable
> >>
> >> Audio
> >> Format : AAC
> >> Format/Info : Advanced Audio Codec
> >> Format version : Version 4
> >> Format profile : HE-AACv2 / HE-AAC / LC
> >> Bit rate mode : Variable
> >> Channel(s) : 2 channels / 1 channel / 1
> >> channel
> >> Channel positions : Front: L R / Front: C / Front: C
> >> Sampling rate : 44.1 kHz / 44.1 kHz / 22.05 kHz
> >> Frame rate : 21.533 FPS (1024 spf)
> >> Compression mode : Lossy
> >> Stream size : 0.00 Byte
> >>
> >>
> >> 64k
> >>
> >> General
> >> Complete name : http://127.0.0.1/stream/?sid=7
> >> Format : ADTS
> >> Format/Info : Audio Data Transport Stream
> >> Overall bit rate mode : Variable
> >>
> >> Audio
> >> Format : AAC
> >> Format/Info : Advanced Audio Codec
> >> Format version : Version 4
> >> Format profile : HE-AACv2 / HE-AAC / LC
> >> Bit rate mode : Variable
> >> Channel(s) : 2 channels / 1 channel / 1
> >> channel
> >> Channel positions : Front: L R / Front: C / Front: C
> >> Sampling rate : 44.1 kHz / 44.1 kHz / 22.05 kHz
> >> Frame rate : 21.533 FPS (1024 spf)
> >> Compression mode : Lossy
> >> Stream size : 0.00 Byte
> >>
> >>
> >> 24k
> >>
> >> General
> >> Complete name : http://127.0.0.1/stream/?sid=8
> >> Format : ADTS
> >> Format/Info : Audio Data Transport Stream
> >> Overall bit rate mode : Variable
> >>
> >> Audio
> >> Format : AAC
> >> Format/Info : Advanced Audio Codec
> >> Format version : Version 4
> >> Format profile : HE-AACv2 / HE-AAC / LC
> >> Bit rate mode : Variable
> >> Channel(s) : 2 channels / 1 channel / 1
> >> channel
> >> Channel positions : Front: L R / Front: C / Front: C
> >> Sampling rate : 44.1 kHz / 44.1 kHz / 22.05 kHz
> >> Frame rate : 21.533 FPS (1024 spf)
> >> Compression mode : Lossy
> >> Stream size : 0.00 Byte
> >>
> >>
> >> Looks like the channels are procreating and is reporting as variable
> >> bitrate when the default for fdkaac is cbr.
> >>
> >> From their docs..
> >>
> >> • AACENC_BITRATEMODE Bitrate mode. Configuration can be different
> >> kind of bitrate configurations- :
> >>
> >> <page37image15360.png>
> >> 0: Constant bitrate, use bitrate according to AACENC_BITRATE. (default)
> >> Within none LD/ELD ::AUDIO_OBJECT_TYPE, the CBR mode makes use of full
> >> allowed bitreservoir. In contrast, at Low-Delay ::AUDIO_OBJECT_TYPE the
> >> bitreservoir is kept very small.
> >> 8: LD/ELD full bitreservoir for packet based transmission.
> >>
> >>
> >> $ liquidsoap --version
> >> Liquidsoap 1.3.1
> >> (git://github.com/savonet/liquidsoap.git@cbfcd6004d7dba7211cd1d33a38fe192e1da9219:20170702:171027)
> >>
> >> This is all very odd so if anyone can shed some light that would be
> >> awesome...
> >>
> >> Cheers,
> >>
> >> -alex
> >> ------------------------------------------------------------------------------
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org!
> >> http://sdm.link/slashdot_______________________________________________
> >> Savonet-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org!
> http://sdm.link/slashdot_______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
