avconv segfaults with aac / m4a files. So is VLC.
Here's the output of avconv trying to merge an mp4 and a m4a file:
avconv -v debug -i 'Hottest New Jam-aoJS_g6mYj8.f137.mp4' -i 'Hottest New Jam-aoJS_g6mYj8.f140.m4a' -c copy 'Hottest New Jam-aoJS_g6mYj8.mp4'
avconv version 9.10-6:9.10-1ubuntu7, Copyright (c) 2000-2013 the Libav developers
built on Dec 23 2013 20:10:59 with gcc 4.8 (Ubuntu/Linaro 4.8.2-10ubuntu2)
configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-1ubuntu7' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
avutil configuration: --prefix=/opt/ffmpeg --libdir=/opt/ffmpeg/lib/ --enable-shared --disable-stripping --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-postproc --enable-x11grab --enable-libcdio --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libvo-aacenc --enable-nonfree --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk_aac --enable-libopus --enable-pthreads --enable-zlib --enable-libvpx --enable-libfreetype --enable-libpulse
avcodec configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-1ubuntu7' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3
swscale configuration: --prefix=/opt/ffmpeg --libdir=/opt/ffmpeg/lib/ --enable-shared --disable-stripping --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-postproc --enable-x11grab --enable-libcdio --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libvo-aacenc --enable-nonfree --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk_aac --enable-libopus --enable-pthreads --enable-zlib --enable-libvpx --enable-libfreetype --enable-libpulse
libavutil 52. 3. 0 / 52. 48.101
libavcodec 54. 35. 0 / 54. 35. 0
libavformat 54. 20. 3 / 54. 20. 3
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 3. 3. 0 / 3. 3. 0
libavresample 1. 0. 1 / 1. 0. 1
libswscale 2. 1. 1 / 2. 5.101
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'Hottest New Jam-aoJS_g6mYj8.f137.mp4'.
Reading option '-i' ... matched as input file with argument 'Hottest New Jam-aoJS_g6mYj8.f140.m4a'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option 'Hottest New Jam-aoJS_g6mYj8.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file Hottest New Jam-aoJS_g6mYj8.f137.mp4.
Successfully parsed a group of options.
Opening an input file: Hottest New Jam-aoJS_g6mYj8.f137.mp4.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1a2f940] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1a2f940] ISO: File Type Major Brand: dash
[h264 @ 0x1a32060] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1a2f940] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Hottest New Jam-aoJS_g6mYj8.f137.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-02-17 21:16:16
Duration: 00:05:13.20, start: 0.000000, bitrate: 3061 kb/s
Stream #0.0(und), 20, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 1001/48000, 3058 kb/s, 23.98 fps, 23.97 tbr, 90k tbn, 47.95 tbc
Metadata:
creation_time : 2014-02-17 21:16:16
Successfully openened the file.
Parsing a group of options: input file Hottest New Jam-aoJS_g6mYj8.f140.m4a.
Successfully parsed a group of options.
Opening an input file: Hottest New Jam-aoJS_g6mYj8.f140.m4a.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1a32f60] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1a32f60] ISO: File Type Major Brand: dash
Segmentation fault
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libav-tools 6:9.10-1ubuntu7
ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Feb 19 15:10:01 2014
InstallationDate: Installed on 2012-12-30 (416 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: libav
UpgradeStatus: Upgraded to trusty on 2013-01-12 (402 days ago)
Never mind, found out what was causing it.