[FFmpeg-devel] PNG output horrible...

Peter Tap ptrtap at yahoo.com
Mon Sep 10 22:20:47 CEST 2012


Hi Tomas,

Thank you for your help.

PIX_FMT_RGBA doesn't work in the sense that avcodec_encode_video() call fails. I have even tried increasing the buffer 10 times the size returned by avpicture_get_size().


I have attached the original and the new images with PIX_FMT_RGB24.

Regards,
Peter





----- Original Message -----
From: Tomas Härdin <tomas.hardin at codemill.se>
To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
Cc: 
Sent: Monday, September 10, 2012 12:32 AM
Subject: Re: [FFmpeg-devel] PNG output horrible...

On Sun, 2012-09-09 at 18:25 -0700, Peter Tap wrote:
> Comparing the original file to the generated file, here is what I see:
> 
> original.png : PNG image data, 128 x 128, 8-bit/color RGBA, non interlaced
> 
> new.png : PNG image data, 128 x 128, 8-bit/color RGB, non interlaced

Uhm, you're losing the alpha channel. Make sure you're using
PIX_FMT_RGBA on the output.

If this isn't the issue then attaching both PNGs would help..

/Tomas

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ori.png
Type: image/png
Size: 13017 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120910/6d89f3dc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.png
Type: image/png
Size: 6840 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120910/6d89f3dc/attachment-0001.png>


More information about the ffmpeg-devel mailing list