[x264-devel] does not link lavf support

Yasuhiro Ikeda wipple625 at gmail.com
Fri Jun 24 02:35:48 CEST 2011


1. Uninstall swscale and other libraries in /usr/lib64.
2. Compile and install libav. `./configure --prefix=$HOME/local --enable-gpl
--disable-debug && make && make install` is enough, don't add any other
options.
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.
4. Delete $HOME/local if you want. `rm -rf $HOME/local`
5. Run x264 binary. `./x264 test.avi -o test.264` is enough, don't add any
other options.
6. Report again.

2011/6/24 Erik Slagter <erik at slagter.name>

> On 23-06-11 02:05, Steven Walters wrote:
>
>  Are you saying that after this commit you have a x264 cli that works
>>> withouth segfaulting (either with or without --input-res)?
>>>
>>
>  correct, I am NOT able to reproduce a crash after the indicated
>> revision, nor after updating to the latest libav (which now has
>> libswscale at 2.0.0).
>> I tested on what platforms i have available to me which is win32,
>> win64, and linux32.
>>
>
> Okay, so I've tried (again). I pulled x264 (no updates), compiled it,
> and installed it. Then I pulled ffmpeg (no relevant updates), compiled
> it, and installed. Then, because of back-and-forth dependencies between
> libx264 (x264) and libav* (ffmpeg), I compiled x264 once more and
> installed it.
>
> Then I did this:
>
> 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
>
> Where test.avi is an avi with mjpeg and pcm audio. And then I get this:
>
> lavf [info]: 704x576p 16:11 @ 25/1 fps (vfr)
> resize [warning]: converting from yuvj420p to yuv420p
> x264 [info]: using SAR=16/11
> x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
> x264 [info]: profile High, level 4.0
> [1]    24101 segmentation fault  x264 --profile=high --preset=veryslow
> --level=40 --aud --keyint=100 --ref=4
>
> Gdb says (very terse because no debug info atm):
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff6995562 in ?? () from /usr/lib64/libswscale.so.2
> (gdb) where
> #0  0x00007ffff6995562 in ?? () from /usr/lib64/libswscale.so.2
> #1  0x0000000000000000 in ?? ()
>
> I checked that the proper versions of the libraries were linked and used
> using ldd. This is on x86_64 / amd64. I am using gcc 4.5.1 and glib 2.13.1.
>
> Adding --input-res=704x576 makes no difference.
>
> Thx.
>
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110624/687f99ca/attachment.html>


More information about the x264-devel mailing list