Hi.

I upgraded the FFMPEG on my dev machine to latest 0.5 version, and now
getting the following warning, when trying to open a JPEG codec:

[mjpeg @ 0x2aaaf4387440]colorspace not supported in jpeg

Here is a code that worked fine before:

avcodec_alloc_context();

                        picOutCodecCtx->bit_rate =cam.getBitrate();

                        picOutCodecCtx->width = cam.getWidth();

                        picOutCodecCtx->height = cam.getHeight();

                        picOutCodecCtx->pix_fmt = PIX_FMT_YUVJ420P;

                        picOutCodecCtx->codec_id = CODEC_ID_MJPEG;

                        picOutCodecCtx->codec_type = CODEC_TYPE_VIDEO;

                        picOutCodecCtx->time_base.num = 1;

                        picOutCodecCtx->time_base.den = 1;

                        picOutCodecCtx->qmin =picOutCodecCtx.qmax =100;



avcodec_find_encoder(picOutCodecCtx->codec_id);



avcodec_open() ;



Any idea what was changed, and what is the correct syntax now?

Regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to