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

Mathieu Thoman 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...

Math
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
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140917/7d12b496/attachment.html>


More information about the Libav-user mailing list