[FFmpeg-user] zimg colorspace yuv -> rgb possible?

Paul B Mahol onemda at gmail.com
Tue Jan 26 23:06:02 CET 2016


On 1/26/16, Andy Furniss <adf.lists at gmail.com> wrote:
> Andy Furniss wrote:
> Here's the assert - after seeing swscale in the first test I tried
> format=rgb24 ...

use copy filter before zscale filter.

Anyway using y4m is wrong as it doesnt have frame metadata as
primaries,matrix coefficients etc.

I added support for overriding input params in zscale.

so something like this should work:

ffmpeg -i input.y4m zscale=min=709:range=full,format=gbrp out.png

If it asserts, add copy:

ffmpeg -i input.y4m copy,zscale=min=709:range=full,format=gbrp out.png

This assumes input colorspace matrix is 709 and range is full.


More information about the ffmpeg-user mailing list