[FFmpeg-user] [FFmpeg-devel] SDL and Video device - swscaler - 640x360 - 0x0 is invalid scaling dimension

Nicolas George nicolas.george at normalesup.org
Sat Jul 21 11:18:54 CEST 2012

Le tridi 3 thermidor, an CCXX, Chau Pham a écrit :
> Hi Everybody, 

Hi. Please do not top-post on this mailing-list; and if you do not know what
it means, look it up.

> it's old example but I have modified it to suitable ffmpeg version,

It looks more modern.

> => I think, the error is in ffmpeg's sws_getContext function in libswscale mudule.
>  img_convert_ctx = sws_getContext(pFrame->width, pFrame->height, pCodecCtx->pix_fmt, 
>         pFrameRGB->width, pFrameRGB->height, PIX_FMT_YUVJ420P, SWS_BICUBIC, NULL, NULL, NULL);

Then you should probably add a printf just before and just after, tu be
sure; and at the same time you print the values of the arguments to see
whether they are valid. If they are not, you move the printf upwards to see
where the invalid values come from. That is a bit tedious but in the end it


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120721/19a92a0e/attachment.asc>

More information about the ffmpeg-user mailing list