[Libav-user] Grabbing desktop at a framerate of 25 fps
thoman.mathieu at gmail.com
Wed Sep 17 14:13:42 CEST 2014
Thanks for your reply.
It will help. I didn't think about it.
After analysing it seems that the function av_read_frame() is take a lot of
time. I was thinking of using another method instead of this one. But
couldn't find for the moment...
Le 17 sept. 2014 12:19, "Taha Ansari" <mtaha.ansari at gmail.com> a écrit :
> 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
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user