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" <[email protected]> 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to