[FFmpeg-trac] #6640(avformat:new): Assertion failed when stream copying gif

FFmpeg trac at avcodec.org
Fri Aug 24 10:50:14 EEST 2018


#6640: Assertion failed when stream copying gif
-------------------------------------+-------------------------------------
             Reporter:  llogan       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  crash abort  |               Blocked By:
  gif                                |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Gyan):

 Encountered this today.

 The input GIF's palette is processed only by the decoder, which only
 outputs bgra frames, and that's what find_stream_info will set for the
 input stream.

 The GIF muxer will generate a generic palette if the input stream is not
 PAL8 but the called function only accepts pixel formats that the GIF
 encoder does. During streamcopy, we can't use a scaler to transform to one
 of these formats so a remux fails.

 The trivial and probable solution is to set the pixel format in the
 demuxer. Will have to test.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6640#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list