Awesomenauts and strange issues
with exporting replays

While exporting gameplay from Awesomenauts, you may experience issues related to architecture used during ffmpeg compilation. Awesomenauts come with precompiled ffmpeg version, but it looks like something went wrong. The results are horrible. No exporting inside macOS High Sierra. It looks like Awesomenauts are distributed with incorrectly built tool (in fact, libs).

./ffmpeg_mac
dyld: Library not loaded: @loader_path/../../Frameworks/libavdevice.dylib
  Referenced from: ../Library/Application Support/.../ffmpeg-lgpl/./ffmpeg_mac
  Reason: no suitable image found.  Did find:
	.../Steam/..../Frameworks/libavdevice.dylib: mach-o, but wrong architecture
	.../Steam/..../Frameworks/libavdevice.dylib: stat() failed with errno=1
...
Abort trap: 6

However, there is a rescue. You can compile ffmpeg by yourself!

All you have to do is: clone sources from git, compile the stuff and put symbolic link inside Awesomenauts application. Pretty easy, isn’t it? Just take a look below.

# getting sources
mkdir -p $HOME/opt/src
mkdir -p $HOME/opt/shared
cd $HOME/opt/src
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

# configure and make ffmpeg
cd $HOME/opt/src/ffmpeg
./configure --disable-x86asm --prefix=$HOME/opt/shared
make; make install

# create symbolic link
cd $HOME/Library/Application Support/Steam\
/steamapps/common/Awesomenauts\
/Awesomenauts.app/Contents/\
ReplayEncoder/ffmpeg-lgpl

# make sure to make a backup
mv ffmpeg_mac ffmpeg_mac~
ln -s $HOME/opt/shared/bin/ffmpeg ffmpeg_mac

# make sure it works
./ffmpeg_mac -version
ffmpeg version N-90232-g0645698ecc Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
...
...

Now, you can export gameplay movie directly from Awesomenauts application ;) Now. Let’s take a look at this sweet, Ayla’s, triple kill ;)

Happy sharing!