[FFmpeg-devel] Encoding image

Marco Vianini marco_vianini at yahoo.it
Tue Aug 2 11:51:55 EEST 2022


I have a PNG image converted to YUV 420P and I need to encode it to a specific RTMPS URI, with fps 10.
The encoding process is quite heavy for the CPU. 
In this specific case the frame is always the same, re-encoded at a rate basing on fps.
Is it necessary to call "avcodec_send_frame / avcodec_receive_packet" for each frame or there is a better way given that the frame to encode does not change?
Thank you 




More information about the ffmpeg-devel mailing list