#33343: encoding x264 with ffmpeg does not use CPU capabilities on 64bit 10.7.3 ----------------------------+---------------------- Reporter: sonniesedge@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: x264 ffmpeg | ----------------------------+---------------------- Comment (by pavel.grabarnick@…): i ended up compiling both x264 +asm and ffmpeg +nonfree with llvm-gcc: [[BR]] i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)[[BR]] [[BR]] and i now i have x264 with cpu capabilities: [[BR]] [libx264 @ 0x7fda4982f200] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [[BR]] and x264 is not crashing with segfault. [[BR]][[BR]] compiling x264 with clang led to segfault regardless of which compiler was used to build ffmpeg. Replying to [comment:8 merseyparadise@…]:
Still can't get this to work with +asm. While we're waiting for a fix, a workaround is to uninstall the ffmpeg port, uninstall the x264 port, compile x264 after editing configure to use CC=clang (I've since found out that CC should be llvm-gcc, but clang seems to work), and compile ffmpeg with:
./configure --enable-gpl --enable-postproc --enable-swscale --enable- libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-shared --enable-pthreads --cc=clang --extra- cflags=-I/usr/local/include --extra-cflags=-I/opt/local/include --extra- ldflags=-L/usr/local/lib --extra-ldflags=-L/opt/local/lib
...which are the same options that the port uses, apart from setting the compiler as clang and dragging in your x264 libraries from /usr/local/bin. Works a treat. Now all I need is a set of updated presets... :)
-- Ticket URL: <https://trac.macports.org/ticket/33343#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS