cvQueryFrame gives [swscaler @ ... ] bad dst image pointers (Bug #1755)


Added by Carlos M. almost 13 years ago. Updated over 12 years ago.


Status:Done Start date:2012-04-04
Priority:Normal Due date:
Assignee:Alexander Reshetnikov % Done:

0%

Category:highgui-video
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

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.


two.c (556 Bytes) Carlos M., 2012-04-04 06:04 am


Related issues

related to Bug #1708: swscaler - bad dst image pointers Done 2012-03-21

Associated revisions

Revision 0be27523
Added by Roman Donchenko over 11 years ago

Merge pull request #1755 from KonstantinMatskevich:dump_info

History

Updated by Carlos M. almost 13 years ago

I confirm that this problem is specific to NEW_FFMPEG.

Adding set(NEW_FFMPEG 0) in modules/highgui/CMakeLists.txt "fixes" both this issue and issue 1708 [[http://code.opencv.org/issues/1708]]

Thanks to Hordur Johannsson [[http://code.opencv.org/users/612]] for the analysis and this workaround!

Updated by Carlos M. almost 13 years ago

Hurrah! Works in r7859. Thank you, Alexander!

Updated by Alexander Reshetnikov almost 13 years ago

I've reproduced this problem. It had the same reason as [[http://code.opencv.org/issues/1708]]

  • Status changed from Open to Done
  • Description changed from Built trunk (-r 7814M) from svn today, using defaults in cmake configuration... to Built trunk (-r 7814M) from svn today, using defaults in cmake configuration.... More

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Also available in: Atom PDF