[Libav-user] Grabbing desktop at a framerate of 25 fps

Taha Ansari mtaha.ansari at gmail.com
Wed Sep 17 12:19:28 CEST 2014


A quick look at your code, you are opening up the encoder each time you
write to disk:

png_encoder_codec = avcodec_find_encoder_by_name ("png");

Do it just once, like at startup time, and use encoding routines on this
png_encoder_codec later.

Hope this helps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140917/0ca3bec3/attachment.html>


More information about the Libav-user mailing list