[FFmpeg-user] How to use the diff of palettegen with screen capturen

jun li publicforlijun at gmail.com
Mon Mar 29 13:16:22 EEST 2021


ffmpeg -f gdigrab -framerate 5 -i desktop output.gif
when i record windows desktop. some colors are strange (see gif.png),how to
fix it ( see normal.png)?

Carl Eugen Hoyos <ceffmpeg at gmail.com> 于2021年3月24日周三 下午3:43写道:

> Am Mi., 24. März 2021 um 08:38 Uhr schrieb jun li <
> publicforlijun at gmail.com>:
> >
> > ffmpeg -f gdigrab -framerate 30 -i desktop -ss 1 -lavfi
> >
> palettegen=stats_mode=*diff*:transparency_color=ffffff[pal],[0:v][pal]paletteuse=new=1:dither=bayer:bayer_scale=1
> > default.gif
>
> This is not how palettegen / paletteuse work, see:
> https://ffmpeg.org/ffmpeg-filters.html#palettegen-1
>
> The examples you found only work for short input files.
>
> For future questions:
> Never attach screen shots, post the complete, uncut console
> output as text instead.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: normal.png
Type: image/png
Size: 60979 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210329/575dbaa3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gif.png
Type: image/png
Size: 181356 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210329/575dbaa3/attachment-0001.png>


More information about the ffmpeg-user mailing list