Opened 7 years ago

Closed 7 years ago

Last modified 4 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: j2k
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 7 years ago.
lossless_rgb_23_10.jp2 (1.6 MB ) - added by ami_stuff 7 years ago.

Change History (7)

by ami_stuff, 7 years ago

Attachment: lossless_rgb_22_10.jp2 added

by ami_stuff, 7 years ago

Attachment: lossless_rgb_23_10.jp2 added

comment:1 by ami_stuff, 7 years ago

also decodes ok with -vcodec libopenjpeg

in reply to:  description comment:2 by Carl Eugen Hoyos, 7 years ago

Component: undeterminedavcodec
Keywords: jp2 added
Resolution: worksforme
Status: newclosed
Version: unspecifiedgit-master

Replying to ami_stuff:

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

Needs several GBs of free memory.

comment:3 by ami_stuff, 7 years ago

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

comment:4 by Balling, 4 years ago

In master it now uses 200 MB, looks like it is fixed, no? Maybe of course you are talking about virtual memory... -vcodec libopenjpeg is using 100 MB...

comment:5 by Carl Eugen Hoyos, 4 years ago

Keywords: j2k added; jp2 removed
Note: See TracTickets for help on using tickets.