https://roundup.ffmpeg.org/roundup/ffmpeg/issue859 I'm trying to encode this : Stream #0.0(eng): Video: rawvideo, yuv420p, 1920x1080, 29.97 tb(r) Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 5.1, s16, 4608 kb/s to : Stream #0.0(eng): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 tb(c) Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 5.1, s16, 4608 kb/s with the following command line : ffmpeg -i tree.mov -acodec pcm_s16le -ab 192k -ar 48000 -vcodec libx264 -aspect 16:9 -r 29.97 -s 1920x1080 tree.avi Which result to : *** glibc detected *** /usr/bin/ffmpeg: munmap_chunk(): invalid pointer: 0x00000000018ca4a0 *** The encoding is working with a stereo pcm file but not with a 5.1 pcm file. SVN revision : 17458 Trace attached. Cheers Erwan