Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4631 closed defect (fixed)

jpeg2000: corrupted vertical line at thr right side

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

the last vertical line at the right side looks corrupted

attached file is lossy, tile dimension 199x199

C:\>ffmpeg -i 199.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] extra cblk styles 1
[jpeg2000 @ 0228f600] Selective arithmetic coding bypass
[jpeg2000 @ 0228f600] End mismatch 2
    Last message repeated 808 times
Input #0, j2k_pipe, from '199.jp2':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0), gray, 999
x749, 25 tbr, 25 tbn, 25 tbc
[bmp @ 0236c7e0] Warning: not compiled with thread support, using thread emulati
on
[jpeg2000 @ 0236d680] 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, gray, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25
 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 @ 0236d680] extra cblk styles 1
[jpeg2000 @ 0236d680] Selective arithmetic coding bypass
[jpeg2000 @ 0236d680] End mismatch 2
    Last message repeated 808 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 (1)

199.jp2 (206.6 KB ) - added by ami_stuff 9 years ago.

Download all attachments as: .zip

Change History (5)

by ami_stuff, 9 years ago

Attachment: 199.jp2 added

comment:1 by Carl Eugen Hoyos, 9 years ago

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

The last eight pixels on the right are not bitexact: -vf crop=991:749 -f framecrc is bitexact.

comment:2 by Michael Niedermayer, 9 years ago

Resolution: fixed
Status: openclosed

comment:3 by Carl Eugen Hoyos, 9 years ago

Was the sample encoded in lossless mode?
jasper, libopenjpeg and FFmpeg decode this file differently here...

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

Replying to cehoyos:

Was the sample encoded in lossless mode?
jasper, libopenjpeg and FFmpeg decode this file differently here...

probably lossy

Note: See TracTickets for help on using tickets.