FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πΊπΈ π¨π³ π°π· πͺπΈ π»π³ π§π·
Hi dear @leandromoreira,
Thanks for your great documentation about ffmpeg.
I get stuck a problem with this library and I can't take it over.
I'm developing an application by c++ and ffmpeg library to capture ip camera frames, clearly the protocol name is RTSP.
everything is going well when the resolution of cameras is low but when I change it to higher resolution, the memory consumption goes up suddenly.
So I need your help solve it.
1.is there any way to reduce the framerate or fps when I read the cameras frame? I need only the last frame at the time of reading and the previous frames don't matter.
2.is it possible to reduce the frame's width and height before calling av_read_frame ? I mean that I set a parameter in AVFormatContext or AVCodecContext by which ffmpeg read the frame with the specific size. for example 400x400
Hi dear @leandromoreira, Thanks for your great documentation about ffmpeg. I get stuck a problem with this library and I can't take it over. I'm developing an application by c++ and ffmpeg library to capture ip camera frames, clearly the protocol name is RTSP. everything is going well when the resolution of cameras is low but when I change it to higher resolution, the memory consumption goes up suddenly. So I need your help solve it. 1.is there any way to reduce the framerate or fps when I read the cameras frame? I need only the last frame at the time of reading and the previous frames don't matter. 2.is it possible to reduce the frame's width and height before calling
av_read_frame
? I mean that I set a parameter in AVFormatContext or AVCodecContext by which ffmpeg read the frame with the specific size. for example 400x400I will be very very thankful if you help me.