[FFmpeg-trac] #5735(undetermined:new): CPU usage increases over time (possibly caused by loudnorm)
FFmpeg
trac at avcodec.org
Tue Jul 26 00:50:44 EEST 2016
#5735: CPU usage increases over time (possibly caused by loudnorm)
-------------------------------------+-------------------------------------
Reporter: yatahaze | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: loudnorm | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I am taking an RTP stream and adding loudnorm and rebroadcasting it.
ffmpeg will use the cpu more and more over time. See this graph:
http://puu.sh/qeg9W/8529b8a5b5.png (over a time span of 3 hours).
When I took out the loudnorm filter, it seems to not be increasing slowly
over time, or just a lot less. I need more time to verify it's not going
up anymore. If it is, it's a lot slower and a lot less dramatic.
My command:
ExecStart=/root/bin/ffmpeg -loglevel panic -i rtp://127.0.0.1:5001 -c:a
libmp3lame -af loudnorm=I=-15 -f tee -map 0:a
"[f=rtp]rtp://224.3.3.3:1235|[f=mpegts]udp://192.168.0.113:1235/"
More Info:
# ffmpeg -v 9 -loglevel 99 -i rtp://127.0.0.1:5001
ffmpeg version 3.1.1-1~xenial Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
configuration: --prefix=/usr --extra-version='1~xenial'
--libdir=/usr/lib/ffmpeg --shlibdir=/usr/lib/ffmpeg --disable-static
--disable-debug --toolchain=hardened --enable-pthreads --enable-runtime-
cpudetect --enable-gpl --enable-shared --disable-decoder=libopenjpeg
--disable-decoder=libschroedinger --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-
libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
--enable-libxvid --enable-libzvbi --enable-openal --enable-opengl
--enable-x11grab --enable-version3 --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libvo-amrwbenc --enable-libdc1394 --enable-
libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-
libopencv --enable-libkvazaar --enable-libopenh264 --enable-nonfree
--enable-libfdk-aac --enable-libfaac
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-i' ... matched as input file with argument
'rtp://127.0.0.1:5001'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file rtp://127.0.0.1:5001.
Successfully parsed a group of options.
Opening an input file: rtp://127.0.0.1:5001.
Probing rtp score:100 size:0
[rtp @ 0x25c89a0] No default whitelist set
[udp @ 0x25c8e60] No default whitelist set
[udp @ 0x25c8e60] end receive buffer size reported is 131072
[udp @ 0x25d9140] No default whitelist set
[udp @ 0x25d9140] end receive buffer size reported is 131072
[rtp @ 0x25c69e0] SDP:
v=0
c=IN IP4 127.0.0.1
m=application 5001 RTP/AVP 33
[rtp @ 0x25c69e0] sdp: v='0'
[rtp @ 0x25c69e0] sdp: c='IN IP4 127.0.0.1'
[rtp @ 0x25c69e0] sdp: m='application 5001 RTP/AVP 33'
[rtp @ 0x25c69e0] Filter: pid=0x11 type=1
[rtp @ 0x25c69e0] Filter: pid=0x0 type=1
[rtp @ 0x25c89c0] No default whitelist set
[udp @ 0x25c90e0] No default whitelist set
[udp @ 0x25c90e0] end receive buffer size reported is 131072
[udp @ 0x25c8e80] No default whitelist set
[udp @ 0x25c8e80] end receive buffer size reported is 131072
[rtp @ 0x25c69e0] setting jitter buffer size to 500
[rtp @ 0x25c69e0] PAT:
[rtp @ 0x25c69e0] sid=0x1 pid=0x42
[rtp @ 0x25c69e0] new_program: id=0x0001
[rtp @ 0x25c69e0] Filter: pid=0x42 type=1
[rtp @ 0x25c69e0] PMT: len 27
[rtp @ 0x25c69e0] sid=0x1 sec_num=0/0 version=20 tid=2
[rtp @ 0x25c69e0] pcr_pid=0x47
[rtp @ 0x25c69e0] Filter: pid=0x47 type=0
[rtp @ 0x25c69e0] stream=0 stream_type=3 pid=47 prog_reg_desc=
[rtp @ 0x25c69e0] tag: 0x0a len=4
[rtp @ 0x25c69e0] pid=47 pes_code=0x1
(repeats, works fine except for my cpu usage problem)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5735>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list