jc-kynesim / rpi-ffmpeg

FFmpeg work for RPI
Other
111 stars 27 forks source link

Is there a magic GPU and CMA memory setting? #16

Closed Fredrum closed 2 years ago

Fredrum commented 3 years ago

Hi!

I'm getting a lot of memory errors trying to decode a 40mbit 1080p60 video stream and have been trying to find a combination that works. (On my 4GB RPi4b) Seems tricky! :)

Is there a magic combo that works?

Cheers!

jc-kynesim commented 3 years ago

This is H265 / H264 / other? In ffmpeg or another prog? If you are stopping and restarting the H265 decoder a lot without closing the process then I fixed a bad memory leak about a week ago.

Fredrum commented 3 years ago

This was with both codecs I think. But h264 seemed more memory hungry than hevc, which I guess makes sense. And sorry yes using both hello_drmprime and my small (not well coded) ffmpeg/avcodec test program. Which branch did you do the fix in?