Re: [FFmpeg-user] decoding jpeg2000 problem

2015-10-30 Thread Carles Vila
Hi, Resurrecting semi-old thread. Hope it's OK. I've been struggling a long time to get the best possible conversion from DCinema with ffmpeg. No matter what I try I always get weird color artifacts at low levels, which I can best describe as "posterization". I know it must be possible because a c

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Marcelo Boufleur
> > Iirc, ImageMagick does not support xyz, so this is always > broken. ImageMagick does support xyz. The correct commad line for XYZ to RGB conversion can be found here . I always felt that previous versions of FFmpeg missed the

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Paul B Mahol gmail.com> writes: > >> Compare native decoder output with one from ImageMagick. > > > > Iirc, ImageMagick does not support xyz, so this is always > > broken. > > Colors are broken but there is no banding. Yes, and you get the same broken colours without banding if you don't conve

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Paul B Mahol
On 9/4/15, Carl Eugen Hoyos wrote: > Paul B Mahol gmail.com> writes: > >> Compare native decoder output with one from ImageMagick. > > Iirc, ImageMagick does not support xyz, so this is always > broken. Colors are broken but there is no banding. ___ ff

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Paul B Mahol gmail.com> writes: > Compare native decoder output with one from ImageMagick. Iirc, ImageMagick does not support xyz, so this is always broken. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/lis

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila gmail.com> writes: > If I include -pix_fmt xyz12, the colours are OK, > but the dark levels seem posterized. So it seems that Paul and I were wrong and the issue is the xyz -> rgb conversion. I believe there was another possibility to convert, not sure if I remember correctly;-(

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carles Vila
On 4 September 2015 at 15:45, Paul B Mahol wrote: > On 9/4/15, Carl Eugen Hoyos wrote: > > Carles Vila gmail.com> writes: > > > >> 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

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Paul B Mahol
On 9/4/15, Carl Eugen Hoyos wrote: > Carles Vila gmail.com> writes: > >> 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. > > I am not sure if I understand the word posterized, > but con

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila gmail.com> writes: > 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. I am not sure if I understand the word posterized, but concerning "still" the output looks very differ

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carles Vila
On 4 September 2015 at 14:28, Carl Eugen Hoyos wrote: > Carles Vila 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

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila gmail.com> writes: > I've tested the -vcodec libopenjpeg and indeed the > quantization artifacts are gone! But it fails to > do the xyz->rgb conversion. (Without this option > it does the conversion autamatically) Any option > to force it? $ ffmpeg -vcodec libopenjpeg -pix_fmt xyz

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila 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@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carles Vila
On 4 September 2015 at 12:17, Carl Eugen Hoyos wrote: > Carles Vila gmail.com> writes: > > > I've run into a problem when converting a j2c image > > sequence to ProRes. > > Sorry, I thought the artefacts are intended... > > You need to use ffmpeg -vcodec libopenjpeg -i frm%6d.j2c > to use the li

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila gmail.com> writes: > I've run into a problem when converting a j2c image > sequence to ProRes. Sorry, I thought the artefacts are intended... You need to use ffmpeg -vcodec libopenjpeg -i frm%6d.j2c to use the libopenjpeg decoder. I updated the ticket, Carl Eugen ___

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Paul B Mahol
On 9/4/15, Carl Eugen Hoyos wrote: > Carles Vila gmail.com> writes: > >> I've run into a problem when converting a j2c >> image sequence to ProRes. > > First, please update to current FFmpeg git head, > nothing else is supported here. > > You are using --enable-libopenjpeg in your > configure lin

Re: [FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carl Eugen Hoyos
Carles Vila gmail.com> writes: > I've run into a problem when converting a j2c > image sequence to ProRes. First, please update to current FFmpeg git head, nothing else is supported here. You are using --enable-libopenjpeg in your configure line but I suspect it has no effect for your decod

[FFmpeg-user] decoding jpeg2000 problem

2015-09-04 Thread Carles Vila
Hi all, I've run into a problem when converting a j2c image sequence to ProRes. The dark levels look horrible, especially dark gradients, which seem like posterized. The bright levels seem to look better. I think it's a problem related to 12 bit to 10 bit conversion. Is there anything I can do to m