[FFmpeg-devel] [PATCH] EXR patch to read layers

Gonzalo Garramuno ggarra13 at gmail.com
Tue Feb 18 17:46:54 CET 2014

On 18/02/14 08:10, Carl Eugen Hoyos wrote:
> Gonzalo Garramuno <ggarra13 <at> gmail.com> writes:
>> ffmpeg -layer Diffuse -i myexr.%d.exr test.mov
> I think this is not an obvious option and needs a
> manual entry.
Not sure I follow.  I used an AVOption for the flag.  It gets listed if 
you list the options for EXR.
What do you suggest?
>> Here's an exr image with multiple layers:
>> http://www.datafilehost.com/d/e45d9a1c
> Uploaded to http://samples.ffmpeg.org/image-samples/exr/
>> -        if (!strcmp(buf, "R"))
>> +        if (!strcmp(b, "R")||!strcmp(b, "X")||!strcmp(b,"U"))
> Sorry if I misunderstand: Is this related to your
> description of the patch?
Yes, layers can appear as RGB or XYZ triplets (also UVW triplets but 
those are rare).  Layers can also contain two or one channel only, which 
is something this patch does not address.

More information about the ffmpeg-devel mailing list