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

jun li publicforlijun at gmail.com
Wed May 12 13:06:49 EEST 2021


ffmpeg -f gdigrab -i desktop -vf scale=1440:900 -vsync 2 -framerate 60 -c:v
h264_qsv -pix_fmt yuv420p -preset veryfast -profile:v high -b:v 200M
-maxrate 0 -bf 0 -b:v 8000k -maxrate 8000k -minrate 8000k test.mp4

after windows system dpi changed, for example  1440X900 change to 800X600,
the desktop content 800X600 show  position 0,0, the other area is still
show the content of 1440X900.
*-vf scale=1440:900 *can not solve this problem .
how to solve this problem.

Carl Eugen Hoyos <ceffmpeg at gmail.com> 于2021年3月29日周一 下午11:36写道:

> Am Mo., 29. März 2021 um 12:22 Uhr schrieb jun li <
> publicforlijun at gmail.com>:
> >
> > ffmpeg -f gdigrab -framerate 5 -i desktop output.gif
>
> This command line cannot produce a nice-looking gif,
> paletteuse is needed for good pal8 output.
>
> Either record first (not using gif) and convert to gif later
> or use a palette of your choice.
>
> Please find out what top-posting means and avoid it here.
>
> 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".


More information about the ffmpeg-user mailing list