Okay ... i am not 100 % succesful with the code before explaining wht  i
tryied i had BGR24-yuv 420 so  i did with below line ...



img_convert_ctx = sws_getContext(c->width, c->height,
   PIX_FMT_RGB24,
   c->width, c->height,
   PIX_FMT_YUV420P,
   SWS_SPLINE, NULL, NULL, NULL);


sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize,
  0, c->height, picture->data, picture->linesize);

avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture)


  Hope it helps....


Mukilan S

On 5/20/09, Alexandre Buisson <[email protected]> wrote:
>
> hi,
> i have currently some trouble with a libav update and my code that use
> ffmpeg lib.
>
> In fact, i would like to know if someone could explain why the
> "img_convert"
> function from libavcodec has been removed (removed in 2009-02-06)...
>
> And optionnaly, how to perform colorspace conversion now ? which is the API
> ? swscale ?
>
> Any help and advice would be welcome,
> Thanks
>
> Alex.
>
> --
> Dr. Alexandre Buisson – R&D Team
> Thomson STS - Content Security
> Tel: +33 299 27 38 62
> Fax: +33 299 22 61 63
> [email protected]
> or [email protected]
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to