[Libav-user] Writing 16bit greyscale videos
Carl Eugen Hoyos
ceffmpeg at gmail.com
Mon Aug 29 13:17:16 EEST 2016
2016-08-29 10:59 GMT+02:00 Masneri, Stefano <stefano.masneri at brain.mpg.de>:
> I have a small class that creates an h264 video from a set of input images.
> I have some problems trying to write 16 bit input images: Conversion to
> yuv420p format loses 8 bit of precision, and apparently x264 does not
> support encoding 16 bit greyscale data.
H.264 does not support more than 14bit, x264 does not support more than
10bit input.
> Do you know of a codec that supports encoding a video using
> AV_PIX_FMT_GRAY16BE pixel format (or anything similar)?
jpegls, png, tiff, dpx, sgi, ffvhuff, ffv1 (all lossless)
Jpeg2000, but FFmpeg needs the external library libopenjpeg for encoding
gray16 (lossy or lossless)
Carl Eugen
More information about the Libav-user
mailing list