tzwenn / pyh264decode

Decode H.264 packets with external avcC to YUV frames
Other
30 stars 6 forks source link

import error : avpriv_vga16_font #5

Open AlexDupont93 opened 7 years ago

AlexDupont93 commented 7 years ago

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.

tzwenn commented 7 years ago

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 commented 7 years ago

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

AlexDupont93 commented 7 years ago

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?

tzwenn commented 7 years ago

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.