Recently, I had the task of broadcasting a radio stream and a stream of an online podcast broadcast, in AAC (Advanced Audio Coding) format. This format is more economical than MP3, and at the same time allows you to maintain an acceptable sound quality. Subjectively, 48Kbps AAC is no different from 64Kbps MP3. In this brief note I will describe how I set up simultaneous broadcasting in MP3 formats 128Kbps, MP3 64Kbps and AAC 48Kbps. At the same time, I used the OpenSource-tool streamTranscoderv3, about which, for some reason, there was not a word on the habr. The principle of operation of streamTranscoder is shown in the figure. Further, how to collect and use it.# svn co svn.oddsock.org/public/trunk/streamTranscoderv3
# apt-get install automake libtool libmad0-dev libflac-dev libfaac-dev
ACLOCAL_AMFLAGS = -I m4 AC_PROG_CXX AC_DEFINE(HAVE_FAAC,1) FAAC_CFLAGS LIBFLAC_LIBDIR=. ./autogen.sh # mkdir -p / opt / streamTranscoder
# mv streamTranscoderv3 / opt / streamTranscoder
# cd / opt / streamTranscoder
# ./streamTranscoderv3
# The source URL for the broadcast. It must be in the form http://server:port/mountpoint. For those servers without a mountpoint (Shoutcast) use http://server:port. SourceURL=http://127.0.0.1:1976/apple AutomaticReconnectSecs=10 AutoConnect=1 # Log Level 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_INFO, 3 = LOG_ERROR+LOG_INFO+LOG_DEBUG LogLevel=2 # Log File LogFile=streamTranscoder # Number of encoders to use NumEncoders=2 Source: https://habr.com/ru/post/138186/
All Articles