[FFmpeg-user] sws_scale problem from BGRA to YUV420P

Baptiste Coudurier baptiste.coudurier at gmail.com
Wed Apr 20 03:58:15 CEST 2011


Hi,

On 04/19/2011 08:51 AM, Julen Garcia wrote:
> I get bad results transcoding from a 32bit BGRA image to libx264's
> YUV420P format using this command:
> 
> ffmpeg -vstats -benchmark -f image2 -i "input0.png" -vf "format=bgra"
> -vcodec libx264 -vpre lossless_ultrafast -crf 22 -b 10000k -threads 0
> OUTPUT.mp4
> 
> However if I use a 24bit BGR image the result is ok
> 
> ffmpeg -vstats -benchmark -f image2 -i "input1.png" -vf "format=bgr24"
> -vcodec libx264 -vpre lossless_ultrafast -crf 22 -b 10000k -threads 0
> OUTPUT.mp4
> 
> I'm using one of the latest git version, exactly
> "ffmpeg-git-a304071-win64-shared" from here:
> http://hawkeye.arrozcru.org/
> 
> In an older version, "r22941" both commands uset to work fine.

Can you please upload your png file somewhere ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org


More information about the ffmpeg-user mailing list