[Libav-user] sws_scale - "Warning: data is not aligned!" when using opencv::Mat
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat Dec 22 18:15:53 EET 2018
2018-12-22 15:33 GMT+01:00, Wodzu <brucedickinson at wp.pl>:
> I am using this code (simplified to show the issue) to convert
> from AV_PIX_FMT_GRAY8 to AV_PIX_FMT_YUV420P:
Are you sure that you need to convert?
This depends on the range of your gray8 input, assuming
you want mpeg range for encoding.
Newest x264 also supports gray8 as input.
More information about the Libav-user