<div dir="ltr"><div><div><div><div>I don't know if anyone else is having this problem. I'm using Slackware64 14.1. I've been getting segmentation faults on HandBrake when encoding anything using x264 as the encoder. For example...<br>
<br></div><div>#Works as expected<br></div>HandBrakeCLI -i m84_2.mpg -o test.mp4<br><br></div>#Produces segfault<br>HandBrakeCLI -i m84_2.mpg -o test.mp4 -e x264<br><br></div>Looking around I found <a href="https://bugs.launchpad.net/ubuntu/+source/x264/+bug/1241772">https://bugs.launchpad.net/ubuntu/+source/x264/+bug/1241772</a> which suggests compiling HandBrake's x264 with the -fno-aggressive-loop-optimizations flag to work around changes in gcc 4.8.<br>
<br></div>For a quick/dirty fix I added the following as line 46 to HandBrake.Slackbuild which solved the problem on my two machines.<br><br>sed -e "13iX264.CONFIGURE.extra += --extra-cflags=-fno-aggressive-loop-optimizations" -i contrib/x264/module.defs</div>