[FFmpeg-trac] #3745(avcodec:new): error with libopenjpeg encoding

FFmpeg trac at avcodec.org
Fri Jun 27 23:15:02 CEST 2014


#3745: error with libopenjpeg encoding
-------------------------------------+-----------------------------------
             Reporter:  dericed      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  libopenjpeg  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by dericed):

 No, I don't think this can be fixed in ffmpeg but is with openjpeg. There
 is an associated request here http://trac.ffmpeg.org/ticket/2866 to
 request an option for ffmpeg to read what it is encoding to verify
 losslessness, similar to the --verify option in the flac utility. Thanks
 to framemd5 I was able to find it.

 I tested the j2k you sent with openjpeg 2.1.0 with `opj_decompress -i
 ~/Downloads/out17.j2k -o image.tif`, which decoded correctly. I then
 tested with 1.5.1 and got

 {{{
 j2k_to_image -i out17.j2k -o image.png

 [ERROR] 00000000: expected a marker instead of 0
 ERROR -> j2k_to_image: failed to decode image!
 }}}

 Next I'm off to see if ffmpeg will build with openjpeg 2.1.0.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3745#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list