Quantcast
Channel: Airtime Support Discussions on Sourcefabric Forum
Viewing all articles
Browse latest Browse all 1390

Default samplerate

$
0
0
Hi!

For our radio station we broadcast on 64kbps. When testing airtime I noticed the sound's quality was poor. Couldn't blame liquidsoap for reencoding because I used it before on the same songs. I then saw in ls_script that when defining output.icecast you only define the bitrate. The default for samplerate is 44 100. But at low bitrates the quality of the sound way become very poor. I hardcoded the script and now it's ok. For 64kbps we use 22 050 for samplerate.

This is what I added to ls_lib.liq

 if type == "mp3" then
            if bitrate == 24 then
                ignore(output(%mp3(bitrate = 24),s))
            elsif bitrate == 32 then
                ignore(output(%mp3(bitrate = 32),s))
            elsif bitrate == 48 then
                ignore(output(%mp3(bitrate = 48),s))
            elsif bitrate == 64 then
                ignore(output(%mp3(bitrate = 64, samplerate = 22050),s))
            elsif bitrate == 96 then
                ignore(output(%mp3(bitrate = 96),s))
            elsif bitrate == 128 then
                ignore(output(%mp3(bitrate = 128),s))
            elsif bitrate == 160 then
                ignore(output(%mp3(bitrate = 160),s))
            elsif bitrate == 192 then
                ignore(output(%mp3(bitrate = 192),s))
            elsif bitrate == 224 then
                ignore(output(%mp3(bitrate = 224),s))
            elsif bitrate == 256 then
                ignore(output(%mp3(bitrate = 256),s))
            elsif bitrate == 320 then
                ignore(output(%mp3(bitrate = 320),s))
            end
        else


Don't you think you should allow the user to choose the samplerate? Or... you may set in the script suitable samplerates for all possible bitrates?

Alexandru!

Viewing all articles
Browse latest Browse all 1390

Trending Articles