[FFmpeg-user] FFmpeg Taking Huge RAM memory
Carl Eugen Hoyos
ceffmpeg at gmail.com
Tue Jun 23 00:46:49 EEST 2020
Am Mo., 22. Juni 2020 um 16:23 Uhr schrieb Matthew Reus
<matthew.reus01 at gmail.com>:
> *ffmpeg -hwaccel_device 0 -hwaccel nvdec -hwaccel_output_format cuda -i
> 'udp://@172.16.16.25:9802?overrun_nonfatal=1&fifo_size=1000000\&overrun_nonfatal
> <http://172.16.16.25:9802?overrun_nonfatal=1&fifo_size=1000000\&overrun_nonfatal>'
> -vf "format=yuv420p|cuda,yadif_cuda=0:-1:0,scale_npp=1280:720" -b:v 2.5M
> -bf 1 -aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -c:a
> aac -b:a 128k -ar 48000 -strict -2 -f flv
> 'rtmp://admin:admin@172.16.16.206/livetv/AnjanTv.stream
> <http://admin:admin@172.16.16.206/livetv/AnjanTv.stream>' -vf
> "format=yuv420p|cuda,yadif_cuda=0:-1:0,scale_npp=-720:576" -b:v 600k -bf 1
> -aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -c:a aac -b:a
> 128k -ar 48000 -strict -2 -f flv
> 'rtmp://admin:admin@172.16.16.206/ott/ottAnjanTv.stream
> <http://admin:admin@172.16.16.206/ott/ottAnjanTv.stream>'*
I try to avoid network issues (I realized at some point that they are
*always* unreproducible and impossible to debug) but aren't you
explicitly asking FFmpeg to allocate huge amounts of memory?
Or to ask differently:
Is the issue reproducible with software decoding?
Is the issue reproducible with software encoding?
Is the issue reproducible with file output?
Is the issue reproducible with file input?
If this does not help, there is a tool called massif which tells
you where exactly memory allocations happen.
Carl Eugen
More information about the ffmpeg-user
mailing list