Opened 9 years ago

Last modified 7 years ago

#4684 open defect

jls: fix decoding of 12bpp "maximum allowed error: 255"

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

Description

"maximux allowed error: 254" sample decodes ok

C:\>ffmpeg -i 12bpp_maximus_allowed_error_255.jls out.bmp
ffmpeg version N-73189-g7728d23 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (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-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.100 / 56. 45.100
  libavformat    56. 38.102 / 56. 38.102
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 18.100 /  5. 18.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
run overflow
    Last message repeated 124 times
Input #0, jpegls_pipe, from '12bpp_maximus_allowed_error_255.jls':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpegls, gray16le(12 bpc, bt470bg/unknown/unknown), 999x7
49, 25 tbr, 25 tbn, 25 tbc

Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.38.102
    Stream #0:0: Video: bmp, gray, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 tbc
    Metadata:
      encoder         : Lavc56.45.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (jpegls (native) -> bmp (native))
Press [q] to stop, [?] for help
run overflow
    Last message repeated 124 times
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:732kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: unknown

Attachments (4)

12bpp_maximus_allowed_error_255.jls (59.6 KB ) - added by ami_stuff 9 years ago.
12bpp_maximus_allowed_error_254.jls (55.2 KB ) - added by ami_stuff 9 years ago.
12bpp_254.jls (54.8 KB ) - added by ami_stuff 9 years ago.
12bpp_255.jls (54.5 KB ) - added by ami_stuff 9 years ago.

Download all attachments as: .zip

Change History (9)

by ami_stuff, 9 years ago

by ami_stuff, 9 years ago

comment:1 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedavcodec
Keywords: jpegls added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Michael Niedermayer, 9 years ago

What can decode this correctly ?
its strange that the 255 file is bigger than the 254 file though a higher NEAR value should be more lossy

comment:3 by Michael Niedermayer, 9 years ago

Cc: Michael Niedermayer added

by ami_stuff, 9 years ago

Attachment: 12bpp_254.jls added

by ami_stuff, 9 years ago

Attachment: 12bpp_255.jls added

in reply to:  2 comment:4 by ami_stuff, 9 years ago

Replying to michael:

What can decode this correctly ?
its strange that the 255 file is bigger than the 254 file though a higher NEAR value should be more lossy

IrfanView can decode attached files (I belive that it uses CharLS).

I added new set of files.

comment:5 by ami_stuff, 9 years ago

just tested LEAD software and it's able to decode attached files as well (files were created with accusoft software)

https://www.leadtools.com/help/leadtools/v19/main/api/jpegleadfmt.html

edit: also decodes correctly with:

http://www.stat.columbia.edu/~jakulin/jpeg-ls/mirror.htm

Last edited 7 years ago by ami_stuff (previous) (diff)
Note: See TracTickets for help on using tickets.