[Libav-user] NV21 -> NV21 libswscale drops UV plane

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Aug 17 00:30:24 CEST 2015

Ignas Brašiškis <ignas.brasiskis at ...> writes:

> Hello I am tryng to use libswscale to scale NV21 resolution.

I tested the following:
$ ffmpeg -f lavfi -i testsrc -vframes 1 -f rawvideo -pix_fmt nv21 o1
$ ffmpeg -f rawvideo -pix_fmt nv21 -s 320x240 -i o1 -s pal -f rawvideo o2

The second output file does contain the UV plane:
$ ffmpeg -f rawvideo -pix_fmt nv21 -s pal -i o2 out.jpg

Carl Eugen

More information about the Libav-user mailing list