[Ffmpeg-devel] Encoding using JPEG.
Måns Rullgård
mru
Tue Apr 25 14:57:27 CEST 2006
bogdanm said:
> Is there a possibility to encode frames as distinct JPEGs?
>
> I had tried to use:
> CODEC_ID_MJPEG,
> CODEC_ID_MJPEGB,
> CODEC_ID_LJPEG,
> CODEC_ID_JPEGLS
> and fail to initialise them.
>
> Is there something special to know about when initializing those codecs?
> With H263 worked just fine (I only changed the CODEC_ID). Am I missing
> something?
JPEG uses a subtly different color space. Set the pixel format to
PIX_FMT_YUVJ420P instead of PIX_FMT_YUV420P. This is not correct, but it
will show if this is what is causing your problem.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list