[FFmpeg-user] ffmpeg allocation memory problem

Daniel Dimitrov 596076 at gmail.com
Tue Feb 9 09:56:18 EET 2021


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
"

 and part of  the log is here:

[mpegts @ 0x5a2ba00] [warning] PES packet size mismatch
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 1, dts =
2625661093), dropping it.
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 0, dts =
2627808133), dropping it.
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 0, dts =
2638093333), dropping it.
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 0, dts =
2643255733), dropping it.
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 0, dts =
2646625333), dropping it.
[mpegts @ 0x5a2ba00] [warning] Packet corrupt (stream = 0, dts =
2653483333), dropping it.
[error] av_interleaved_write_frame(): Cannot allocate memory
[verbose] No more output streams to write to, finishing.
[error] Error writing trailer of udp://@
239.253.251.17:5000?overrun_nonfatal=1&bitrate=18000000&pkt_size=1316&fifo_size=2621400&buffer_size=65535:
Cannot allocate memory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shot.png
Type: image/png
Size: 11259 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210209/d2deeaac/attachment.png>


More information about the ffmpeg-user mailing list