On x86 (Gentoo Linux) the x264 encoder compil fine (pthread enable) but when using it , i get an segfault <br><br>[*] mencoder :<br><br>GNU gdb 6.6<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are
<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.
<br>This GDB was configured as "i686-pc-linux-gnu"...<br>(no debugging symbols found)<br>Using host libthread_db library "/lib/libthread_db.so.1".<br>(gdb) run MOVIE.EVO -vc ffvc1 -fps 24000/1001 -of rawvideo -ofps 24000/1001 -ovc x264 -x264encopts bitrate=3878:pass=1:subq=4:me=dia:frameref=5:bframes=2:b_pyramid:weight_b:direct_pred=auto:partitions=all:qcomp=
0.75:ip_factor=1.10:pb_factor=1.40:threads=2 -vf crop=1920:784:0:148 -nosound -o /dev/null<br>Starting program: /usr/bin/mencoder MOVIE.EVO -vc ffvc1 -fps 24000/1001 -of rawvideo -ofps 24000/1001 -ovc x264 -x264encopts bitrate=3878:pass=1:subq=4:me=dia:frameref=5:bframes=2:b_pyramid:weight_b:direct_pred=auto:partitions=all:qcomp=
0.75:ip_factor=1.10:pb_factor=1.40:threads=2 -vf crop=1920:784:0:148 -nosound -o /dev/null<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>
(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>
(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>
(no debugging symbols found)<br>(no debugging symbols found)<br>MEncoder dev-SVN-r24537 (C) 2000-2007 MPlayer Team<br>CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)<br>CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
<br>Compilé avec détection du CPU à l'exécution.115 codecs audio & 236 codecs vidéo<br>succès : format : 0 data : 0x0 - 0x5bca1000<br>Fichier de type MPEG-PS détecté.<br>Searching for VC1 sequence header... found
<br>VIDEO: VC-1 1920x1080, 29.970 fps, header len: 33<br>[V] filefmt:2 fourcc:0x31435657 size:1920x1080 fps:29.97 ftime:=0.0334<br>Le fps d'entrée sera plutôt interprété comme 23.98<br>Ouverture du filtre vidéo : [expand osd=1]
<br>Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1<br>Ouverture du filtre vidéo : [crop w=1920 h=784 x=0 y=148]<br>Crop: 1920 x 784, 0 ; 148<br>==========================================================================
<br>Codec vidéo forcé : ffvc1<br>Ouverture du décodeur vidéo : [ffmpeg] FFmpeg's libavcodec codec family<br>Codec vidéo choisi : [ffvc1] vfm : ffmpeg (FFmpeg M$ WVC1)<br>==========================================================================
<br>VDec : requête de config de vo - 1920 x 1080 (espace colorimétrique préferé : Planar YV12)<br>VDec: using Planar I420 as output csp (no 1)<br>L'aspect du film est 1.78:1 - pré-redimensionnement à l'aspect correct.
<br>x264 [info]: using SAR=1/1<br>x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSSE3<br>New_Face failed. Maybe the font path is wrong.<br>Please supply the text font file (~/.mplayer/subfont.ttf).<br>subtitle font: load_sub_face failed.
<br>Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]<br>Program received signal SIGSEGV, Segmentation fault.<br>0xb7ef8efe in x264_pixel_satd_8x8_ssse3 () from /usr/lib/libx264.so.56<br>#0 0xb7ed8efe in x264_pixel_satd_8x8_ssse3 () from /usr/lib/libx264.so.56
<br>#1 0xb7e8bc04 in x264_slicetype_mb_cost () from /usr/lib/libx264.so.56<br>#2 0x00000008 in ?? ()<br>#3 0x00000000 in ?? ()<br><br><br><br>[*] ffmpeg :<br><br>run -i MOVIE.EVO -an -pass 1 -vcodec libx264 -b 6000 OUTPUT.mp4
<br>The program being debugged has been started already.<br>Start it from the beginning? (y or n) y<br>Starting program: /usr/bin/ffmpeg -i MOVIE.EVO -an -pass 1 -vcodec libx264 -b 6000 OUTPUT.mp4<br>(no debugging symbols found)
<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)
<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)
<br>(no debugging symbols found)<br>(no debugging symbols found)<br>FFmpeg version SVN-r10503, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br> configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-network --disable-ipv6 --disable-ffplay --enable-liba52 --enable-pthreads --enable-libogg --enable-libvorbis --enable-libx264 --enable-libfaad --enable-libfaac --enable-gpl --enable-pp --disable-strip
<br> libavutil version: 49.5.0<br> libavcodec version: 51.44.0<br> libavformat version: 51.13.3<br> built on Sep 15 2007 18:38:04, gcc: 4.2.0 (Gentoo 4.2.0 p1.4)<br>Input #0, mpeg, from 'MOVIE.EVO':<br> Duration: 02:16:
17.7, start: 0.036222, bitrate: 22514 kb/s<br> Stream #0.0[0xfd55]: Video: vc1, yuv420p, 1920x1080, 29.97 fps(r)<br> Stream #0.1[0xfd56]: Video: vc1, yuv420p, 720x480, 29.97 fps(r)<br> Stream #0.2[0xc8]: Audio: liba52, 48000 Hz, stereo, 192 kb/s
<br> Stream #0.3[0xc7]: Audio: liba52, 48000 Hz, stereo, 192 kb/s<br> Stream #0.4[0xc6]: Audio: liba52, 48000 Hz, stereo, 192 kb/s<br> Stream #0.5[0xc5]: Audio: liba52, 48000 Hz, stereo, 192 kb/s<br> Stream #0.6[0xc4]: Audio: liba52, 48000 Hz, stereo, 192 kb/s
<br> Stream #0.7[0xc3]: Audio: liba52, 48000 Hz, stereo, 192 kb/s<br> Stream #0.8[0xb1]: Audio: 0x0000<br> Stream #0.9[0xc2]: Audio: liba52, 48000 Hz, 5:1, 640 kb/s<br> Stream #0.10[0xc0]: Audio: liba52, 48000 Hz, 5:1, 640 kb/s
<br>File 'OUTPUT.mp4' already exists. Overwrite ? [y/N] y<br>Output #0, mp4, to 'OUTPUT.mp4':<br> Stream #0.0: Video: libx264, yuv420p, 720x480, q=2-31, pass 1, 6 kb/s, 29.97 fps(c)<br>Stream mapping:<br>
Stream #0.0 -> #0.0<br>[libx264 @ 0x43fdc9d0]using SAR=10/11<br>[libx264 @ 0x43fdc9d0]using cpu capabilities: MMX MMXEXT SSE SSE2 SSSE3<br>Press [q] to stop encoding<br><br>Program received signal SIGSEGV, Segmentation fault.
<br>0xb7fbaefe in x264_pixel_satd_8x8_ssse3 () from /usr/lib/libx264.so.56<br>(gdb) bt<br>
#0 0xb7fbaefe in x264_pixel_satd_8x8_ssse3 () from /usr/lib/libx264.so.56<br>
#1 0xb7f6dc04 in x264_slicetype_mb_cost () from /usr/lib/libx264.so.56<br>
#2 0x00000008 in ?? ()<br>
#3 0x00000000 in ?? ()<br><br><br><br>[*] x264cli :<br><br>gdb x264<br>GNU gdb 6.6<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>
welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.
<br>This GDB was configured as "i686-pc-linux-gnu"...<br>(no debugging symbols found)<br>Using host libthread_db library "/lib/libthread_db.so.1".<br>(gdb) run -o outfile.264 test.yuv 720x480 -p 1 -B 1000
<br>Starting program: /usr/bin/x264 -o outfile.264 test.yuv 720x480 -p 1 -B 1000<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)
<br>x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSSE3<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x080be91e in x264_pixel_satd_8x8_ssse3 ()<br>(gdb) bt<br>#0 0x080be91e in x264_pixel_satd_8x8_ssse3 ()
<br>#1 0x08078ab4 in ?? ()<br>#2 0xbfb11e78 in ?? ()<br>#3 0x00000020 in ?? ()<br>#4 0x080d7800 in ?? ()<br>#5 0x00000010 in ?? ()<br>#6 0x00000008 in ?? ()<br>#7 0x00000000 in ?? ()<br><br><br><br><br><br>So i'm sure this is cause by ssse3, sure because I have an another pc which run exactly the same revision (x264, mencoder, ffmpeg) and same system as well but it don't have ssse3
<br>Anyway, when disable asm (noasm), it's working (but it's really slow even with two threads).<br><br>Note : gcc version 4.2.0 (Gentoo 4.2.0 p1.4)<br><br>Jérome Venturi<br><br><br><br><br>