libavcodec-dev Theora issue (Ubuntu 9.10 x86-64)

Emanuele Oriani emaentra at
Tue Feb 16 16:15:04 UTC 2010


I'm developing a C++ application to measure the PSNR (and other stats) 
of multiple video files.
To access video streams I decided to rely on libavcodec, so I installed 
libavcodec-dev package to get the header files (I want to use it as a 
shared library).
Currently everything works but Theora video streams. When I open such 
streams I get corrupted frames (wrong colours and unrecognizable 
images), while when other streams are opened (h264/xvid/wmv/...) 
everything is fine.
Apart that the header file in that package is old (it doesn't export 
avcodec_decode_video2 function), I can't find the function 
(avcodec_decode_video2) even with dlsym once the library has been loaded 
(other functions like avcodec_decode_video, deprecated, are found).
I guess that the default and header files that come 
with that package are old/deprecated, am I correct?

When instead I liked static libraries from the SVN FFmpeg source, the 
function avcodec_decode_video2 was found and Theora video streams are 
now properly read and decoded (with both avcodec_decode_video and 

I would not like to use static libraries in my project, but I'd rather 
have an updated

Can you please look into that?


Ps. I'm on Ubuntu 9.10 x86-64/

More information about the Ubuntu-devel-discuss mailing list