Skip to content

Uploading to OpenMHz

e850205 edited this page Jul 9, 2020 · 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 recording, 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

Note: v3.1.1 changes from using ffmpeg to fdkaac and sox for compressing audio for OpenMHz. Both utilities can be easily installed using apt-get

To install on Ubuntu 18.04 add bionic universe and multiverse package repos then follow the instructions for Ubuntu 16.04

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic universe"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic multiverse"
sudo apt-get update
sudo apt-get upgrade

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