[libav-user] RE : RE : Conversion yuvj420P to RGB24

Candice Seenyen candice.seenyen at ims.es
Thu Aug 19 15:10:46 CEST 2010


THanks for your input, but it actually doesn't work. I am using the latest
version of ffmpeg where YUVJ420P is deprecated, so that could be the
problem. No idea. I'll look into it.

Thanks!

Candice


-----Mensaje original-----
De: libav-user-bounces at mplayerhq.hu [mailto:libav-user-bounces at mplayerhq.hu]
En nombre de DONGIEUX-AKKA Christophe (SAGEM DEFENSE SECURITE)
Enviado el: jueves, 19 de agosto de 2010 10:39
Para: Libav* user questions and discussions
Asunto: [libav-user] RE : RE : Conversion yuvj420P to RGB24

Hi,

Well, I thought the 'J' was a mistake :D
But I don't see any reason it wouldn't work.

Chris.

________________________________________
De : libav-user-bounces at mplayerhq.hu [libav-user-bounces at mplayerhq.hu] de la
part de Candice Seenyen [candice.seenyen at ims.es]
Date d'envoi : jeudi 19 août 2010 09:08
À : 'Libav* user questions and discussions'
Objet : Re: [libav-user] RE :  Conversion yuvj420P to RGB24

Hi,

Thanks for your reply.

However, just to be sure: Are you sure this converts yuvJ420p (not YUV420P)
to RGB24? I have been using those same functions, but it always give me the
green screen with noise.

I will try again anyway.

Thanks

Candice


-----Mensaje original-----
De: libav-user-bounces at mplayerhq.hu [mailto:libav-user-bounces at mplayerhq.hu]
En nombre de DONGIEUX-AKKA Christophe (SAGEM DEFENSE SECURITE)
Enviado el: miércoles, 18 de agosto de 2010 15:24
Para: Libav* user questions and discussions
Asunto: [libav-user] RE : Conversion yuvj420P to RGB24

Hi,

SwsContext* imgConvertCtxYuv420pToRGB24 = 0;
...
if( !p_imgConvertCtxYuv420pToRGB24 )
    {
        imgConvertCtxYuv420pToRGB24  = sws_getContext( p_codecCtx->width,
p_codecCtx->height, p_codecCtx->pix_fmt,
            p_private->p_codecCtx->width, p_private->p_codecCtx->height,
PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL );
    }
...
// get and decode the frame
...
sws_scale( imgConvertCtxYuv420pToRGB24 ,
                p_Frame->data, p_Frame->linesize, 0, p_codecCtx->height,
                p_FrameRGB24->data, p_FrameRGB24->linesize );

That's it.

Chris.
________________________________________
De : libav-user-bounces at mplayerhq.hu [libav-user-bounces at mplayerhq.hu] de la
part de Candice Seenyen [candice.seenyen at ims.es]
Date d'envoi : mercredi 18 août 2010 15:16
À : 'Libav* user questions and discussions'
Objet : [libav-user] Conversion yuvj420P to RGB24

Hi,



I need to display a frame from an IP Camera stream in RGB24 format. However,
I have found out that the format of the frame is in YUVJ420P but I need to
display in RGB24. When using sws_getContext and swscale, all I get is a
green screen filled with noise.



Does anybody know how I can make this conversion work?



Thank you



Candice



_______________________________________________
libav-user mailing list
libav-user at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractère privé. S'ils ne vous sont
pas destinés, nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit
le contenu. Si ce message vous a été transmis par erreur, merci d'en
informer l'expéditeur et de supprimer immédiatement de votre système
informatique ce courriel ainsi que tous les documents qui y sont attachés."

******
" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents from
your computer system."
#

_______________________________________________
libav-user mailing list
libav-user at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
libav-user at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractère privé. S'ils ne vous sont
pas destinés, nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit
le contenu. Si ce message vous a été transmis par erreur, merci d'en
informer l'expéditeur et de supprimer immédiatement de votre système
informatique ce courriel ainsi que tous les documents qui y sont attachés."

******
" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents from
your computer system."
#

_______________________________________________
libav-user mailing list
libav-user at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user



More information about the libav-user mailing list