[FFmpeg-devel] [PATCH 1/3] avformat/image2: allow muxing gif files.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Oct 20 12:13:49 CEST 2013


On 20.10.2013, at 09:50, Clément Bœsch <u at pkh.me> wrote:
> On Sun, Oct 20, 2013 at 09:29:26AM +0200, Reimar Döffinger wrote:
>> On 19.10.2013, at 20:47, Clément Bœsch <u at pkh.me> wrote:
>>> +        if (img->is_pipe) {
>>> +            av_log(s, AV_LOG_ERROR, "Use the 'gif' format instead of "
>>> +                   "'image2pipe' for continuous output GIF stream\n");
>>> +            return AVERROR(EINVAL);
>>> +        }
>> 
>> I don't think this makes sense.
>> The gif muxer creates a single gif file, image2pipe should generate a series of gif images, so they are not the same thing.
> 
> The gif muxer creates a gif image stream (→ animated gif),

I consider an animated gif a single gif image.

> while image2
> can be used to create separate single gif image. In the current image2pipe
> won't do anything usable, but maybe I'm missing the whole point and doing
> something wrong here. Can you elaborate?

I mean somebody might want completely independent gif files (not one single animated gif!), just like image2 creates, but wants them written one after the other into a single pipe.
Yes, to decode they'll have to split them again, but I still think it makes sense, even if it's probably a very special use-case.


More information about the ffmpeg-devel mailing list