aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-11 11:48:03 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-11 11:48:39 +0200
commit2fc4dad6f1cd8c2f7798822d07b6918e639ee200 (patch)
tree82abe5f9191327ac3c05e0e9b79d0dcd97985210
parente09e4d5b8972ece3836162e24c229b7b0dc8c54d (diff)
downloadODR-AudioEnc-2fc4dad6f1cd8c2f7798822d07b6918e639ee200.tar.gz
ODR-AudioEnc-2fc4dad6f1cd8c2f7798822d07b6918e639ee200.tar.bz2
ODR-AudioEnc-2fc4dad6f1cd8c2f7798822d07b6918e639ee200.zip
Rename project to ODR-AudioEnc for consistency
-rw-r--r--.gitignore4
-rw-r--r--Doxyfile2
-rw-r--r--Makefile.am70
-rw-r--r--README.md39
-rw-r--r--configure.ac2
-rw-r--r--libtoolame-dab/README.md2
-rw-r--r--src/VLCInput.h2
-rw-r--r--src/odr-audioenc.cpp (renamed from src/odr-audioencoder.cpp)8
8 files changed, 61 insertions, 68 deletions
diff --git a/.gitignore b/.gitignore
index 560faa5..a5b8794 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,6 @@ Makefile.in
aclocal.m4
autom4te.cache
configure
-fdk-aac-dabplus.pc
config.guess
config.log
config.status
@@ -28,5 +27,4 @@ m4/ltversion.m4
m4/lt~obsolete.m4
missing
stamp-h1
-mot-encoder
-odr-audioencoder
+odr-audioenc
diff --git a/Doxyfile b/Doxyfile
index 69047e8..fd7f53f 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -1,7 +1,7 @@
# Doxyfile 1.8.11
DOXYFILE_ENCODING = UTF-8
-PROJECT_NAME = "ODR-AudioEncoder"
+PROJECT_NAME = "ODR-AudioEnc"
PROJECT_NUMBER = $(PROJECT_NUMBER)
PROJECT_BRIEF = "ODR-mmbTools DAB and DAB+ Audio Encoder"
diff --git a/Makefile.am b/Makefile.am
index 31eccfc..691a857 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,48 +53,48 @@ libtoolame_dab_la_LDFLAGS = -version-info @LIBTOOLAME_DAB_VERSION@ \
-export-symbols $(top_srcdir)/libtoolame-dab.sym
if HAVE_JACK
-odr_audioencoder_LDADD_JACK = -ljack
+odr_audioenc_LDADD_JACK = -ljack
else
-odr_audioencoder_LDADD_JACK =
+odr_audioenc_LDADD_JACK =
endif
if HAVE_ALSA
-odr_audioencoder_LDADD_ALSA = -lasound
+odr_audioenc_LDADD_ALSA = -lasound
else
-odr_audioencoder_LDADD_ALSA =
+odr_audioenc_LDADD_ALSA =
endif
-odr_audioencoder_LDFLAGS = -no-install
-odr_audioencoder_LDADD = libtoolame-dab.la \
- -lfec -lzmq \
- -lrt $(odr_audioencoder_LDADD_JACK) \
- $(odr_audioencoder_LDADD_ALSA) \
- $(LIBVLC_LIBS)
-odr_audioencoder_CPPFLAGS = $(AM_CPPFLAGS) $(GITVERSION_FLAGS) -ggdb -O2
-odr_audioencoder_SOURCES = src/odr-audioencoder.cpp \
- src/FileInput.cpp \
- src/FileInput.h \
- src/AlsaInput.cpp \
- src/AlsaInput.h \
- src/JackInput.cpp \
- src/JackInput.h \
- src/VLCInput.cpp \
- src/VLCInput.h \
- src/SampleQueue.h \
- src/encryption.c \
- src/encryption.h \
- src/zmq.hpp \
- src/utils.c \
- src/utils.h \
- src/wavreader.c \
- src/charset.h \
- src/utf8.h \
- src/utf8/checked.h \
- src/utf8/unchecked.h \
- src/utf8/core.h \
- src/common.h
-
-bin_PROGRAMS = odr-audioencoder$(EXEEXT)
+odr_audioenc_LDFLAGS = -no-install
+odr_audioenc_LDADD = libtoolame-dab.la \
+ -lfec -lzmq \
+ -lrt $(odr_audioenc_LDADD_JACK) \
+ $(odr_audioenc_LDADD_ALSA) \
+ $(LIBVLC_LIBS)
+odr_audioenc_CPPFLAGS = $(AM_CPPFLAGS) $(GITVERSION_FLAGS) -ggdb -O2
+odr_audioenc_SOURCES = src/odr-audioenc.cpp \
+ src/FileInput.cpp \
+ src/FileInput.h \
+ src/AlsaInput.cpp \
+ src/AlsaInput.h \
+ src/JackInput.cpp \
+ src/JackInput.h \
+ src/VLCInput.cpp \
+ src/VLCInput.h \
+ src/SampleQueue.h \
+ src/encryption.c \
+ src/encryption.h \
+ src/zmq.hpp \
+ src/utils.c \
+ src/utils.h \
+ src/wavreader.c \
+ src/charset.h \
+ src/utf8.h \
+ src/utf8/checked.h \
+ src/utf8/unchecked.h \
+ src/utf8/core.h \
+ src/common.h
+
+bin_PROGRAMS = odr-audioenc$(EXEEXT)
noinst_HEADERS = src/wavreader.h
diff --git a/README.md b/README.md
index 8fa15c0..fefc435 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-ODR-AudioEncoder Package
+ODR-AudioEnc Package
========================
This package contains a DAB and DAB+ encoder that integrates into the
@@ -8,7 +8,7 @@ The DAB encoder is based on toolame. The DAB+ encoder uses a modified library
of the Fraunhofer FDK AAC code from Android, patched for 960-transform to do
DAB+ broadcast encoding. FDK-AAC has to be supplied separately.
-The main tool is the *odr-audioencoder* encoder, which can read audio from
+The main tool is the *odr-audioenc* encoder, which can read audio from
a file (raw or wav), from an ALSA source, from JACK or using libVLC,
and encode to a file, a pipe, or to a ZeroMQ output compatible with ODR-DabMux.
@@ -22,7 +22,7 @@ The JACK input does not automatically connect to anything. The encoder runs
at the rate defined by the system clock, and therefore sound
card clock drift compensation is also used.
-*odr-audioencoder* includes support for DAB MOT Slideshow and DLS, contributed by
+*odr-audioenc* includes support for DAB MOT Slideshow and DLS, contributed by
[CSP](http://rd.csp.it).
To encode DLS and Slideshow data, the *mot-encoder* tool reads images
@@ -90,7 +90,7 @@ and higher are using AAC-LC.
ZeroMQ output
-------------
-The ZeroMQ output included in ODR-AudioEncoder is able to connect to
+The ZeroMQ output included in ODR-AudioEnc is able to connect to
one or several instances of ODR-DabMux. The -o option can be used
more than once to achieve this.
@@ -98,17 +98,17 @@ Scenario *wav file for offline processing*
------------------------------------------
Wave file encoding, for non-realtime processing
- odr-audioencoder -b $BITRATE -i wave_file.wav -o station1.dabp
+ odr-audioenc -b $BITRATE -i wave_file.wav -o station1.dabp
Scenario *ALSA*
---------------
Live Stream from ALSA sound card at 32kHz, with ZMQ output for ODR-DabMux:
- odr-audioencoder -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -l
+ odr-audioenc -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -l
To enable sound card drift compensation, add the option **-D**:
- odr-audioencoder -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -D -l
+ odr-audioenc -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -D -l
You might see **U** and **O** appearing on the terminal. They correspond
to audio underruns and overruns that happen due to the different speeds at which
@@ -120,7 +120,7 @@ Scenario *libVLC input for a webstream*
---------------------------------------
Read a webstream and send it to ODR-DabMux over ZMQ:
- odr-audioencoder -v $URL -r 32000 -c 2 -o $DST -l -b $BITRATE
+ odr-audioenc -v $URL -r 32000 -c 2 -o $DST -l -b $BITRATE
If you need to extract the ICY-Text information, e.g. for DLS, you can use the
**-w <filename>** option to write the ICY-Text into a file that can be read by
@@ -134,14 +134,14 @@ Scenario *JACK input*
JACK input: Instead of -i (file input) or -d (ALSA input), use -j *name*, where *name* specifies the JACK
name for the encoder:
- odr-audioencoder -j myenc -l -b $BITRATE -f raw -o $DST
+ odr-audioenc -j myenc -l -b $BITRATE -f raw -o $DST
The samplerate of the JACK server should be 32kHz or 48kHz.
Scenario *local file through snd-aloop*
---------------------------------------
Play some local audio source from a file, with ZMQ output for ODR-DabMux. The problem with
-playing a file is that *odr-audioencoder* cannot directly be used, because ODR-DabMux
+playing a file is that *odr-audioenc* cannot directly be used, because ODR-DabMux
does not back-pressure the encoder, which will therefore encode much faster than realtime.
While this issue is sorted out, the following trick is a very flexible solution: use the
@@ -152,7 +152,7 @@ alsa virtual loop soundcard *snd-aloop* in the following way:
This creates a new audio card (usually 'hw:1' but have a look at /proc/asound/card to be sure) that
can then be used for the alsa encoder.
- ./odr-audioencoder -d hw:1 -c 2 -r 32000 -b 64 -o $DST -l
+ ./odr-audioenc -d hw:1 -c 2 -r 32000 -b 64 -o $DST -l
Then, you can use any media player that has an alsa output to play whatever source it supports:
@@ -170,14 +170,14 @@ Live Stream resampling (to 32KHz) and encoding from FIFO and preparing for DAB m
using mplayer. If there are no data in FIFO, encoder generates silence.
mplayer -quiet -loop 0 -af resample=32000:nowaveheader,format=s16le,channels=2 -ao pcm:file=/tmp/aac.fifo:fast <FILE/URL> &
- odr-audioencoder -l -f raw --fifo-silence -i /tmp/aac.fifo -r 32000 -c 2 -b 72 -o /dev/stdout \
+ odr-audioenc -l -f raw --fifo-silence -i /tmp/aac.fifo -r 32000 -c 2 -b 72 -o /dev/stdout \
mbuffer -q -m 10k -P 100 -s 1080 > station1.fifo
*Note*: Do not use /dev/stdout for pcm output in mplayer. Mplayer log messages on stdout.
Return values
-------------
-odr-audioencoder returns:
+odr-audioenc returns:
* 0 if it encoded the whole input file
* 1 if some options were not understood, or encoder initialisation failed
@@ -209,7 +209,7 @@ the generated files are smaller than 50kB and not larger than 320x240 pixels.
Supported Encoders
------------------
-*odr-audioencoder* can insert the PAD data from *mot-encoder* into the bitstream.
+*odr-audioenc* can insert the PAD data from *mot-encoder* into the bitstream.
The mp2 encoder [Toolame-DAB](https://github.com/Opendigitalradio/toolame-dab)
can also read *mot-encoder* data.
@@ -253,21 +253,16 @@ ODR-DabMux v0.7.0 and later.
LICENCE
=======
-It's complicated. The ODR-AudioEncoder project contains
+The ODR-AudioEnc project contains
- - The code for odr-audioencoder in src/ licensed under the Apache Licence v2.0. See
+ - The code for odr-audioenc in src/ licensed under the Apache Licence v2.0. See
http://www.apache.org/licenses/LICENSE-2.0
- libtoolame-dab, derived from TooLAME, licensed under LGPL v2.1 or later. See
libtoolame-dab/LGPL.txt. This is built into a shared library.
-The odr-audioencoder binary is linked agains the libtoolame-dab and fdk-aac
+The odr-audioenc binary is linked against the libtoolame-dab and fdk-aac
shared libraries.
-In addition to the audio encoder, there is also mot-encoder, containing code
-
- - in src/ that is GPL v3+ licensed
- - and a crc library with unclear licence situation in contrib/
-
Whether it is legal or not to distribute compiled binaries from these sources
is unclear to me. Please seek legal advice to answer this question.
diff --git a/configure.ac b/configure.ac
index 39a0ee7..dfcca2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([odr-audioencoder], [0.1.0], [http://opendigitalradio.org/])
+AC_INIT([ODR-AudioEnc], [0.1.0], [http://opendigitalradio.org/])
AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([tar-ustar foreign])
diff --git a/libtoolame-dab/README.md b/libtoolame-dab/README.md
index 0fa8cc6..069df5c 100644
--- a/libtoolame-dab/README.md
+++ b/libtoolame-dab/README.md
@@ -78,7 +78,7 @@ Mike Cheng <mikecheng at NOT planckenergy.com> (remove the NOT)
Matthias P. Braendli <matthias@mpb.li>
PAD insertion for DLS and slides
- Integration into ODR-AudioEncoder
+ Integration into ODR-AudioEnc
REFERENCE PAPERS
================
diff --git a/src/VLCInput.h b/src/VLCInput.h
index 1d01d66..5ef970b 100644
--- a/src/VLCInput.h
+++ b/src/VLCInput.h
@@ -202,7 +202,7 @@ class VLCInput
/* The thread running process takes samples from m_queue and writes
* them into m_samplequeue. This decouples m_queue from m_samplequeue
- * which is directly used by odr-audioencoder.cpp
+ * which is directly used by odr-audioenc.cpp
*/
void process();
diff --git a/src/odr-audioencoder.cpp b/src/odr-audioenc.cpp
index 80b7ae6..ab5dac2 100644
--- a/src/odr-audioencoder.cpp
+++ b/src/odr-audioenc.cpp
@@ -18,7 +18,7 @@
*/
/*! \mainpage Introduction
- * The ODR-mmbTools ODR-AudioEncoder Audio encoder can encode audio for
+ * The ODR-mmbTools ODR-AudioEnc Audio encoder can encode audio for
* ODR-DabMux, both DAB and DAB+. The DAB encoder is based on toolame. The
* DAB+ encoder requires a the Fraunhofer FDK AAC library, with the
* necessary patches for 960-transform to do DAB+ broadcast encoding.
@@ -32,7 +32,7 @@
* The readme for the whole package is \ref md_README
*
* Interesting starting points for the encoder
- * - \ref odr-audioencoder.cpp Main encoder file
+ * - \ref odr-audioenc.cpp Main encoder file
* - \ref VLCInput.h VLC Input
* - \ref AlsaInput.h Alsa Input
* - \ref JackInput.h JACK Input
@@ -47,7 +47,7 @@
* - \ref mot-encoder.cpp
*
*
- * \file odr-audioencoder.cpp
+ * \file odr-audioenc.cpp
* \brief The main file for the audio encoder
*/
@@ -100,7 +100,7 @@ using namespace std;
void usage(const char* name) {
fprintf(stderr,
- "ODR-AudioEncoder %s is an audio encoder for both DAB and DAB+.\n"
+ "ODR-AudioEnc %s is an audio encoder for both DAB and DAB+.\n"
"The encoder can read from JACK, ALSA or\n"
"a file source and encode to a ZeroMQ output for ODR-DabMux.\n"
"(Experimental!)It can also use libvlc as an input.\n"