[Libav-user] Bad image quality with sws_scale when going from PIX_FMT_YUVJ420P to PIX_FMT_YUV420P
Alex Cohn
alexcohn at netvision.net.il
Fri Jun 3 18:55:58 CEST 2011
What is 'bad qality' for you? Would you like to share an example?
On Friday, June 3, 2011, Kirit Patel <kiritus at gmail.com> wrote:
> so replace.. -- srcPixelFormat = PIX_FMT_YUVJ420Pwith++ srcPixelFormat = PIX_FMT_YUV420P++ DstEncoderContext->color_range = AVCOL_RANGE_JPEG
> Does not seem to help... are there any e.g. floating around about how this is done...
>
> ThanksKirit
> On Fri, Jun 3, 2011 at 7:56 AM, Alex Cohn <alexcohn at netvision.net.il> wrote:
> IIRC, PIX_FMT_YUVJ420P is depricated. We are expected to use colorrange.
>
> On Friday, June 3, 2011, Kirit Patel <kiritus at gmail.com> wrote:
>> Hi!,
>> I am getting bad image quality when converting from PIX_FMT_YUVJ420P to PIX_FMT_YUV420P
>>
>>>>
>> img_convert_ctx = sws_getContext(720, //SrcWidth
>> 480, //SrcHight
>> PIX_FMT_YUVJ420P //SrcPixelFormat
>> 720, //DestWidth
>> 480, //DestHeight
>> PIX_FMT_YUV420P //DestPixelFormat
>> SWS_FAST_BILINEAR | SWS_PRINT_INFO, 0, 0, 0);
>>
>>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>
More information about the Libav-user
mailing list