[FFmpeg-devel] [PATCH] avcodec: add OpenJPEG 2.x compatibility

Michael Niedermayer michael at niedermayer.cc
Wed Nov 18 17:00:03 CET 2015


On Tue, Nov 17, 2015 at 07:27:55AM -0800, Michael Bradshaw wrote:
> Hi,
> 
> Attached patch adds support for OpenJPEG 2.0/2.1. Please review.
> 
> Thanks,
> 
> Michael Bradshaw

>  configure                   |    5 
>  libavcodec/libopenjpegdec.c |  173 ++++++++++++++++++++++++----
>  libavcodec/libopenjpegenc.c |  269 +++++++++++++++++++++++++++++++++++++-------
>  3 files changed, 382 insertions(+), 65 deletions(-)
> 4e7c94ca16fa09210c4d74a4cf589ae9db540e9a  0001-avcodec-add-OpenJPEG-2.x-compatibility.patch
> From 1cdf996b7fdaed429731054e96f9e6b565c9436d Mon Sep 17 00:00:00 2001
> From: Michael Bradshaw <mjbshaw at google.com>
> Date: Sun, 1 Nov 2015 19:11:12 -0800
> Subject: [PATCH] avcodec: add OpenJPEG 2.x compatibility

this seems breaking the decoder

./ffmpeg -i matrixbench_mpeg2.mpg  -vcodec libopenjpeg -vframes 1 test.j2k

./ffmpeg -strict -2 -vcodec libopenjpeg -i test.j2k -f null -

[libopenjpeg @ 0x28f3220] Error decoding codestream header.
[j2k_pipe @ 0x28d1bc0] decoding for stream 0 failed
[j2k_pipe @ 0x28d1bc0] Could not find codec parameters for stream 0 (Video: jpeg2000, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
test.j2k: could not find codec parameters

!HAVE_OPENJPEG_2_1_OPENJPEG_H=yes
!HAVE_OPENJPEG_2_0_OPENJPEG_H=yes
!HAVE_OPENJPEG_1_5_OPENJPEG_H=yes
CONFIG_LIBOPENJPEG=yes
CONFIG_LIBOPENJPEG_DECODER=yes
CONFIG_LIBOPENJPEG_ENCODER=yes

ii  libopenjpeg-dev                                                         1.3+dfsg-4+squeeze2build0.12.04.1                                       development files for libopenjpeg2, a JPEG 2000 image library
ii  libopenjpeg2                                                            1.3+dfsg-4+squeeze2build0.12.04.1                                       JPEG 2000 image compression/decompression library

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151118/948ce9c6/attachment.sig>


More information about the ffmpeg-devel mailing list