HdmiPi-Streaming icon indicating copy to clipboard operation
HdmiPi-Streaming copied to clipboard

ffmpeg memory leak while using -thread_queue_size xxx

Open gaamaaresosa opened this issue 2 years ago • 0 comments

I see most of the ffmpeg video streaming comand with -thread_queue_size xxx But no one write about heavy memory leak and the stream freeze after 1 or 2 hrs. Initially I suspected the ffmpeg build version. Then I almost tried 4 to 5 different builds and versions having same issue.

You can observer the memory keep on increasing with few seconds at htop.

Can some one assure the issue if with ffmpeg+thread_queue_size combo or just on few builds ?

Also ALSA buffer xrun issue:

[alsa @ 0x2d91360] ALSA buffer xrun.9371kB time=00:06:53.53 bitrate=3751.4kbits/s speed=0.968x [alsa @ 0x2d91360] ALSA buffer xrun.5676kB time=00:07:07.74 bitrate=3747.5kbits/s speed=0.969x

gaamaaresosa avatar Feb 17 '23 17:02 gaamaaresosa