[Libav-user] Scale image from 4:2:2 to 4:2:0

Alex Cohn alexcohn at netvision.net.il
Thu Mar 29 17:51:12 CEST 2012


On Thu, Mar 29, 2012 at 17:34, Ушаков Андрей <sorcchan at gmail.com> wrote:
> Hello all!
>
> I've try to convert my video from YUV 4:2:2 format (PIX_FMT_YUYV422) to YUV
> 4:2:0 (PIX_FMT_YUV420P). Doesn't work properly. Can some one help?
>
> Here is the code: http://dl.dropbox.com/u/43123609/swsscale.c commands how
> to compile, run and see result in comment in code.
> Here you can download video example to test:
> http://dl.dropbox.com/u/43123609/video422.raw Ouch! Size is 120 Mb
> Here you can see result without compile, run, etc:
> http://dl.dropbox.com/u/43123609/Screenshot-1.png

Maybe the problem is the parameters for VLC? You probably have fourcc=I420.

BR,
Alex Cohn


More information about the Libav-user mailing list