Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5964 closed defect (worksforme)

jpeg2000: "error during processing marker segment ff51"

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: jp2
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

file with tiles 23x10 decodes correctly
file with tiles 22x10 fails to decode

C:\>ffmpeg -i lossless_rgb_22_10.jp2 out.bmp
ffmpeg version N-78758-g5156578 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-d
ecklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 27.100 / 57. 27.100
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 37.100 /  6. 37.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, j2k_pipe, from 'lossless_rgb_22_10.jp2':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0), rgb24, 10
24x768, lossless, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf57.26.100
    Stream #0:0: Video: bmp, bgr24, 1024x768, q=2-31, 200 kb/s, 25 fps, 25 tbn,
25 tbc
    Metadata:
      encoder         : Lavc57.27.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> bmp (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 058f6c00] error during processing marker segment ff51
Error while decoding stream #0:0: Cannot allocate memory
frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ove
rhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters i
f used)
Conversion failed!

Attachments (2)

lossless_rgb_22_10.jp2 (1.6 MB) - added by ami_stuff 2 years ago.
lossless_rgb_23_10.jp2 (1.6 MB) - added by ami_stuff 2 years ago.

Change History (5)

Changed 2 years ago by ami_stuff

Changed 2 years ago by ami_stuff

comment:1 Changed 2 years ago by ami_stuff

also decodes ok with -vcodec libopenjpeg

comment:2 in reply to: ↑ description Changed 2 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords jp2 added
  • Resolution set to worksforme
  • Status changed from new to closed
  • Version changed from unspecified to git-master

Replying to ami_stuff:

Error while decoding stream #0:0: Cannot allocate memory

Needs several GBs of free memory.

comment:3 Changed 2 years ago by ami_stuff

Uh missed this message, but it's still a bug - native decoder should use less memory.

Note: See TracTickets for help on using tickets.