Hi.
Any idea how to solve the "colorspace not supported in jpeg" issue?
I checked the FFMPEG code and this warning caused by the following snippet:
case CODEC_ID_MJPEG:
if(avctx->pix_fmt != PIX_FMT_YUVJ420P && avctx->pix_fmt !=
PIX_FMT_YUVJ422P && avctx->pix_fmt != PIX_FMT_RGB32 &&
((avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt !=
PIX_FMT_YUV422P) ||
avctx->strict_std_compliance>FF_COMPLIANCE_INOFFICIAL)){
av_log(avctx, AV_LOG_ERROR, "colorspace not supported in jpeg\n");
return -1;
But I do specify PIX_FMT_YUVJ420P, as can be seen in the code below:
>
> 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;
>
Any idea if the enum of formats has changed lately, and the PIX_FMT_YUVJ420P
now located in a different position in the order?
Thanks.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user