[FFmpeg-user] ffmpeg allocation memory problem

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Feb 9 19:16:36 EET 2021


Am Di., 9. Feb. 2021 um 09:02 Uhr schrieb Daniel Dimitrov <596076 at gmail.com>:
>
> Hello everyone,
> I try to restream  with ffmpeg but for some reason my process got killed
> after approximately 24h and report memory allocation problem.I have tried
> many ffmpeg options without success. Please take a look at the picture i
> have attached and if you have any idea what could be wrong let me know.Here
> is the command i use:
>
> ffmpeg -nostdin -hide_banner -nostats  -loglevel repeat+level+verbose
>  -fflags +discardcorrupt -fflags +genpts  -re -i "udp://@
> 239.100.11.24:5000?overrun_nonfatal=1&fifo_size=1048576&pkt_size=1316" -map
> 0:0  -b:v 8M -maxrate 8M -bufsize 10M -rc_init_occupancy  10M -x264-params
> "nal-hrd=cbr:keyint=1"  -c:v libx264   -map 0:a:0 -c:a copy -map -0:a:1
> -pcr_period 30  -preset veryfast -muxrate 18M -flush_packets 0 -metadata
> service_provider=ffENC -metadata service_name="stream01" -f mpegts "udp://@
> 239.253.251.17:5000?overrun_nonfatal=1&bitrate=18000000&pkt_size=1316&fifo_size=2621400&buffer_size=65535

Please (test current FFmpeg git head, the only version supported here and)
test without -hide_banner when asking for support here and provide at
least the first 50 and the last 50 lines of your console output.

Is the issue reproducible if you use file output instead of network output?
Is the issue reproducible if you use testsrc2 input instead of network input?

Carl Eugen


More information about the ffmpeg-user mailing list