[FFmpeg-user] decoding jpeg2000 problem

Carles Vila cvilad at gmail.com
Fri Sep 4 14:42:36 CEST 2015


On 4 September 2015 at 14:28, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Carles Vila <cvilad <at> gmail.com> writes:
>
> > Anyway I'm going to update to the latest version.
>
> Please do and report back.
> (There may be a regression...)
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


OK, done.
Here's the command line. I had to include -pix_fmt xyz12le in order to have
it detect xyz of the jpeg2000.
However, the output still looks posterized.

On the other hand, if I leave out -pix_fmt xyz12le, the colorspace
conversion is not applied, but the gradients in the output are much
smoother. So maybe it's a problem in the xyz->rgb matrix?

Thank you!


ffmpeg -r 24 -pix_fmt xyz12le -i
MAGGIE_FTR-6_S_EN-XX_US_51_2K_IND_20150224_FKI_OV_01/frm_%6d.j2c -c:v
prores -profile:v 3 -r 24 OUTPUT.mov
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2_1 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc
--enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx
--enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus
--enable-libquvi --enable-libx265 --enable-libopenjpeg
--disable-decoder=jpeg2000
--extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5 '
--enable-nonfree --enable-vda
  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. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, image2, from
'MAGGIE_FTR-6_S_EN-XX_US_51_2K_IND_20150224_FKI_OV_01/frm_%6d.j2c':
  Duration: 00:15:16.16, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: jpeg2000, xyz12le, 2048x858, 25 fps, 25 tbr, 25
tbn, 25 tbc
File 'OUTPUT.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'OUTPUT.mov':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: prores (apch) (apch / 0x68637061), yuv422p10le,
2048x858, q=2-31, 200 kb/s, 24 fps, 12288 tbn, 24 tbc
    Metadata:
      encoder         : Lavc56.41.100 prores
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (libopenjpeg) -> prores (native))
Press [q] to stop, [?] for help
frame=  253 fps= 13 q=0.0 Lsize=  175287kB time=00:00:10.54
bitrate=136216.4kbits/s
video:175284kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.001396%


More information about the ffmpeg-user mailing list