Skip to content

Uploading to OpenMHz

Luke Berndt edited this page Jun 13, 2017 · 12 revisions

I have created a portal called OpenMHz that makes it easy to get recordings from Trunk Recorder online. You can create an account here: https://admin.openmhz.com

In order to upload files, they have to be encoded as a High-Efficiency AAC. This is a compact audio format that most browsers and phones support. The FFMPEG utility supports converting .wav files to AAC-HE, as long as the libfdk-acc was compiled in. I have a short write-up on how to do that below.

If you are having any problems with FFMPEG, like you are not seeing an .m4a file next to your .wav, checkout the full FFMPEG guide: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

If you are not going to be changing the source code, another option is to use Docker. I have some pre-built images which make it really easy to get started and have FFMpeg compiled in. I put together a Docker Compose file to make everything easy: https://github.com/robotastic/trunk-recorder-docker

FFMPEG Install Quick Guide

Install for Ubuntu 16.04. This is a minimal install, check out the FFMPEG docs if you want more libraries enables.

sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
  libtool pkg-config texinfo zlib1g-dev yasm libfdk-aac-dev
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure \
  --pkg-config-flags="--static" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-nonfree
make
sudo make install