Opened 4 years ago

Closed 4 years ago

#4629 closed defect (fixed)

jpeg2000: fix decoding of tile-parts

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

Description

-TP <R|L|C>
    Divide packets of every tile into tile-parts.
    Division is made by grouping Resolutions (R), Layers (L)
    or Components (C).
C:\>opj_compress.exe -i test.bmp -r 50 -t 399,399  -TP C -o out.jp2

[INFO] tile number 1 / 6
[INFO] tile number 2 / 6
[INFO] tile number 3 / 6
[INFO] tile number 4 / 6
[INFO] tile number 5 / 6
[INFO] tile number 6 / 6
[INFO] Generated outfile out.jp2
C:\>ffmpeg -i tpc.jp2 out.bmp
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6.2 (GCC)
  configuration: --disable-pthreads --enable-gpl --disable-ffprobe
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 17.100 /  5. 17.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[jpeg2000 @ 0228f600] Warning: not compiled with thread support, using thread em
ulation
[jpeg2000 @ 0228f600] Support for 6 components is not implemented. Update your F
Fmpeg version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[jpeg2000 @ 0228f600] If you want to help, upload a sample of this file to ftp:/
/upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-
devel@ffmpeg.org)
[jpeg2000 @ 0228f600] error during processing marker segment ff90
Input #0, j2k_pipe, from 'tpc.jp2':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0), rgb24, 99
9x749, 25 tbr, 25 tbn, 25 tbc
[bmp @ 022804a0] Warning: not compiled with thread support, using thread emulati
on
[jpeg2000 @ 0228fe80] Warning: not compiled with thread support, using thread em
ulation
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: bmp, bgr24, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 2
5 tbc
    Metadata:
      encoder         : Lavc56.41.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> bmp (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 0228fe80] Support for 6 components is not implemented. Update your F
Fmpeg version to the newest one from Git. If the problem still occurs, it means
that your file has a feature which has not been implemented.
[jpeg2000 @ 0228fe80] If you want to help, upload a sample of this file to ftp:/
/upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-
devel@ffmpeg.org)
[jpeg2000 @ 0228fe80] error during processing marker segment ff90
Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome

frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=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)

tpc.jp2 (43.7 KB) - added by ami_stuff 4 years ago.
rlcp_tpl.jp2 (199.2 KB) - added by ami_stuff 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by ami_stuff

comment:1 Changed 4 years ago by ami_stuff

one more sample

C:\>opj_compress.exe -i test.bmp -r 11,11 -TP L -p RLCP -o rlcp_tpl.jp2

[INFO] tile number 1 / 1
[INFO] Generated outfile rlcp_tpl.jp2.jp2
Version 0, edited 4 years ago by ami_stuff (next)

Changed 4 years ago by ami_stuff

comment:2 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords j2k added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:3 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.