[FFmpeg-user] Specifying lib path when building ffmpeg

Andy Furniss adf.lists at gmail.com
Fri Nov 18 22:04:39 EET 2016


Matteo Naccari wrote:
> Hi Andy,
>
>> Are the source vids publicly available anywhere?
> Unfortunately no, we couldn’t clear the right for the content we used in our tests.
>
>> Is turing-exe expected to work on non avx CPUs?  I just get an illegal
>> instruction on a Phenom II x4.
>
> Yes we expect it to work on non avx CPUs. Can you please point out what kind of illegal instruction you get? We can try to fix. Apologies for this.

It may not be avx, I just saw Illegal instruction and assumed.

Whatever I try I can't avoid it, though.

My normal setup is LFS, but I can reproduce on Ubuntu 16.04.

Happens with decode or encode, stable or develop.

With debug builds I can't get a trace with decode.

With encode I managed - but I don't know whether it will be much use as
there may be some variability involved = testing decode with

testdecode --bitstreams

I got a bit further (3 OK) on Ubuntu, than with my normal setup (1 OK).

Anyway here's a partial GDB trace. I couldn't get valgrind to trigger 
it, it seemed to get bogged down spewing loads of other errors.

andy [turing]$ gdb ./turing-exe
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./turing-exe...rundone.
(gdb) run encode --input-res 3840x2160 --frames 10 --frame-rate 60 
--output-file out.hevc ../../release/turing/in.yuv
Starting program: 
/mnt/sdb1/Gits/turingcodec/build/debug/turing/turing-exe encode 
--input-res 3840x2160 --frames 10 --frame-rate 60 --output-file out.hevc 
../../release/turing/in.yuv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7ffff6d83700 (LWP 16681)]
[New Thread 0x7ffff6582700 (LWP 16682)]
[New Thread 0x7ffff5d81700 (LWP 16683)]
[New Thread 0x7ffff5580700 (LWP 16684)]
[turing] Project Turing HEVC Encoder Version (1.01) - hash commit: <unknown>
[turing] patents pending / copyright 2016 Project Turing contributors
Input          file             : ../../release/turing/in.yuv
Bitstream      file             : out.hevc
Reconstruction file             : none
Input          resolution       : 3840x2160 60Hz 8-bit
Frame          range            : 0 - 9 ( 10 frames )
Frame/Field    coding           : Frame based coding
Coding unit size (min/max)      : 64 / 8
Intra period                    : 250
Structure Of Picture (SOP) size : 8
Quantisation Parameter (QP)     : 26
Speed                           : slow
Threads                         : 4
Concurrent frames               : 4
Optimisations                   : C_REF C_OPT SSE2 LZCNT
Coding tools                    : ecu=0 fdm=1 fdam=0 cfm=0 esd=0 met=0 
rqt=1 rdoq=1 amp=0 smp=1 deblock=1 sao=0 sao-slow-mode=1 rcudepth=0 
wpp=1 sdh=1 tskip=0 aps=0


Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7ffff6d83700 (LWP 16681)]
0x00007ffff465d1c5 in ?? ()
(gdb) bt
#0  0x00007ffff465d1c5 in ?? ()
#1  0x00000000011bf37f in 
PredictIntraLumaBlock::go<Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (rc=..., h=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Reconstruct.cpp:643
#2  0x00000000011bbaa7 in Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, 
StateEncode>::operator()<IfCbf<cbf_luma, residual_coding> > (
     this=0x7ffff6d44510, fun=...) at 
/mnt/sdb1/Gits/turingcodec/turing/Handlers.h:183
#3  0x00000000011b5c4a in 
Syntax<transform_unit>::go<Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (tu=..., h=...)
     at /mnt/sdb1/Gits/turingcodec/turing/SyntaxCtu.hpp:450
#4  0x00000000011b3f4b in Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, 
StateEncode>::operator()<transform_unit> (this=0x7ffff6d44510, fun=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Handlers.h:183
#5  0x00000000011ad29e in 
Syntax<transform_tree>::go<Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (tt=..., h=...)
     at /mnt/sdb1/Gits/turingcodec/turing/SyntaxCtu.hpp:375
#6  0x00000000011aae60 in 
Reconstruct<transform_tree>::go<Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (tt=..., h=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Reconstruct.cpp:125
#7  0x00000000011aa3a2 in Handler<PredictIntraLuma<void>, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, 
StateEncode>::operator()<transform_tree> (this=0x7ffff6d44510, fun=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Handlers.h:183
#8  0x00000000011a3bda in predictIntraLuma<Handler<Search<Mode<1u> >, 
Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (tt=..., h=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Reconstruct.cpp:1082
#9  0x0000000001086ed0 in searchIntraPartition<Handler<Search<Mode<1u> 
 >, Candidate<unsigned char>, StateEncodeSubstream<unsigned char>, 
StateEncodePicture2<unsigned char>, StateEncode> > (h=..., 
intraPartition=...)
     at /mnt/sdb1/Gits/turingcodec/turing/Search.cpp:121
#10 0x000000000107c733 in searchIntraCu<unsigned char, 
Handler<Search<Mode<1u> >, Candidate<unsigned char>, 
StateEncodeSubstream<unsigned char>, StateEncodePicture2<unsigned char>, 
StateEncode> > (h=...,
     challenger=@0x7ffff6d578e8: 0x7ffff6d5c3e8, 
champion=@0x7ffff6d578e0: 0x7ffff6d578f0) at 
/mnt/sdb1/Gits/turingcodec/turing/Search.cpp:509



More information about the ffmpeg-user mailing list