ffmpeg allocation memory problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg allocation memory problem

Daniel Dimitrov
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

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

shot.png (15K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg allocation memory problem

Carl Eugen Hoyos-2
Am Di., 9. Feb. 2021 um 09:02 Uhr schrieb Daniel Dimitrov <[hidden email]>:

>
> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".