1. Uninstall swscale and other libraries in /usr/lib64.<div><div>2. Compile and install libav. `./configure --prefix=$HOME/local --enable-gpl --disable-debug && make && make install` is enough, don't add any other options.</div>
<div>3. Compile x264. `./configure --enable-static --extra-cflags=-I$HOME/local/include --extra-ldflags=-L$HOME/local/lib && make` is enough, don't add any other options.</div><div>4. Delete $HOME/local if you want. `rm -rf $HOME/local`</div>
<div>5. Run x264 binary. `./x264 <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">test.avi -o test.264</span>` is enough, don't add any other options.</div>
<div>6. Report again.</div><div><br><div class="gmail_quote">2011/6/24 Erik Slagter <span dir="ltr"><<a href="mailto:erik@slagter.name">erik@slagter.name</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 23-06-11 02:05, Steven Walters wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you saying that after this commit you have a x264 cli that works<br>
withouth segfaulting (either with or without --input-res)?<br>
</blockquote></blockquote><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
correct, I am NOT able to reproduce a crash after the indicated<br>
revision, nor after updating to the latest libav (which now has<br>
libswscale at 2.0.0).<br>
I tested on what platforms i have available to me which is win32,<br>
win64, and linux32.<br>
</blockquote>
<br></div>
Okay, so I've tried (again). I pulled x264 (no updates), compiled it,<br>
and installed it. Then I pulled ffmpeg (no relevant updates), compiled<br>
it, and installed. Then, because of back-and-forth dependencies between<br>
libx264 (x264) and libav* (ffmpeg), I compiled x264 once more and<br>
installed it.<br>
<br>
Then I did this:<br>
<br>
x264 --profile=high --preset=veryslow --level=40 --aud --keyint=100 --ref=4 --nr=1000 --bframes=8 --threads=16 --vbv-bufsize=31250 --vbv-maxrate=25000 --nal-hrd=vbr --crf 24 test.avi -o test.264<br>
<br>
Where test.avi is an avi with mjpeg and pcm audio. And then I get this:<br>
<br>
lavf [info]: 704x576p 16:11 @ 25/1 fps (vfr)<br>
resize [warning]: converting from yuvj420p to yuv420p<br>
x264 [info]: using SAR=16/11<br>
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2<br>
x264 [info]: profile High, level 4.0<br>
[1]    24101 segmentation fault  x264 --profile=high --preset=veryslow --level=40 --aud --keyint=100 --ref=4<br>
<br>
Gdb says (very terse because no debug info atm):<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x00007ffff6995562 in ?? () from /usr/lib64/libswscale.so.2<br>
(gdb) where<br>
#0  0x00007ffff6995562 in ?? () from /usr/lib64/libswscale.so.2<br>
#1  0x0000000000000000 in ?? ()<br>
<br>
I checked that the proper versions of the libraries were linked and used<br>
using ldd. This is on x86_64 / amd64. I am using gcc 4.5.1 and glib 2.13.1.<br>
<br>
Adding --input-res=704x576 makes no difference.<br>
<br>
Thx.<br>
<br>
<br>_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
<br></blockquote></div><br></div></div>