rgb - FFMPEG: Incompatible pixel format 'rgb24' for codec 'gif', auto-selecting format 'rgb8' -


i use ffmpeg record xvfb desktop 24 bit color depth , save in gif format (and pipe aws can replace ' - ' symbol filename.gif in end of command, doesn't affect issue):

ffmpeg -f x11grab -video_size 800x600 -r 30 -i :99.0 -f gif -pix_fmt rgb24 -t 5 - 

however, warning:

incompatible pixel format 'rgb24' codec 'gif', auto-selecting format 'rgb8'

which leads incorrect color reproduction. tried both on windows , ubuntu docker container, both pre-compiled , source, repository last commits, no luck. i've seen in other people's logs use --pix_fmt rgb24 or bgr24 , works fine.

so question is: there need install or configure in order use rgb24 gif encoder? or maybe there workaround converting format first?

here part of output:

ffmpeg version git-2017-08-18-f386dd7 copyright (c) 2000-2017 ffmpeg developers   built gcc 5.4.0 (ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609   configuration: --enable-gpl --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-libxcb   libavutil      55. 74.100 / 55. 74.100   libavcodec     57.102.100 / 57.102.100   libavformat    57. 76.100 / 57. 76.100   libavdevice    57.  7.100 / 57.  7.100   libavfilter     6. 99.100 /  6. 99.100   libswscale      4.  7.102 /  4.  7.102   libswresample   2.  8.100 /  2.  8.100   libpostproc    54.  6.100 / 54.  6.100   input #0, x11grab, ':99.0':   duration: n/a, start: 1503077459.413864, bitrate: n/a     stream #0:0: video: rawvideo (bgr[0] / 0x524742), bgr0, 1024x768, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc stream mapping:   stream #0:0 -> #0:0 (rawvideo (native) -> gif (native)) press [q] stop, [?] incompatible pixel format 'bgr24' codec 'gif', auto-selecting format 'rgb8'   output #0, gif, 'pipe:':   metadata:     encoder         : lavf57.76.100     stream #0:0: video: gif, rgb8, 1024x768, q=2-31, 200 kb/s, 30 fps, 100 tbn, 30 tbc     metadata:       encoder         : lavc57.102.100 gif 

ps: workaround i've found split input video jpegs , pipe them imagemagick concatenates jpegs gif. extremely slow process , increases render time x20 times.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -