[FFmpeg-devel] [PATCH] lavc/libopenjpegenc: move opj_setup_encoder to libopenjpeg_encode_frame

Michael Niedermayer michaelni at gmx.at
Fri Jan 23 23:39:21 CET 2015


On Fri, Jan 23, 2015 at 11:34:35PM +0100, Michael Niedermayer wrote:
> On Fri, Jan 23, 2015 at 09:58:41PM +0100, Jean First wrote:
> > if the openjpeg parameter tcp_rates is not 0 ( using the ffmpeg compression_level option ) 
> > every 2nd image per thread is badly encoded. By moving the opj_setup_encoder function from
> > libopenjpeg_encode_init to libopenjpeg_encode_frame this can be prevented.
> > 
> > This fixes ticket #3754.
> 
> how can this be reproduced ?

note, ive tried:
ffmpeg -i matrixbench_mpeg2.mpg -an -compression_level 1 -vframes 30 -threads 1 -compression_level 1 -vcodec libopenjpeg test.nut

and that results in grayscale only output before as well as after
the patch

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150123/aad52f20/attachment.asc>


More information about the ffmpeg-devel mailing list