JyotsnaT / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Xuggle should check supported pixel format types before encoding #202

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
And this problem shows up with the FlashSV codec.  If you use the
CaptureScreens demo, it fails when encoding an image with a message about
(buf_size x < y).  

The problem is FlashSV requires RGB24 pixel data (not YUV), and
CaptureScreens converts all image data into YUV420P format before trying to
encode (since most codecs require that). 

If you change it to use IPixelFormat.Type.BGR24 it should work.

Still, we should generate an error on IStreamCoder#open if : (a) if a codec
tells us a set of supported pixel formats and (b) a user tries to encode an
incompatible pixel type.

We should also make codecs be queryable for the formats they support so
that people can write programs that handle this case.

Original issue reported on code.google.com by art.cla...@gmail.com on 2 Sep 2009 at 5:36

GoogleCodeExporter commented 9 years ago

Original comment by art.cla...@gmail.com on 5 Jan 2010 at 9:11

GoogleCodeExporter commented 9 years ago
please let me know, is this issue fixed.

Original comment by visuma...@gmail.com on 3 Sep 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Art,

Please suggest us some sample code.

-thanks
raghu

Original comment by visuma...@gmail.com on 4 Sep 2010 at 3:17