pyh264decode icon indicating copy to clipboard operation
pyh264decode copied to clipboard

import error : avpriv_vga16_font

Open AlexDupont93 opened this issue 8 years ago • 4 comments

Hi,

when importing h264decode, I run into the following issue: h264decode.so : undefined symbol avpriv_vga16_font

Do you know how to fix this? I have tested with ffmpeg 2.4, 2.3.6 and the newest version as well. Running python 2.7 on raspbian.

AlexDupont93 avatar Jan 24 '17 01:01 AlexDupont93

That's quite interesting, since avpriv_vga16_font is part of avutil, but never referenced by me. I pushed a small change, that now explicitly links against libavutil. Can you recompile and check with ldd build/lib.*/h264decode.so | grep avutil whether it is now properly found?

tzwenn avatar Jan 25 '17 17:01 tzwenn

Also: Did you install libavutil-dev, or however the package is called on raspbian?

tzwenn avatar Jan 25 '17 17:01 tzwenn

Thanks for the quick reply !

I've installed the new version, libavutil-dev and libx264-dev, however now I get the error : File "testh264.py", line 1, in import h264decode ImportError: /usr/local/lib/python2.7/dist-packages/h264decode.so: undefined symbol: x264_bit_depth

I've also tried compiling x264 from source and installing it.

Any thoughts?

AlexDupont93 avatar Jan 27 '17 00:01 AlexDupont93

Check agin which version of avcodec is currently linked by running ldd build/lib.*/h264decode.so and furthermore check wether this is using x264 and some point (also by ldd).

It seems to me you've got quite a zoo of libraries now on your system. Since I'm not referring to x264_bit_depth anywhere in my module, your number of conflicting versions of ffmpeg/x264 and so forth may be the issue here.

tzwenn avatar Jan 27 '17 18:01 tzwenn