[FFmpeg-trac] #10058(undetermined:new): jpeg2000: support paletted images
FFmpeg
trac at avcodec.org
Sun Nov 20 15:44:21 EET 2022
#10058: jpeg2000: support paletted images
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
https://github.com/openpreserve/jpylyzer-test-
files/raw/master/palettedImage.jp2
openjpeg decodes it with palette
there are also some other unsupported jpeg2000 files marked as valid here:
https://github.com/openpreserve/jpylyzer-test-files
{{{
./ffmpeg -i palettedImage.jp2 -y out.bmp
ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 57. 42.100 / 57. 42.100
libavcodec 59. 52.102 / 59. 52.102
libavformat 59. 34.101 / 59. 34.101
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 50.100 / 8. 50.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
[jpeg2000 @ 0x5647e8d3cd40] SOC marker not present
Input #0, j2k_pipe, from 'palettedImage.jp2':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: jpeg2000, pal8, 1024x1024, 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (jpeg2000 (native) -> bmp (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 0x5647e8d4f640] SOC marker not present
Error while decoding stream #0:0: Invalid data found when processing input
[jpeg2000 @ 0x5647e8d50bc0] Progression order RPCL
Output #0, image2, to 'out.bmp':
Metadata:
encoder : Lavf59.34.101
Stream #0:0: Video: bmp, gray(progressive), 1024x1024, q=2-31, 200 kb/s,
25 fps, 25 tbn
Metadata:
encoder : Lavc59.52.102 bmp
frame= 0 fps=0.0 q=-0.0 size= 0kB time=00:00:00.04 bitrate=
0.0kbits/[image2 @ 0x5647e8d3e0c0] The specified filename 'out.bmp' does
not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x5647e8d3e0c0] Use a pattern such as %03d for an image sequence
or use the -update option (with -frames:v 1 if needed) to write a single
image.
frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
speed=0.322x
video:1025kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10058>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list