On Tue, 21 Jul 2009 07:32:24 -0400, Robert Gruendler <[email protected]>
wrote:
i'm working on a screencast application which simply takes a screenshot
each n milliseconds, and adds the picture to a video_stream.
As i'm get the screenshots in RGB24 pixel_format, i would like to try to
avoid converting each picture from RGB24 to YUV420p.
right now, when setting up the video stream i have the following code:
AVCodecContext *c = video_stream->codec;
....
c->pix_fmt = PIX_FMT_YUV420P;
When i encode the video in MGEG4, and change the pix_fmt i get
[mpeg4 @ 0x804d800]only YUV420 is supported
So rather than randomly trying out codecs/pix_fmts, is there any way i
can find out
which codecs support which kind of pixel formats ?
Be careful what you wish for... YUV420 images are half the size of RGB,
and thus result in video files half the size. It also means there are
fewer pixels to encode, so it may actually be faster to color-convert and
encode YUV than to encode RGB.
--
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[email protected]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user