Updated by Alexander Reshetnikov almost 13 years ago


Built trunk (-r 7814M) from svn today, using defaults in cmake configuration.

Now consider the attached example which is almost exactly Example 2-2 from the O'Reilly book.
It runs, but it produces only blank frames and every call to cvQueryFrame gives "[swscaler @ ... ] bad dst image pointers" on stderr.

This seems like a pretty serious problem.

@
$ svnversion ./trunk/
7814M

$ uname -a
Linux cmundi 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

$ ffmpeg -version: // installed from ppa:jon-severinsson/ffmpeg
ffmpeg version 0.10.2-4:0.10.2-0ubuntu0jon1~oneiric1
built on Mar 18 2012 11:07:55 with gcc 4.6.1
configuration: --extra-version='4:0.10.2-0ubuntu0jon1~oneiric1' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-vaapi --enable-frei0r --enable-gpl --enable-postproc --enable-x11grab --enable-librtmp --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
@

Please advise how to fix. Thanks.

N.B. I did not have this problem with the prebuilt 2.1.0 binaries included in Oneeric Ocelot.

N.B. This problem appears to be similar to [[http://code.opencv.org/issues/1708]] which appears to have been marked "cancelled" without a convincing resolution.

Back